TimeLine chart with tracking ball

Hi, I trying to build a chart similar to attachment .


I'm using SfCartesianChart,

is there way to get 24h like in pic, I've tried this:

primaryXAxis:DateTimeAxis(


intervalType: DateTimeIntervalType.hours,

desiredIntervals: 2,

interval: 2,

maximum: DateTime.now().add(

Duration(hours: 24, minutes: 59, seconds: 59),

),


// sets the date format to 12 hour

dateFormat: DateFormat.jm(),

),

but it displays 12:00PM - 12:00 PM

also, how i can update Trackball according to the current time?


Attachment: chart_85c198a1.rar


1 Reply

YG Yuvaraj Gajaraj Syncfusion Team November 1, 2021 12:43 PM UTC

Hi Bar ilan kimbaro, 
 
Greetings from Syncfusion. We have analyzed your query and we suspect that you wish to show the trackball at current time after chart the chart renders. If this is your requirement, using the showByIndex public method, we can show the trackball. We have prepared a sample, here we have shown the trackball at current time using the button click event. You can modify this based on your scenario. 
 
  
 
If this is not your case, kindly share more information on how you need to show the trackball i.e on user interaction on the chart or without interacting the chart, such information will be helpful in providing the solution earlier. 
 
Regards, 
Yuvaraj. 


Loader.
Up arrow icon