echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] Legend selectedMode to keep at least one active

Open dileepyelleti opened this issue 3 years ago • 0 comments

What problem does this feature solve?

When all series are disabled from legend chart looks empty and even y-axis disappears. https://echarts.apache.org/examples/en/editor.html?c=line-stack - disable all series from legend line-stack

What does the proposed API look like?

Add one more option to selectedMode(inside legend) which disables unselecting last active series. legend: { selectedMode: 'atLeastOne' }

dileepyelleti avatar Sep 21 '22 07:09 dileepyelleti