Highcharts doesn't display series with lots of data points

前端 未结 2 2106
南方客
南方客 2021-02-13 12:55

I have a chart that I would like to display based on a date range from the user. This particular chart has a data point for every 15 minutes. So there can be a lot of data point

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-13 13:28

    a workaround for turboThreshhold is something like this if you generation your response with PHP:

                        if(count($responseObj) > 1000){
                        $modolo = round(count($responseObj) / 1000);
                        for($i = count($responseObj)-1; $i >= 0 ; $i--){
                            if(($i % $modolo) != 0){
                                unset ($responseObj[$i]);
                            }
                        }
                        $responseObj = array_merge($responseObj);
                    }
    

提交回复
热议问题