mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
diversify chartcolors for doughnut & stackedbar
This commit is contained in:
@@ -29,7 +29,7 @@ class DoughnutChart extends Component {
|
||||
datasets: [{
|
||||
label: this.props.title,
|
||||
data: this.props.data.map((d) => d.value),
|
||||
backgroundColor: colors.chartColors
|
||||
backgroundColor: colors.chartColorsDiversified
|
||||
}]
|
||||
}
|
||||
});
|
||||
|
@@ -41,7 +41,7 @@ class StackedBarChart extends Component {
|
||||
return {
|
||||
label: d.label,
|
||||
data: d.data,
|
||||
backgroundColor: colors.chartColors[index]
|
||||
backgroundColor: colors.chartColorsDiversified[index]
|
||||
};
|
||||
})
|
||||
}
|
||||
@@ -54,7 +54,7 @@ class StackedBarChart extends Component {
|
||||
return {
|
||||
label: d.label,
|
||||
data: d.data,
|
||||
backgroundColor: colors.chartColors[index]
|
||||
backgroundColor: colors.chartColorsDiversified[index]
|
||||
};
|
||||
});
|
||||
this.myChart.update();
|
||||
|
Reference in New Issue
Block a user