We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to show actual range in title?

Hi, 

I'd like to show the actual range on DateTimeAxis in title, and update it when  there's a change.

How to do that?


6 Replies 1 reply marked as answer

YG Yuvaraj Gajaraj Syncfusion Team March 20, 2023 01:08 PM UTC

Hi Zhu,


We are validating your query at our end and we will update further details in one business day on 21 March 2023. We appreciate your patience until then.


Regards,

Yuvaraj.



YG Yuvaraj Gajaraj Syncfusion Team March 21, 2023 05:42 PM UTC

Hi Zhu,


We have checked your query and trying to achieve your requirement in a feasible workaround. We will update the further details tomorrow. We appreciate your patience until then.


Regards,

Yuvaraj.



ZH Zhu replied to Yuvaraj Gajaraj March 22, 2023 06:41 AM UTC

Hi, Yuvaraj,


Great, hopefully, that would not need a refresh of whole screen.

Thank you.


Regards,

Zhu.



YG Yuvaraj Gajaraj Syncfusion Team March 22, 2023 12:16 PM UTC

Hi Zhu,


Currently, we don't have direct support to update the actual range in the chart title, because it requires setState and will rebuild the chart again. However, we have achieved your requirements in a workaround sample with the help of the TextField widget, we have stored the actual range from the onActualRangeChanged event and updated the actual range value to the TextField widget whenever you pan the chart with the help of onZooming callback. We have shared the sample below for your reference.


Screenshot:



Regards,

Yuvaraj.


Attachment: f181236_a5457928.zip

Marked as answer

ZH Zhu March 24, 2023 02:19 AM UTC

Hi, Yuvaraj,


Great, it looks good.

Thank you for the help.


Regards,

Zhu.



YG Yuvaraj Gajaraj Syncfusion Team March 24, 2023 05:04 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon