jiawulin001 commented on issue #16773: URL: https://github.com/apache/echarts/issues/16773#issuecomment-1085580559
可加入dataZoom选项来加入缩放功能,具体可参考[文档](https://echarts.apache.org/zh/option.html#dataZoom)。 You can add `dataZoom` to enable zooming on data. Please refer to [documentation](https://echarts.apache.org/zh/option.html#dataZoom). <details> <summary>Code Example</summary> ``` option = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, yAxis: { type: 'value' }, dataZoom:[{ type:'slider' }], series: [ { data: [120, 100000, 150, 80, 70, 110, 130], type: 'bar', selectedMode: true, select:{ label:{ show:true } } } ] }; ``` </details> -- 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. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org