infinum / flutter-charts

Customizable charts library for flutter.
https://pub.dev/packages/charts_painter
MIT License
144 stars 42 forks source link

Is it possible to have two lines with different horizontal axis values? #34

Closed roly151 closed 2 years ago

roly151 commented 2 years ago

I would like to create a line chart with two lines. But the horizontal axis values for each line need to be different. One is a temperature (so could be 0 to 40 degrees), the other one is a chance of rain (so could be 0% to 100%). Is this possible?

Hopefully the question makes sense.

lukaknezic commented 2 years ago

Hey @roly151

If I understand correctly I think easiest way to do this is just to build 2 charts and add them in a Stack. Currently library is not supporting different X or Y coordinates for different data on same chart.

roly151 commented 2 years ago

Thanks - I did consider that. I'll give it a go.