Home Forums Chart Support specify the toolTipContent data

specify the toolTipContent data

Viewing 2 posts - 1 through 2 (of 2 total)
  • #20178

    Hi,
    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

    #20181

    @yanzai,

    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?


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.