[英]Echarts multiple line chart
I'm working on echarts line chart and I figured out that I have an issue with multiple line chart.我正在处理 echarts 折线图,但发现多折线图存在问题。 For example when I have two series with different size (First serie length is 7 and the second one is 1), the chart shows wrong data.
例如,当我有两个不同大小的系列时(第一个系列长度为 7,第二个为 1),图表显示错误数据。
The point on the left is supposed to be on the last day not the first one:左边的点应该是在最后一天而不是第一天:
Can someone give me some help about this bug please ?有人可以给我一些关于这个错误的帮助吗?
Thanks.谢谢。
You can set the first six days to 0您可以将前六天设置为 0
series: [
{
name: 'Email',
type: 'line',
stack: 'Total',
data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: 'Union Ads',
type: 'line',
stack: 'Total',
data: [0, 0, 0, 0, 0, 0, 310]
},
// Show only the data you need
{
name: 'Union Ads',
type: 'line',
stack: 'Total',
data: [['coordinate',200]]
},
Give me a case that I changed on the official website, and I hope it can be adopted给个我官网改的case,希望能采纳
https://www.makeapie.com/editor.html?c=xAfL5RkD9x&v=1 https://www.makeapie.com/editor.html?c=xAfL5RkD9x&v=1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.