Home forums Using CanvasJS Data Points not showing TIme info

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Fu HSien 8 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14689

    Fu HSien
    Member

    Hi,
    I was using version 1.7 before this and I managed to show time info (DD MMM HH:mm:ss) in both X axis and Data points.
    After changing to the latest version, I realize when I do
    axisX: {
    intervalType: “day”,
    DD MMM HH:mm”
    }
    Only the axis get the format.
    screenshot
    Then, I look through the examples provided and realize they are all behaving like this as well.
    screenshot2

    Time info is especially important for my application. I would greatly appreciate if I can get some help here.
    Thank you in advance! :)

    #14690

    Fu HSien
    Member

    Reposting images
    Image 1:
    Image1
    Image 2:
    image2

    #14691

    Suyash Singh
    Moderator

    @fu-hsien,

    valueFormatString formats the axis labels. In your case you will have to use xValueFormatString, yValueFormatString to format indexLabel or toolTip.

    ___
    Suyash Singh
    Team CanvasJS

    • This reply was modified 8 months, 3 weeks ago by  Suyash Singh. Reason: typo
    #14693

    Fu HSien
    Member

    Got it! Thank you so much. :)

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

You must be logged in to reply to this topic.