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.87k stars 1.78k forks source link

Hacky solution for zooming and displaying extra data / titles across the chart #1712

Closed Tobbyte closed 4 months ago

Tobbyte commented 4 months ago

Hi everyone,

I wanted to share my hacky workaround for making the chart zoomable and placing the (bottom) titles above the chart to be able to show whatever additional data.

It's not the most elegant solution, but maybe it can help someone else out there. bases on older solutions of @theovogel here and @techhouse here

minimal demo: repo

Bildschirmfoto 2024-07-17 um 09 44 59

I use this to display week ticks across the chart, like so.

Bildschirmfoto 2024-07-17 um 09 47 14

cheers :vulcan_salute:

imaNNeo commented 4 months ago

Can you please just write your idea in thread #71 and close this issue? Because it doesn't make sense to have a new issue for that. It is completely related to #71

Tobbyte commented 4 months ago

https://github.com/imaNNeo/fl_chart/issues/71#issuecomment-2240945146

imaNNeo commented 4 months ago

#71 (comment)

Thanks a lot!