Sarah Mandana
Sarah Mandana

Reputation: 1513

Displaying each and every value on x-axis in Zing chart

I have many values on x-axis and I want all the values to be displayed on the x-axis when I zoom. Is there any way to do it? As every square has no value mentioned at the bottom, so it would get difficult for the person, seeing the graph, to know which date and time that portion belongs to. You can view my graph on alnnovative.com/zing5.php and could give any suggestion too, if you think it is better to implement, in order to achieve the requirement

Upvotes: 3

Views: 774

Answers (1)

Stalfos
Stalfos

Reputation: 1520

You'll want to use a combination of the numeric max-items & the boolean items-overlap attributes within your scale-x object to find the best way to display the information to your users. In this demo, I've reconfigured the format of the timestamps, rotated them to allow for more space, and set the previously mentioned attributes like so:

"items-overlap":true,
"max-items":20

I hope this helps! I'm on the ZingChart team as well, so please let me know if you have any other questions.

Upvotes: 5

Related Questions