Highstock地区图表存在差距,但有数据

时间:2016-07-27 09:03:10

标签: javascript html charts highcharts highstock

我的高档图表没有正确呈现。当我的第二个系列在区域图表中开始时,它显示出一些差距。即使放大它也不能正常显示。时间戳以UTC格式表示,并具有值。

在这里澄清一些截图:

通常不会放大: Normally not zoomed in

稍微放大,并显示鼠标悬停。只有1个系列: Zoomed in a bit, and showing mouseover. Has only 1 series

放大更多,显示更大的差距,但只有1个系列: Zoomed in more, showing bigger gap, but has only 1 series

放大更多,显示更大的差距,但在同一日期只有1个系列: Zoomed in more, showing bigger gap, but has only 1 series on same date

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

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]]]
                }
            }
        }

有任何建议如何解决这个问题?

谢谢!

1 个答案:

答案 0 :(得分:0)

似乎禁用

plotOptions.series.dataGrouping.smoothed

诀窍。

然后是错误报告: 当

plotOptions.series.dataGrouping.smoothed = true

图表会产生差距,我希望有一条线。