You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/08/10 06:14:37 UTC

[GitHub] zhaoyanxi opened a new issue #8851: 大量数据展示问题

zhaoyanxi opened a new issue #8851: 大量数据展示问题
URL: https://github.com/apache/incubator-echarts/issues/8851
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   传入大量数据总是报错:Uncaught TypeError: Cannot read property 'coordinateSystem' of undefined
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:3.x
   + Browser version [浏览器类型和版本]:google Chrome
   + OS Version [操作系统类型和版本]:Win 10
   
   
   
   
   
   ### Expected behaviour [期望结果]
   传入可以直接展示大量数据
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
   baseOption:{
   			timeline: {
   		        data: flightnumber,
   		        left: '10%',
   		        right: '10%',
   		        bottom: 0,
   		        height: 60,
   		        axisType: 'category',
   		        show: true,
   		        autoPlay: false,
   		        playInterval: 1000,
   		        checkpointStyle: {
   		            color: '#04a5f1',
   		            borderColor: 'rgba(4, 165, 261, .5)'
   		        },
   		        label: {
   		            normal: {
   		                formatter: function(v) {
   		                    var _txt = v.replace(/\//igm, '\n');
   		                    return _txt;
   		                },
   		                rotate: -45,
   		                position: 'bottom'
   		            }
   		        },
   		        itemStyle: {
   		            normal: {
   		                color: '#04a5f1'
   		            },
   
   		        },
   		        lineStyle: {
   		            color: '#ddd'
   		        },
   		        controlStyle: {
   		            show: false,
   		        },
   		    },
   		    title: {
   		    	text: airLine,
   		    	left: 'center'
   		    },
   		   
   		    tooltip: {
   		        trigger: 'axis',
   		    },
   
   		    toolbox: {
   		        show : true,
   		        feature : {
   		            mark : {show: true},
   		            dataView : {show: true, readOnly: false},
   		            magicType : {show: true, type: ['line', 'bar']},
   		            restore : {show: true},
   		            saveAsImage : {show: true}
   		        }
   		    },
   		    grid: [
   		    	
   	       
   		    ],
   		    xAxis: [
   		    	{
   		            type: 'category',
   		            data: date,
   		            axisLabel: { //坐标轴刻度标签的相关设置。
   		                interval: 0, //设置为 1,表示『隔一个标签显示一个标签』
   		                //rotate:-30,
   		                textStyle: {
   		                    color: '#666',
   		                    fontStyle: 'normal',
   		                }
   		            },
   		            axisLine: { //坐标轴轴线相关设置
   		                lineStyle: {
   		                    color: '#666',
   		                    opacity: 1
   		                }
   		            },
   		            splitLine: { //坐标轴在 grid 区域中的分隔线。
   		                show: false,
   		            }
   		        }
   		        //data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
   		    	//{type: 'category', gridIndex: 0, data:issueDate,name:'购票时间'},
   		        //{type:'category', gridIndex: 1, data:xBoardedTimeData,name:'值机时间',axisLabel: {rotate: 50, interval: 0}, boundaryGap : false}
   		    	
   		    ],
   		    yAxis: [
   		    	//{type:'value',gridIndex: 0,name:'购票人数'},
   		    	//{type:'value',gridIndex: 1,name:'值机人数'}
   		    	{
   	            type: 'value',
   	            axisLabel: {
   	                textStyle: {
   	                    color: '#666',
   	                }
   	            },
   	            axisLine: {
   	                show: false
   	            },
   	            axisTick: {
   	                show: false
   	            },
   	            splitLine: {
   	                show: false,
   	            },
   	            name:'人数'
   		    	}
   
   		    ],
   		    dataZoom: [
   		    	
   		        {   // 这个dataZoom组件,默认控制x轴。
   		            type: 'slider', // 这个 dataZoom 组件是 slider 型 dataZoom 组件
   		            start: 10,      // 左边在 10% 的位置。
   		            end: 60 ,        // 右边在 60% 的位置。
   		            //xAxisIndex: [0]
   		        }
   		        
   		    ],
   		    
   		    series:seriesData
   		}
   }
   
   ```
   
   
   
   
   ### 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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org