zhangjianrencai opened a new issue #14843:
URL: https://github.com/apache/echarts/issues/14843
### Version
5.1.1
### Steps to reproduce
1. add the following code
```
HTML: <div echarts [options]="chart" style="height:400px;width:100%"
(chartInit)="onChartInit($event)"></div>
JS:
event.on('legendscroll', function (params){
this.scrollDataIndex = params.scrollDataIndex;
});
event.on('legendselectchanged', function (params) {
chart = {
legend: {
type: 'scroll',
orient: 'horizontal',
scrollDataIndex : !!scrollDataIndex ? scrollDataIndex : 0,
bottom: '5%',
selectedMode: true,
},
series: [
{
name: '面积模式',
type: 'pie',
radius: [50, 250],
center: ['50%', '50%'],
roseType: 'area',
itemStyle: {
borderRadius: 8
},
data: [
{value: 40, name: 'rose 1'},
{value: 38, name: 'rose 2'},
{value: 32, name: 'rose 3'},
{value: 30, name: 'rose 4'},
{value: 28, name: 'rose 5'},
{value: 26, name: 'rose 6'},
{value: 22, name: 'rose 7'},
{value: 18, name: 'rose 8'},
{value: 40, name: 'rose 11'},
{value: 38, name: 'rose 12sdfdsf'},
{value: 32, name: 'rose 13sdfds'},
{value: 30, name: 'rose 14'},
{value: 28, name: 'rose 15'},
{value: 26, name: 'rose 16'},
{value: 22, name: 'rose 17'},
{value: 18, name: 'rose 18'}
]
}
]
};
});
```
2. scroll legend to the second page and then click one legend and set to
false
3. then click the legend again. the legend will flashed and the legend will
auto set to true
### What is expected?
the legend will not flashed and will not auto set to true
### What is actually happening?
legend flashed and auto set to true
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]