日期 - 时间轴工作为字符串,而不是Zing图中的正确连续日期/时间轴 [英] Date-time axis working as string, not as proper continuous date/time axis in Zing Chart

查看:313
本文介绍了日期 - 时间轴工作为字符串,而不是Zing图中的正确连续日期/时间轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ZingChart中绘制日期时间对整数。即使存在一秒的差或1小时的差,两点之间的宽度也相同。如果开始时间与前一个相同,如在我附加的图像在23:24:40,如果它是正确的日期和时间轴之间,应该没有一个白色的差距。有这个问题的任何解决方案吗?您也可以在alnnovative.com/zing6.php上查看它

I am plotting date-time vs integer in ZingChart. Even if there is difference of one second or the difference of 1 hour, the width is same between the two points. If the starting time is same as the previous one, like in my attached image at 23:24:40, there should not a white gap in between if it is proper date and time axis. Is there any solution to this problem? You can also view it on alnnovative.com/zing6.php

推荐答案

除非使用键值对作为数据点,否则ZingChart将自动在每个索引处设置值。要这样做,设置你的系列对象值如下:

ZingChart will automatically place values at each index, unless you use key, value pairs as your data points. To do this, set your series object values like so:

"values":[
    [1420070400000,50],
    [1420071000000,50],
    [1420070520000,50],
    [1420070640000,50],
    [1420070700000,50],
    [1420070760000,50],
    [1420070820000,50],
    [1420070940000,50],
    [1420071060000,50]
]

查看此演示。我是ZingChart团队的成员,如果您需要更多帮助,请告诉我们。

Take a look at this demo. I'm a member of the ZingChart team, let me know if you need more help.

这篇关于日期 - 时间轴工作为字符串,而不是Zing图中的正确连续日期/时间轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆