Problem when there is more than two y-axis value for single x-axis value

I am using SplineSeries with xAxis as CategoryAxis and yAxis as NumericAxis.

As shown in the video when clicking on the y-axis value Aug 24 chart only shows 4 trackballs instead of seven but when clicking on the y-axis value on Aug 25 or Aug 29 it works perfectly fine.

Here is the code i am using for trackballBehavior

TrackballBehavior(
enable: true,
activationMode: ActivationMode.singleTap,
tooltipDisplayMode: TrackballDisplayMode.floatAllPoints,
tooltipAlignment: ChartAlignment.near,
markerSettings: const TrackballMarkerSettings(
markerVisibility: TrackballVisibilityMode.visible,
),
shouldAlwaysShow: true,
tooltipSettings:
const InteractiveTooltip(enable: true, canShowMarker: true),
);

Attachment: Simulator_Screen_Recording_dbc089af.zip

3 Replies

SK Sriram Kiran Senthilkumar Syncfusion Team September 13, 2022 02:18 PM UTC

Hi Het,


Greetings from Syncfusion.

We have checked your query at our end, and we would like to let you know that the trackball tooltips for the data points in the x-axis value Aug 24 is not rendering for all of them is due to the y-values being too close to each other in value and trackball tooltips for those data points are not rendered to avoid overlapping with each other. This is the current default behavior.

However, if want to view all the data points y-values, we suggest using the `groupAllPoints` mode for the tooltipDisplayMode of TrackballBehavior.


Regards,

Sriram Kiran



HE Het September 14, 2022 04:42 AM UTC

Hey Sriram,


Thanks for the reply.

I already tried setting the groupAllPoints mode for the tooltipDisplayMode of TrackballBehavior

But It is not working as well.


In the first video, you can see that 1-sep is only showing two points in a group instead of six points and when I tried setting floatAllPoints(second video) it showed the same two-point just in a floating container instead of a grouped container.


Attachment: video_d41cb4d1.zip


SK Sriram Kiran Senthilkumar Syncfusion Team September 15, 2022 12:57 PM UTC

Hi Het,


We have validated your query at our end, and we would like to let you know that as per the current behaviour, for groupAllPoints mode, we have generated the same tooltip values which appear when using floatAllPoints mode due to which the same y-values are displayed in the grouped tooltip and this occurs only when there are closely packed y-values of the data points in the same x-value.

However, we have considered this as an improvement and logged a feature request regarding “Provide option to improve trackball group all points mode to show all the available y-values on the x-value” in our feedback portal. We suggest you upvote the feedback link provided below as we prioritize the features of every release based on demand and priority. So, this feature will be available in any of our upcoming releases. You can also track the status of the f with the feedback below.

https://www.syncfusion.com/feedback/37754


Regards,

Sriram Kiran


Loader.
Up arrow icon