Home › forums › Chart Support › tooltip datetime formatting
How do I set the format string for the tooltip to display dateTime data without using the contentFormatter option? I’d like it to show time also but instead it only shows “DD MMM YY”.
You can use xValueFormatString to format x values being shown in toolTip & indexlabel.
Thanks a lot! I must have overlooked it :)
Btw. how do I set proper values for viewportMinimum/viewportMaximum for dateTime xValueType ? When I have just one set of data a dot is displayed on the y line. How do I center it?
how do I set proper values for viewportMinimum/viewportMaximum for dateTime xValueType ?
You can pass the date as date-object or timestamp value to viewportMinimum/viewportMaximum incase of dateTime axis.
If you are still facing any issue, kindly create JSFiddle reproducing the issue and share it with us so that we can look into your code, understand your scenario better and help you out.
You must be logged in to reply to this topic.