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

FLDotData accepting widgetBuilder instead of Painter #839

Open fvisticot opened 2 years ago

fvisticot commented 2 years ago

For my application I need to display specific informations for each point of the LineChart.

In my case, I use the LineChart as a map Elevation View and I would like to display information for specific points of the line:

If I'm correct the current library allows to create our own FlDotPainter and provide a default FlDotCirclePainter in charge of displaying colored circle for points.

It would be more easy / user friendly to provide a WidgetBuilder as property of the FLDotData class instead of a painter.

Is this feature planed in the roadmap ?

imaNNeo commented 2 years ago

Hi @fvisticot. Allowing to pass a Widget is not easy. But we're working on it. For example, in our latest release we have implemented a way to pass a widget in titles around the chart.

LineChartSample 8 (Source Code)

BarChartSample 7 (Source Code)

ImanBoudellaa commented 1 year ago

Is there any progress on this question i have the same requirement

mauricioluz commented 9 months ago

Is there any update about it?

nguyendangvu221 commented 7 months ago

Are there any further updates on this issue? I also need to use it

LevanGelashvili commented 4 months ago

I need it too :(