echarts [Feature] 能否让silent的开关状态随datazoom变化

iqjalb3h  于 5个月前  发布在  Echarts
关注(0)|答案(2)|浏览(48)

What problem does this feature solve?

我在画一个数据量在2000万的散点图,他具有datazoom属性
当他在silent:true时加载的很快,在silent:false时加载需要10s以上,
目前我有一个需求,
当他显示datazoom:100%时不需要显示每个点的detail,而需要很快的加载速度,即silent:true
当他显示datazoom:5%时因为数据量已经减小,加载速度很快,这个时候我希望能看到每个点的detail,即silent:false

What does the proposed API look like?

series:[
 type: 'scatter',
 silent:true,
 silentRangeOfDatazoom: '5%',
]

或者有对echartDom的操作方法可以达到以上的需求的话,请告诉我。
万分感谢。

ltskdhd1

ltskdhd11#

@Gainlos It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Feature] Can you make the switch state of silent change with datazoom

BODY

What problem does this feature solve?

I am drawing a scatter plot with a data volume of 20 million. It has the datazoom attribute.
When it is silent: true, it loads very quickly. When it is silent: false, it takes more than 10 seconds to load.
Currently I have a need,
When it displays datazoom:100%, it does not need to display the details of each point, but needs a fast loading speed, that is, silent:true
When he displays datazoom:5%, because the amount of data has been reduced, the loading speed is very fast. At this time, I hope to see the details of each point, that is, silent: false

What does the proposed API look like?

series:[
 type: 'scatter',
 silent: true,
 silentRangeOfDatazoom: '5%',
]

Or if there is an operation method for echartDom that can meet the above requirements, please tell me.
Many thanks.

wvyml7n5

wvyml7n52#

监听 dataZoom 事件:https://echarts.apache.org/zh/api.html#events.datazoom ,然后通过 setOption 改变 silent 值

相关问题