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

Adding a pointer beside the bar rod. #1480

Open PhaniUmmedisetti opened 1 year ago

PhaniUmmedisetti commented 1 year ago
Screenshot 2023-11-06 at 2 23 07 PM

As you can see the bar rod it has a pointer which is pointing towards the bar rod.

Let me explain. I am using the bar to showcase the marks of the student and i'd like to put the pointer beside the bar rod which will indicate the 'personal best score' of the student. The package uses the custom painter and paints the entire chart so i'm unable to add it. Can anyone help me with this?

imaNNeo commented 1 year ago

Unfortunately, we don't support it at this time. But it is not a complicated feature. We can define a new concept of BarRodIndicator and add a list of them in each BarRodData to allow you to draw your custom indicator (we can provide some built-in ones just like FlDotPainter:

https://github.com/imaNNeo/fl_chart/blob/c8dc3c0877f9c0ea25f4f9149eec4f4de7d954b9/lib/src/chart/line_chart/line_chart_data.dart#L800-L808

jayjhaveri commented 11 months ago

Hi @PhaniUmmedisetti, I am late here, I guess. The new update in the scatter chart can fulfil your requirements; now, we can put custom paint in the Scatter chart.

imaNNeo commented 11 months ago

Oh, I see that closed it by mistake. I will re-open it.

TobiasRump commented 8 months ago

Hi @imaNNeo,

Could you please confirm if this ticket is still open?

We're a small Open-Source Group within our company, consisting of 2-3 members, actively engaging with open-source projects. We're interested in tackling a "good first issue" in your FLChart Package, as it's integral to our production apps.

Excited to start collaborating on this new feature with the approach you mentioned before.

imaNNeo commented 6 months ago

Hi @TobiasRump Sorry for my late answer, Yes, it is still open and you can work on it. As a hint, you can use the same approach that we have for the FlDotPainter