Skip to content

Commit 0d23a3c

Browse files
authored
Merge pull request #1081 from biigle/1006-total-contribution-pie-chart
Pie chart HSL value format
2 parents b03aabf + 8a45313 commit 0d23a3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/assets/js/projects/components/charts/IDToColor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ export function IDToColor(id) {
1616
const hue = id % 360;
1717
const saturation = 70 + (id % 31); // Ensure saturation is between 70 and 100
1818
const lightness = 70 + (id % 21); // Ensure lightness is between 70 and 90
19-
20-
return `hsl(${hue} ${saturation}% ${lightness}%)`;
19+
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
2120
}

0 commit comments

Comments
 (0)