DateTime not respecting timezone in Tooltip and Trackbar

Hi,

when using a DateTimeAxis the DateTime value is a UTC time.
The label shows the time correctly based on the timezone.

However, the Trackball is just showing the UTC time. 
I haven't seen any option to format or have control of this. 

How do I get the trackball time to match the axis label time? 





3 Replies 1 reply marked as answer

LP Lokesh Palani Syncfusion Team July 11, 2024 02:20 PM UTC

Hi Matthias,


We have validated the reported issue. You can overcome this with the help of axisLabelFormatteronTooltipRender, and onTrackballPositionChanging callback, by using this you can customize its label and tooltip text. We have shared the related UG documentation below for your reference. However, we have considered this as an improvement, and it will be included in any of our upcoming releases. Please let us know if you need any additional assistance.



UG Link for AxisLabelFormatter callback to customize the Axis label in the Axis: https://help.syncfusion.com/flutter/cartesian-charts/callbacks#axislabelformatter


UG Link for onTooltipRender callback to customize the text in the Tooltip:

https://help.syncfusion.com/flutter/cartesian-charts/callbacks#ontooltiprender


UG Link for onTrackballPositionChanging callback to customize the text in the Trackball Tooltip: https://help.syncfusion.com/flutter/cartesian-charts/callbacks#ontrackballpositionchanging


Regards,

Lokesh P.


Marked as answer

MK Matthias Koch July 13, 2024 01:48 PM UTC

Hi, thanks a lot it works :)

I realized that the DateTime was not converted to a Local, it seems that for the AxisLabel it is done automatically. 
but not for the Trackball, 
when converting it before to Local, it is shown in the local timezone on the label and es well on the Trackball. 



LP Lokesh Palani Syncfusion Team July 15, 2024 07:38 AM UTC

Hi Matthias,


Most Welcome. Kindly get back to us if you have further queries. We are always happy to assist you.


Regards,

Lokesh P.


Loader.
Up arrow icon