Foreword:
Before scrolling:
After scrolling:
Before and after scrolling , except for the two categories of " Urban Planning " and " Urban Management Components ", there are no other changes in the content in the pie chart , and the data has not increased. However, I don't know why the style has changed. . Project requirements : scroll legend and keep graphics consistent.
Solution:
Add the following code to the echarts instance:
mycharts.dispatchAction({
type: 'legendScroll',
})