esnet / esnet/react-timeseries-charts

Gradient color on LineCharts

Open
#98 2 comments 0 reactions 0 assignees View on GitHub
:octocat: help wanted :sparkles: enhancement
Dominant language
JavaScript
Stars
876
Forks
279
PR merge metrics
No merged PRs in 30d

Description

What would be the right approach to upgrade the LineChart with possibility to define gradient color like this:
https://bl.ocks.org/mbostock/3969722
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient

It seams gradient definition can be added anywhere so it would be interesting to modify LineChart or any other to accept two additional properties "colorGradient" default "linearGradient" and "colorGradientStops": PropType.array and render them in the LineChart grouping?
Would you find this interesting to add with a pull request?
Cheers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.