colbertchai opened a new issue #8878: dataZoom 选择0-100时候数据正常,选择其它范围缩放x轴对应数据偏移。 URL: https://github.com/apache/incubator-echarts/issues/8878 <!-- 为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。 --> ### One-line summary [问题简述] 拖动datazoom进度条时候,如果显示是0-100,数据正常。当数据是90-100或者其它范围时候,点对应的x轴数据时间有偏差。 坐标中有两条折线图,一条为实际值,一条为预测值。在datazoom选择为0-100时候,实际值最后一个点对应x轴时间点是2:01:02 当datazoom缩放到90-100时候,实际值最后一个点对应到了2:01:54秒 已经检查过,传入的数据没问题。 ### Version & Environment [版本及环境] + ECharts version [ECharts 版本]:2.27 + Browser version [浏览器类型和版本]:chrome + OS Version [操作系统类型和版本]:win10 ### Expected behaviour [期望结果] 希望可以拖动进度条时候,点对应x轴时间是正确的。 ### ECharts option [ECharts配置项] <!-- Copy and paste your 'echarts option' here. --> <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] --> ```javascript option = { title : { text: '火电大数据预测' }, tooltip : { trigger: 'axis' }, legend: { data:['实际值', '预测值'] }, toolbox: { show : true, feature : { mark : {show: true}, dataZoom: {show: true}, dataView : {show: true, readOnly: false}, magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']}, restore : {show: true}, saveAsImage : {show: true} } }, calculable: true, dataZoom : { show : true, realtime: true, zoomLock:false, start : 90, end : 100 }, xAxis : [ { type : 'category', boundaryGap : true, axisTick: {length:5}, scale: true, data : app.xday1 }, ], yAxis : [ { type : 'value', scale: true, name : '温度', minInterval: 1, }, ], series : [ { name:'预测值', type:'line', symbol:'none', data:app.yvalue2 }, { name:'实际值', type:'line', symbol:'none', data :app.yvalue1, } ] }); }, error:function (msg) { console.log(msg); alert('系统发生错误'); } } ``` ### Other comments [其他信息] <!-- For example: Screenshot or Online demo --> <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
---------------------------------------------------------------- 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]
