Fl_chart: Two axis Y with different variables

Created on 1 Sep 2020  Â·  7Comments  Â·  Source: imaNNeoFighT/fl_chart

Most helpful comment

I needed to implement linear chart with two Y variables. I used rightTitles and leftTitles. And calculated Spot Y for the second variable as (Y2 - minY2) / (maxY2 - minY2) * (maxY - minY) + minY to show it correctly in chart.

All 7 comments

I needed to implement linear chart with two Y variables. I used rightTitles and leftTitles. And calculated Spot Y for the second variable as (Y2 - minY2) / (maxY2 - minY2) * (maxY - minY) + minY to show it correctly in chart.

I needed to implement linear chart with two Y variables. I used rightTitles and leftTitles. And calculated Spot Y for the second variable as (Y2 - minY2) / (maxY2 - minY2) * (maxY - minY) + minY to show it correctly in chart.

Do you have an example to show me? I would be very grateful.

photo_2020-09-03_18-54-03
Looks like this

Thanks, @ldemyanenko your solution is smart.

@JErazo7 I think It should be handled outside of the chart

photo_2020-09-03_18-54-03
Looks like this

What should I do if the y-axis scale on the right is a different range and latitude?pls

We are also looking for the ability to do dual Y-axis.

210aaa

(Came from #51)

Was this page helpful?
0 / 5 - 0 ratings