Home › forums › Using CanvasJS › specify the toolTipContent data
Tagged: toolTipContent time
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 6 months, 3 weeks ago.
This is my first time of using canvas, basically in the data point, i had followed the guide provided in the canvasJS. The X-axis that i am using is time, which i obtained from Date(Date.UTC(…)). However, it only display the date in the tip content. Is there any way to specify time in stead of date in the tip content by using toolTipContent? Thanks
You can format x-values that appears in toolTip & indexLabels to your desired format using xValueFormatString. Please take a look at this page for list of supported formats. In your case, setting xValueFormatString to “hh:mm” should work fine. If this doesn’t solve your requirement can you kindly create a jsfiddle with sample data so that we can understand your code better and help you out?
You must be logged in to reply to this topic.