We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug If you have more than 10 challenge categories, the pie chart runs out of colors.
To Reproduce Steps to reproduce the behavior:
Expected behavior Every category should have a color
Screenshots
The text was updated successfully, but these errors were encountered:
https://github.com/ractf/ui-kit/blob/572429458c336d03273e4e20cc154389f873cf7f/components/charts/common.js Not sure of ideal way to fix this, the colours are hardcoded right now.
Sorry, something went wrong.
This could maybe be done by looping on the color array and applying a brightness or darkness color lerp?
eg: [0, ..., 9, darken(0), ...]
No branches or pull requests
Describe the bug
If you have more than 10 challenge categories, the pie chart runs out of colors.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Every category should have a color
Screenshots

The text was updated successfully, but these errors were encountered: