Skip to content

Commit

Permalink
[Fix] DRC-977 Reverce the ledend order only
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Huang <[email protected]>
  • Loading branch information
kentwelcome committed Dec 25, 2024
1 parent 31e001b commit 52811eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/src/components/charts/HistogramChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function getHistogramChartData(

return {
labels: newLabels,
datasets: [baseDataset, currentDataset],
datasets: [currentDataset, baseDataset],
};
}

Expand All @@ -148,6 +148,9 @@ export function getHistogramChartOptions(
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
reverse: true,
},
title: {
display: true,
text: title,
Expand Down

0 comments on commit 52811eb

Please sign in to comment.