Home forums Using CanvasJS specify the toolTipContent data

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 4 months, 3 weeks ago.

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

    yanzai
    Member

    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

    Vishwas R
    Keymaster

    @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.