imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.86k stars 1.78k forks source link

Add or subtract from minX, miny, maxX and maxY #1701

Closed JohanScheepers closed 4 months ago

JohanScheepers commented 4 months ago

The ability to add or subtract a value from auto calculated minX, miny, maxX and maxY

Is your feature request relasted to a problem? Please describe. The max or min sits on the edge of the chart, ill look better if their are some 'padding' in the chart

Describe the solution you'd like

LineChartData(maxX: maxX + 2,
                      minX: minX - 2,
                      maxY: maxY + 2,
                      minY: minY - 2,

Additional context image

imaNNeo commented 4 months ago

I think it will be cleaner if you add it manually in my opinion. Because it is a rare use-case, so it doesn't make sense to have it inside the chart features.