awbear commented on issue #9546: Only scrolling without scaling when using dataZoom URL: https://github.com/apache/incubator-echarts/issues/9546#issuecomment-447265990 Here is a demo https://jsfiddle.net/awbear/3ump4e6c/78/. When using `startValue` and `endValue` in the initial option, it works expectedly in browser, but not for above situation(React Native + Webview + Echarts). Now, I update the `fetchData` logic ```javascript fetchData().then(resp => { let option = { // add dataZoom dataZoom: [ { type: 'inside', xAxisIndex: [0, 1], startValue: 0, endValue: 100, zoomLock: true, }], dataset: { dimensions: ['date', 'open', 'close', 'high', 'low'], source: [....], }, } option.dataset.source = prevSource.concat(resp.data) echarts.setOption(option) }) ``` When appending data, passing `dataZoom` to `setOption` and then all graphic elements will not scale down.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
