gpt4 book ai didi

javascript - Highcharts 主从图表的问题

转载 作者:行者123 更新时间:2023-12-02 17:52:57 24 4
gpt4 key购买 nike

我正在检查使用 Highcharts 实现可缩放折线图的可能性,就像 highstock 折线图所做的那样,并在 demo 中发现了这个示例。 。这对我来说确实很好用,但我发现图表存在一个问题,即当我在较小的图表中选择完整数据时,大图表没有显示任何内容。

Image captured from its fiddle

我想知道如何解决这个问题。

最佳答案

当您使用该示例并检查 JavaScript 控制台是否有错误时,您将看到:

Highcharts error #12: www.highcharts.com/errors/12

点击该链接:

Highcharts Error #12

Highcharts expects point configuration to be numbers or arrays in turbo mode

This error occurs if the series.data option contains object configurations and the number of points exceeds the turboThreshold. It can be fixed by either setting the turboThreshold option to a higher value, or changing your point configurations to numbers or arrays. See turboThreshold.

令人震惊的是,如果增加或禁用 turboThreshold,问题就会消失。

fiddle here .

关于javascript - Highcharts 主从图表的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21199156/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com