Skip to content

Commit

Permalink
[Vislib] Fix bad color mapping with multiple split series
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Oct 16, 2020
1 parent 4ff6780 commit 3a815e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/charts/public/services/colors/color_palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function createColorPalette(num: number): string[] {
const seedLength = seedColors.length;

_.times(num - seedLength, function (i) {
colors.push(hsl((fraction(i + seedLength + 1) * 360 + offset) % 360, 0.5, 0.5).hex());
colors.push(hsl((fraction(i + seedLength + 1) * 360 + offset) % 360, 50, 50).hex());
});

return colors;
Expand Down

0 comments on commit 3a815e6

Please sign in to comment.