wuxudong / react-native-charts-wrapper

a react native charts wrapper (support android & iOS)
2.43k stars 657 forks source link

Customised Y Axis value formatter #956

Open kushalshah-invx opened 1 year ago

kushalshah-invx commented 1 year ago

We wanted to have customise y axis values which contains string formate. We are using "react-native-charts-wrapper": "^0.5.7" version and wanted to achieve below specified view in chart.

Screenshot 2023-06-14 at 2 53 06 PM

What we have tried is: valueFormatter: ["Too low", "Just right", "Too High"],

But no luck.

Specifications

wuxudong commented 1 year ago

I think limitLines can help. image

kushalshah-invx commented 1 year ago

@wuxudong Thanks for the quick reply I will check this property now.

kushalshah-invx commented 1 year ago

@wuxudong We checked the suggested solution but it is related to limit lines so this will not work in our case. What we are looking at is customise the Y axis values as per our needs. If you look at the attached screen shot we need to show "Too low", "Just right" & "Too high". Please help us to achieve this. Thank you