Home › forums › Using CanvasJS › data xValueFormatString and unixtimestamp
Tagged: timestamp xValueFormatString
This topic contains 1 reply, has 2 voices, and was last updated by Manoj Mohan 3 months, 1 week ago.
I have a graph for which the x axis is a Date object derived from a unix timestamp. Everything is working correctly. When I mouse over a point in the graph it shows a little panel with the timestamp in the format format specified by xValueFormatString (“hh:mm:ss TT”) on the first line and the Y value on the graph on the lines below.
Would it be possible in the little window to show in addition to the datetime in format “hh:mm:ss TT” to also show the unix timestamp for the data point?
You can use contentFormatter to customize the content of toolTip to show date-time in the desired format along with timestamp.
You must be logged in to reply to this topic.