开发者

time data with irregular intervals in HighChart

开发者 https://www.devze.com 2023-04-09 19:21 出处:网络
I have a time data with irregular intervals like the following : data: [ [Date.UTC(1970,10, 27), 12], [Date.UTC(1970, 10, 29), 8 ]

I have a time data with irregular intervals like the following :

data: [
            [Date.UTC(1970,  10, 27), 12   ],
            [Date.UTC(1970, 10, 29), 8 ]
]

in this example the time different is shown as complete to the flow, what i really want is to have开发者_开发技巧 the difference as zero, So the data between 27 and 29 will be filed with 0 and the Date will be 28, i did it manually but i wonder if there is something available in highchart to do something like this ?


Looks like it's not possible yet. See the links below -

Discussion on forum

Request on user voice

Doing it manually is the only way to go and that you have done already.

I had the similar problem, in my case I took care of it on the server-side. I am using Java so used HashMap with date as the key.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号