Home forums Using CanvasJS About datetime format in tooltip

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 1 month ago.

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

    prasad
    Member

    Hey

    I am using multiple axis graph for college project. I use sensor which is store sensordata in mysql with current datetime (2018-09-18 12:14:15) format.
    I want to show full datetime (2018-09-18 12:14:15) in tootltip with sensordata.But it show only date(18 sept 2018), not a time.
    I want solution for datetime tooltip.

    #22654

    Vishwas R
    Keymaster

    @prasad,

    xValueFormatString defines the format of x-value to be displayed in toolTip and indexLabel. Setting xValueFormatString to ‘YYYY-DD-MM hh:mm:ss’ should show date in the format you are looking for. Checkout our documentation for more customization options available.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.