You must be logged in to post your query.
Home › Forums › Chart Support › ValueFormatString of axisX
Tagged: php
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}]
[{"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
@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
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.
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?
You must be logged in to reply to this topic. Login/Register