0

we can manually deselect specific series in Echarts using

legend:{
selected: { 'Series1': false, 'Series2': false }
}

However, I have more than 200 series in Echart, so is there any way I can deselect all dynamically

1 Answers1

0

Use the API method unselect:

chartInstance.dispatchAction({ type: 'unselect', seriesIndex: 0 })
Sergey Fedorov
  • 3,696
  • 2
  • 17
  • 21