Access to trackball information

Hi,

I need to access the trackball values, por example the value 150 shown in the next image



If I add the variable in debug mode I can access the information, in this at the attribute/property "Category"


but when I want to use it for example to display a message, just for testing purpose, the "trackball" branch is not available and



How can I access this information in real time?

Thansk!


3 Replies 1 reply marked as answer

DD Devakumar Dhanapoosanam Syncfusion Team February 11, 2022 01:11 PM UTC

Hi Pablo Devoto, 
 
You can access the trackball information in real time using the TrackballTooltipRendering event of trackball in the chart as per the below code example.  
 
 
this.chart.Trackball.Visible = true; 
this.chart.Trackball.TrackballTooltipRendering += Trackball_TrackballTooltipRendering; 
 
 
private void Trackball_TrackballTooltipRendering(object sender, TrackballTooltipEventArgs args) 
{ 
    var index = args.pointIndex; 
    foreach (ChartSeries series in chart.Series) 
    { 
        var point = series.Points[index]; 
        //here you can get the property value 
        Debug.WriteLine("Category" + point.Category); 
    } 
} 
 
 
Please refer the below link for more details 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Devakumar D 


Marked as answer

PD Pablo Devoto February 11, 2022 02:13 PM UTC

great!!!, it's what I needed, thanks for the example



DD Devakumar Dhanapoosanam Syncfusion Team February 14, 2022 12:46 PM UTC

Hi Pablo Devoto, 
 
We are glad to know that the provided solution works. Please let us know if you need any further assistance on this. 
 
Regards, 
Devakumar D 


Loader.
Up arrow icon