Home › forums › Using CanvasJS › About datetime format in tooltip
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 1 year, 1 month ago.
I am using multiple axis graph for college project. I use sensor which is store sensordata in mysql with current datetime (2018-09-18 12:14:15) format.
I want to show full datetime (2018-09-18 12:14:15) in tootltip with sensordata.But it show only date(18 sept 2018), not a time.
I want solution for datetime tooltip.
xValueFormatString defines the format of x-value to be displayed in toolTip and indexLabel. Setting xValueFormatString to ‘YYYY-DD-MM hh:mm:ss’ should show date in the format you are looking for. Checkout our documentation for more customization options available.
You must be logged in to reply to this topic.