The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I need some guidance in graph I want similar feature like crosshair but just like in crosshair if I tap on any graph it will show graph value but I want that if I tap on any point it should give value of nearest point in that graph
YGYuvaraj Gajaraj Syncfusion Team July 11, 2022 01:33 PM UTC
Hi Risheeta,
Greetings from Syncfusion. We suggest you the onTrackballPositionChanging callback
using this you can get the data point information that is closest to your tap
position. We have attached the code snippet below to achieve your requirement.
Code snippet:
SfCartesianChart(
onTrackballPositionChanging: (args) {
print(args.chartPointInfo.chartDataPoint!.x);
print(args.chartPointInfo.chartDataPoint!.y);
},
trackballBehavior: TrackballBehavior(
enable: true,
activationMode: ActivationMode.singleTap,
lineColor: Colors.transparent,
// If you want to hide the
tooltip use the below property