【问题标题】:Highstock area chart renders a gap, but there is dataHighstock 面积图呈现差距,但有数据
【发布时间】:2016-12-01 04:43:36
【问题描述】:

我的 highstock 图表未正确呈现。当我的第二个系列在面积图中开始时,它显示了一些差距。即使放大后也无法正常显示。时间戳采用 UTC 并有一个值。

为了澄清一点,这里有一些截图:

通常不放大:

放大一点,并显示鼠标悬停。只有1个系列:

放大更多,显示更大的差距,但只有1个系列:

放大更多,显示更大的差距,但同一日期只有 1 个系列:

我在图表上启用了以下选项:

chart: {
            zoomType: 'x',
            type: 'area'
        },
plotOptions: {
            area: {
                stacking: 'normal'
            },
            series: {
                turboThreshold: 0,
                dataGrouping: {
                    approximation: "high",
                    smoothed: true,
                    groupPixelWidth: 10,
                    units: [['day', [1]], ['week', [1]], ['month', [1]]]
                }
            }
        }

有什么建议可以解决这个问题吗?

谢谢!

【问题讨论】:

    标签: javascript html charts highcharts highstock


    【解决方案1】:

    似乎禁用

    plotOptions.series.dataGrouping.smoothed
    

    成功了。

    然后是错误报告: 当

    plotOptions.series.dataGrouping.smoothed = true
    

    该图呈现了间隙,我希望在其中有一条线。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-24
    • 1970-01-01
    • 2018-07-10
    相关资源
    最近更新 更多