chart's tooltip Date-time format

0 Answers 459 Views
Charts ToolTip
Claudio
Top achievements
Rank 1
Iron
Iron
Claudio asked on 26 Nov 2021, 03:50 PM

Hi all,

I have this problem:

We would like to change the date format of the chart series tooltip. The desired format is dd/mm/yyyy. The culture of the site is english. In attached you find the example of the tooltip that we would like to change in the format.

Can someone help me on this issue?

Thank you a lot,

Claudio

Nikolay
Telerik team
commented on 01 Dec 2021, 01:44 PM

Hi Claudio,

You can use a template for the tooltip and set the desired format:

template: "#=kendo.toString(category, 'dd/mm//yyyy') #"

Here is a Dojo demo demonstrating this: https://dojo.telerik.com/OFiZEpOs

More about date formatting: https://docs.telerik.com/kendo-ui/globalization/intl/dateformatting

Hope this helps.

 

No answers yet. Maybe you can help?

Tags
Charts ToolTip
Asked by
Claudio
Top achievements
Rank 1
Iron
Iron
Share this question
or