Skip to content

Commit 67db049

Browse files
committed
chore: add comment
1 parent ffb5ead commit 67db049

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/components/Chart/SplitSparkline.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ const configs = computed(() => {
9999
? Array.from(new Set([...(unit.dashIndices ?? []), lastIndex]))
100100
: unit.dashIndices
101101
102+
// Ensure we loop through available palette colours when the series count is higher than the avalable palette
102103
const fallbackColor = palette[i] ?? palette[i % palette.length] ?? palette[0]!
103104
const seriesColor = unit.color ?? fallbackColor
104105
const lightenedSeriesColor: string = unit.color

0 commit comments

Comments
 (0)