Zingchart 奇怪的阶梯式绘图
Zingchart weird stepped plotting
我遇到了 Zingchart 一些奇怪的阴谋。我正在尝试绘制一条平滑曲线,如下面的 Excel 图表所示。
然而,当在 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%'
});
感谢 Zingchart 支持的出色响应时间,他们指导我回答问题,看来解决方案是更改绘图类型:
plot: {
aspect: "segmented"
},
我遇到了 Zingchart 一些奇怪的阴谋。我正在尝试绘制一条平滑曲线,如下面的 Excel 图表所示。
然而,当在 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%'
});
感谢 Zingchart 支持的出色响应时间,他们指导我回答问题,看来解决方案是更改绘图类型:
plot: {
aspect: "segmented"
},