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

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

问题描述

我在ZingChart中绘制日期时间vs整数。即使有1秒的差异或1小时的差异,两点之间的宽度相同。如果起始时间与前一个时间相同,就像在23:24:40的附件中一样,如果它是适当的日期和时间轴,那么它们之间不应该有一个白色的差距。有没有解决这个问题?您还可以在alnnovative.com/zing6.php
上查看它

解决方案

ZingChart将自动将值放在每个索引处,除非您使用键值对作为数据点。为此,请设置如下所示的系列对象值:

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

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


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 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]
]

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天全站免登陆