fl_chart icon indicating copy to clipboard operation
fl_chart copied to clipboard

FLDotData accepting widgetBuilder instead of Painter

Open fvisticot opened this issue 3 years ago • 5 comments

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:

  • Image of the location
  • Circle or Rectangle regarding specific rules
  • Text inside the circle

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 ?

fvisticot avatar Dec 05 '21 11:12 fvisticot

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)

imaNNeo avatar Apr 20 '22 16:04 imaNNeo

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

ImanBoudellaa avatar Feb 15 '23 17:02 ImanBoudellaa

Is there any update about it?

mauricioluz avatar Feb 05 '24 18:02 mauricioluz