Disable Auto-Hide for Chart Trackball

Hello!

We are trying to prevent the trackball from hiding when a user taps on the chart. We saw the following posts/release notes:

https://www.syncfusion.com/feedback/59488/provide-option-to-disable-auto-hide-for-chart-trackball-in-net-maui

https://help.syncfusion.com/maui/release-notes/v27.1.48?type=all

We are currently using: Syncfusion.Maui.Charts 31.1.21

But we don't see how to disable the auto-hide functionality. There doesn't seem to be any property on the TrackballBehavior/Chart.

Do you have an example or information on how we can do this?

Thank you,

Josue


1 Reply

DR Dhanaraj Rajendran Syncfusion Team April 2, 2026 07:42 AM UTC

Hi Josue,

 

Thank you for checking with us.

Based on the current behavior and design, preventing the trackball from hiding is handled through customization of the interaction logic, rather than through a configurable property.

The recommended and intended approach is to extend ChartTrackballBehavior and override the touch interaction methods. By doing so, you can suppress the default touch handling that causes the trackball to hide and keep it visible when the user taps on the chart.

Sample Implementation:

using Syncfusion.Maui.Charts;

 

public class CustomTrackballBehavior : ChartTrackballBehavior

{

    protected override void OnTouchMove(ChartBase chart, float pointX, float pointY)

    {

        if (chart.SeriesBounds.Contains(pointX, pointY))

            Show(pointX, pointY);

    }

    protected override void OnTouchUp(ChartBase chart, float pointX, float pointY)

    {

        // Override without calling base to keep the trackball visible

    }

}

 

 

<chart:SfCartesianChart>

    <chart:SfCartesianChart.TrackballBehavior>

        <local:CustomTrackballBehavior />

    </chart:SfCartesianChart.TrackballBehavior>

</chart:SfCartesianChart>

 

This approach ensures trackball remains visible during user interaction.

If you have any more questions or require additional assistance, please feel free to ask.

 

Regards,

Dhanaraj Rajendran.


Attachment: F198258_995060e9.zip

Loader.
Up arrow icon