Skip to content

Commit

Permalink
Merge pull request #1081 from biigle/1006-total-contribution-pie-chart
Browse files Browse the repository at this point in the history
Pie chart HSL value format
  • Loading branch information
mzur authored Feb 12, 2025
2 parents b03aabf + 8a45313 commit 0d23a3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/assets/js/projects/components/charts/IDToColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ export function IDToColor(id) {
const hue = id % 360;
const saturation = 70 + (id % 31); // Ensure saturation is between 70 and 100
const lightness = 70 + (id % 21); // Ensure lightness is between 70 and 90

return `hsl(${hue} ${saturation}% ${lightness}%)`;
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
}

0 comments on commit 0d23a3c

Please sign in to comment.