Skip to content

Commit

Permalink
WIP: Use length of color palette
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis authored Aug 8, 2019
1 parent 28fd96a commit c30b19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/charts/src/util/populateData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const populateData = (labels, datasets, colors, theme, isPie = false) =>
labels,
datasets: datasets.map((item, index) => ({
backgroundColor: isPie ? colorPalette : colorPalette[index % colorPalette.length],
borderColor: isPie ? colorPalette : colorPalette[index % 12],
borderColor: isPie ? colorPalette : colorPalette[index % colorPalette.length],
...item
}))
};
Expand Down

0 comments on commit c30b19a

Please sign in to comment.