esnet / esnet/react-timeseries-charts
No way to style legend
- Dominant language
- JavaScript
- Stars
- 876
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
The "styler" object in this library actually hard-codes the colors of legend labels to 333 and values to 999 and prevents you from changing them. This basically prevents you from using a legend on a chart with a dark background.
There's no reason why the colors of legend labels and values shouldn't be configurable. There aren't any other hard-coded colors being set in styler.js, just these two.
Contributor guide
Research direction
Start by inspecting styler.js, especially the legend label and value color handling described in the issue. Trace how the styler is used by the chart legend and check existing styling configuration patterns. Done means those two colors are configurable instead of fixed, with dark-background legends able to use alternate values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100