Closed nikmace closed 1 week ago
Hi!
There's nothing rendered on the other side of the area, so there's nothing to apply a gradient to. We'd have to support inverting the whole chart I think which isn't currently possible.
There might be some way to make it work without that kind of change but off the top of my head I can't think of anything.
Going to move this to a discussion - if you'd like to request a feature, feel free to create another issue. I'm not sure this is possible in any charting library, feel free to share examples if it is
Do you want to request a feature or report a bug?
Feature
Sorry for creating an issue, was not sure where to ask otherwise. Thank you in advance!
What is the current behavior?
I can only apply the gradient below the line.
Here is my AreaChart:
Currently it looks like this:
What is the expected behavior?
The gradient appears on the opposite side of the line, meaning from the line to the top of the chart.
And I want to make the gradient like this: (so it appears where I have drawn white lines, so it is inverted in relation to the line)
Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?
recharts: 2.12.1 Google Chrome Not sure if this ever worked