Page 1 of 1

xDateFormat not working

Posted: Sat May 14, 2022 5:53 pm
by huy21110027781
Hi,

I want to format tooltip datetime at xAxis and I added "xDateFormat" config to tooltip option already but it is not working.

Demo: https://jsfiddle.net/huy21110027781/c2semo5b/5/

Image

Thanks

Re: xDateFormat not working

Posted: Mon May 16, 2022 5:46 am
by mateusz.b
Hi huy21110027781,

Thanks for contacting us with your question.

xDateFormat property is not applied in this case, because you overwrite the tooltip value in the formatter callback. Using xDateFormat value in formatter should help in this case:
Demo:https://jsfiddle.net/BlackLabel/oxmcw48p/

Let me know if it was what you were looking for.
Regards!

Re: xDateFormat not working

Posted: Mon May 16, 2022 2:07 pm
by huy21110027781
Hi mateusz.b,

Thanks a lot for your support. I did it.

Re: xDateFormat not working

Posted: Mon May 16, 2022 10:26 pm
by mateusz.b
You're welcome! In case of any further questions, feel free to contact us again.