Home > Enterprise >  Echarts multiple line chart
Echarts multiple line chart

Time:11-17

I'm working on echarts line chart and I figured out that I have an issue with multiple line chart. 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.

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.

CodePudding user response:

You can set the first six days to 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

https://www.makeapie.com/editor.html?c=xAfL5RkD9x&v=1

  • Related