infinum / flutter-charts

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

Candle Charts #88

Closed athompson887 closed 1 year ago

athompson887 commented 1 year ago

I am trying to create a candle chart with a specific range - for example 0 - 15. I cannot find an option to do this. Currently if I only have a value from 0 - 2 - then the highest value shown is 2. Is this functionality possible?

itsJoKr commented 1 year ago

Hi @athompson887

There's no specific range method, but you could do this way.

In ChartData there is valueAxisOverMax which specifies How much should chart draw above max value in the chart.

ChartData(..., valueAxisOverMax: (15 - _calculateYourHighestValueSomehow)).
athompson887 commented 1 year ago

Thank you very much - that is really helpfull