Open primozs opened 8 years ago
I guess these could go into the style object, but it would have to be highly optional.
They can't go in the style object. The svg needs to have a defs section that includes the LinearGradient tag.
This library only supports solid colors.
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