How to Set a Minimum Y-Axis Value in LineChart? #872
-
I'm working with the LineChart component, and I need the Y-axis to start from a value greater than zero, specifically 60. Currently, I’ve managed to get this somewhat working using custom yAxisLabelTexts and adjusting the stepHeight. However, I'm unsure how to properly calculate the stepHeight based on the maxValue and noOfSections. Is there a recommended way to handle this, or is there a simpler method to set a custom minimum value for the Y-axis (e.g., minYValue={60})? |
Beta Was this translation helpful? Give feedback.
Answered by
Abhinandan-Kushwaha
Oct 16, 2024
Replies: 1 comment
-
@ArturV93 try the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ArturV93
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ArturV93 try the
yAxisOffset
prop