We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb5ead commit 67db049Copy full SHA for 67db049
app/components/Chart/SplitSparkline.vue
@@ -99,6 +99,7 @@ const configs = computed(() => {
99
? Array.from(new Set([...(unit.dashIndices ?? []), lastIndex]))
100
: unit.dashIndices
101
102
+ // Ensure we loop through available palette colours when the series count is higher than the avalable palette
103
const fallbackColor = palette[i] ?? palette[i % palette.length] ?? palette[0]!
104
const seriesColor = unit.color ?? fallbackColor
105
const lightenedSeriesColor: string = unit.color
0 commit comments