Home Forums Chart Support ValueFormatString of axisX

ValueFormatString of axisX

Viewing 4 posts - 1 through 4 (of 4 total)
  • #42769

    I’d like to describe such as “23-01” or “23-02” or “23-04” and so on.

    I get fowwowing json_encode and HTMLcodes.

    Could you tell me how i describe such as “23-01” or “23-02” or “23-04” and so on in Tokyo time?

    [{"x":1667228400,"y":15},{"x":1672498800,"y":4},{"x":1675177200,"y":15},{"x":1677596400,"y":30},{"x":1680274800,"y":112},{"x":1682866800,"y":33}]

    [HTMLcodes]
    https://onl.la/YbfFWJ6

    #42789

    @yuic-sk12345,

    To display timestamp values as Date & Time, you will have to set xValueType property to “dateTime”. You can format the date-time values shown in axis labels and tooltip using xValueFormatString property and valueFormatString property accordingly.


    Adithya Menon
    Team CanvasJS

    #42832

    Thank you.

    To display timestamp values as Date & Time, you will have to set xValueType property to “dateTime”.

    I have already set xValueType property to “dateTime” in row #62.

    You can format the date-time values shown in axis labels and tooltip using xValueFormatString property and valueFormatString property accordingly.

    I have already set xValueFormatString property to “YY” in row #52.

    So
    I don’t know what to do.

    #42834

    @yuic-sk12345,

    Can you kindly create JSFiddle reproducing the issue you are facing & share it with us so that we can look into the code / chart-options being used, understand the scenario better and help you out?


    Adithya Menon
    Team CanvasJS

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

You must be logged in to reply to this topic.