series:[

{

name: '测试',
  type: 'line',
  data: [1,null,2,null,null,3,null,null,null,4],
  connectNulls: true

}

]

echarts 官网 配置项

https://www.echartsjs.com/zh/option.html#series-line.connectNulls

echarts曲线 将不连续的点连接起来、由null间断的点连接起来-LMLPHP

05-20 22:21