X-axis date-time ZingChart

I want to build a date-time and integer. I tried Date (year, month, day, hours, minutes, seconds), but it does not support it. So is it possible to plot the date-time along the x axis using zingChart?

+4
source share
1 answer

To display dates you can use the attribute transformon your own scale-x. It allows you to format the Unix timestamp as you want. Here is an example.

"scale-x":{
  "transform":{
    "type":"date",
    "all":"%d %M, %h:%i %A"
  }
}

You can see the visualized graph here.

Here is a link to documents on the ZingChart website for converting date and time. I am on the ZingChart team. Holler if you have other questions.

+8
source

Source: https://habr.com/ru/post/1599056/


All Articles