Recharts scaling of graph in x axis #3605
Unanswered
mongchanghsi
asked this question in
Q&A
Replies: 1 comment 2 replies
-
https://codesandbox.io/s/simple-area-chart-forked-c3cyl0?file=/src/App.tsx |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to build a line chart, that is Price (X-Axis) vs Quantity Available (Y-Axis). Say I have the following data points
Given how the upper limit of the price is large compared to the lower limit, the graph will look essentially almost like a horizontal straight line.
Is it possible to scale it in a way such that the lower price take up a larger area as compared the higher price. So it will look more like a concave curve.
I noticed that there is a
scale
attribute under XAxis, I am not sure whether is it that, so far tried all the available default options is doesn't provide the result that I am looking for. Also when I triedscale="log
, it has the following error. Not exactly sure what is the issue, but I had set mywidth="100%"
under ResponsiveContainerI am extremely new to Recharts or data visualisation as a whole, appreciate everyone's input!
Beta Was this translation helpful? Give feedback.
All reactions