syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.56k stars 760 forks source link

Customizing Trackball Line Height Based on Data Point #2093

Open Dao-Van-Thanh opened 2 days ago

Dao-Van-Thanh commented 2 days ago

Hello Syncfusion team,

I am currently using the syncfusion_flutter_charts package and have come across a limitation with the TrackballBehavior feature. Specifically, I am trying to customize the vertical trackball line such that it only spans from the bottom of the chart to the specific data point where the trackball is positioned, instead of extending from the top to the bottom of the chart.

Current Behavior: The vertical trackball line currently spans the full height of the chart, which may not be visually ideal for certain applications. image

Expected Behavior: I would like the trackball line to stop at the y-coordinate of the data point where the trackball marker is placed, as shown in this image

Question: Is there currently any way to customize the height of the trackball line to achieve this behavior? If not, would it be possible to add support for controlling the trackball line height dynamically based on the y-value of the data point?

Thank you for your time and for the continuous improvements to this library!

Best regards, Thanh

ThilipChandru commented 1 day ago

Hi @Dao-Van-Thanh,

We would like to inform you that we have a knowledge base (KB) to meet your requirement. We have shared it below for your reference. You can refer to this knowledge base and modify the sample based on your requirement.

KB Links: How to customize the trackball in Flutter CartesianChart? (syncfusion.com).

Regards, Thilip Chandru

Dao-Van-Thanh commented 1 day ago

Hi Thilip Chandru,

Thank you so much for your prompt response and for providing the knowledge base link. I truly appreciate your guidance, and I'll go through the resource you've shared to modify the sample as per my requirements.

Best regards, Dao Van Thanh