LonHon commented on issue #8277: xAxis.type='time' + zoomData时卡顿问题 URL: https://github.com/apache/incubator-echarts/issues/8277#issuecomment-387601066 @pissang 虽然个人已经解决卡顿问题,还是放上option供你们去寻找原因。 官方demo: http://echarts.baidu.com/examples/editor.html?c=dynamic-data2 电脑配置是小米pro顶配,在数据量4000时会明显卡顿,应该是渲染 series ** showSymbol, hoverAnimation ** 存在问题 代码 ``` function randomData() { now = new Date(+now + oneDay); value = value + Math.random() * 21 - 10; return { name: now.toString(), value: [ [now.getFullYear(), now.getMonth() + 1, now.getDate()].join('/'), Math.round(value) ] } } var data = [], data1 = [], timeline = []; var now = +new Date(1997, 9, 3); var oneDay = 24 * 3600 * 1000; var value = Math.random() * 1000; for (var i = 0; i < 4000; i++) { data.push(randomData()); } option = { title: { text: '动态数据 + 时间坐标轴' }, tooltip: { trigger: 'axis' }, xAxis: { type: 'time' }, yAxis: [{ type: 'value', boundaryGap: [0, '100%'] },{ type: 'value', boundaryGap: [0, '100%'] }], series: [{ name: '模拟数据', type: 'line', data: data }], }; ```
---------------------------------------------------------------- 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]
