How to show the label even if the value is outside the chart

Hello,


I have an issue on how to show the label of a trackball even if it falls outside the y axis on the chart. for example the value of the marker exceeds the y value. the tracker should still show at the top most with the label stating the exact value.


1 Reply

DR Dhanaraj Rajendran Syncfusion Team September 11, 2024 06:37 PM UTC

Hi Gershon,


We have reviewed your query regarding the display of the trackball label when the marker is outside the chart's Y-axis range.


We would like to clarify that when the trackball's DisplayMode is set to FloatAllPoints, the label not appear if the data point falls outside the visible chart area. This is by design, as showing the label floating in the chart without any datapoint would be inaccurate.


However, if your goal is to display the label even when the data point exceeds the Y-axis range, we recommend using the GroupAllPoints as trackball's DisplayMode. This will group all data points with the same X value and display them as a single label, ensuring that the label remains visible.


KB Link: Trackball in .NET MAUI Chart control | Syncfusion


Please try this solution and let us know if it addresses your issue. If it doesn’t, kindly provide more details about your expected behavior for displaying the trackball when the data point is outside the chart view, and we’ll be happy to assist further.


Thank you for your patience.


Regards,

Dhanaraj Rajendran.


Loader.
Up arrow icon