简体   繁体   English

高图中的不规则时间数据

[英]Irregular time data in highcharts

I encountered a problem when using Irregular time data chart in highcharts to draw a chart. 在highcharts中使用不规则时间数据图表绘制图表时遇到问题。 problem as follows: 问题如下:

this is the series array: 这是系列数组:

series : [
{
 name:'test chart'
 data:[
            [Date.UTC(1970, 9, 21), 0],
            [Date.UTC(1970, 10, 4), 0.28],
            [Date.UTC(1970, 10, 9), 0.25] 
            ......
      ]
}
]

If the length of data array of a serie in series array is more than 1000,the chart won't be drawn ,and it shows blank ,but when the length of the data array is less than 1000,the chart shows normally.why? 如果一个系列的数据数组的长度大于1000,则不会绘制图表,并显示为空白,但是当数据数组的长度小于1000时,图表将正常显示。为什么? and how to fix it?is it a limitation of highchart for Irregular time data chart ? 以及如何解决? 不规则时间数据图表的高位限制吗?

Check turbo-threshold property if set ,Highcharts works well even for 1 million points. 如果设置了turbo-threshold属性,Highcharts甚至可以工作一百万点。 Share the fiddle with problem 与问题分享小提琴

Update : similar question answered already by Highchart Champ sebastian at Highcharts 3 cannot render more than 1000 points in one series 更新:Highchart Champ sebastian在Highcharts 3上已经回答的类似问题不能在一个系列中提供超过1000分

use : http://api.highcharts.com/highcharts#plotOptions.series.turboThreshold 使用: http : //api.highcharts.com/highcharts#plotOptions.series.turboThreshold

in your series 在你的系列中

 series: [
               {
                type: 'scatter',
                name: 'some name',                                     
                data: something,
                turboThreshold: 7000,}
  ]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM