Zingchart奇怪的步骤密谋

时间:2017-02-17 17:44:09

标签: plot charts linechart zingchart

我正在经历Zingchart的一些奇怪的情节。我试图在下面的Excel图中看到一条平滑的曲线。

enter image description here

但是,在Zingchart上使用相同的输入数据时,会产生一些奇怪的stepped chunks。这是Zingchart的问题还是我在配置中犯了错误?

var chartData = {
    type: "line",
    plot: {
        aspect: "spline"
    },
  series: [  // Insert your series data here.
      {
            "values":[[0.008376349,-9.167595],
            [0.008375615,59.43667],
            [0.008374971,103.23595],
            [0.008374511,-168.06818],
            [0.008374427,-249.25804],
            [0.008375174,125.39198],
            [0.008376393,-355.0086],
            [0.008377762,-130.61668],
            [0.008379059,298.63593],
.....
               [0.009247098,-15090.601],
                [0.009836536,-4773.134]],
                "text":"A/B"
            }
      ]
    };
    zingchart.render({ // Render Method[3]
      id: "chartDiv",
      data: chartData,
      height: 400,
      width: '100%'
    });

1 个答案:

答案 0 :(得分:2)

由于Zingchart支持人员的出色响应时间引导了我的答案,似乎解决方案是改变剧情类型:

plot: {
aspect: "segmented"
},