gaoqiangz opened a new issue #11068: 
使用dataset,series数量过多并且其中有名称为纯数字时触发异常:TypeError: Cannot read property 'width' of 
undefined
URL: https://github.com/apache/incubator-echarts/issues/11068
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   var source = [["分类", "陆慧", "王荣平", "测试功能", "0001", "123", "钟馗", "丁为芹", "刘平", 
"沈鑫", "王阿娣", "袁彬", "张兰", "郑松华", "卢静", "杨晶晶", "郑浪云", "顾燕", "许晨晨", "林炳青", "陈娟", 
"严国平", "黄雯雯", "潘湘宇", "蔡雪燕", "陈锦秀", "陈静", "董荣", "付春艳", "郭中琴", "刘炜", "潘婷", "邵玉蓉", 
"童娓娓", "王婷婷", "杨明晶", "叶长琳", "翟洪艳", "张阳", "周成亚", "周玲玲", "周长娟", "黄燕", "唐萍", "王丽", 
"徐华浩", "朱雪梅", "朱银娟", "刘叶", "王婷", "王燕", "徐霞", "袁业伟", "陈静B2", "郭中琴A2", "黄雯雯B2", 
"黄妍", "姜楠", "孟冬梅", "倪娜", "潘婷A2", "唐萍B2", "王洪玉", "王荣平A2", "王燕B2", "韦文燕", "武一兄", 
"肖桑", "袁叶婷", "掌霞", "韦文燕A2", "柏希", "卞芹", "封粉淦", "韩桥荣", "吉海艳", "施园月", "徐洁", "周敏", 
"朱雪娇", "单晓红", "树菊", "徐爱霞", "郇英", "赵昕", "周云", "福田王五", "郭001", "李四", "杨002", 
"福田李四", "福田张三", "新建人员", "罗湖李四", "杨02", "杨彬002", "水贝李四", "水贝张三", "水贝赵六", "水贝王五", 
"张梦玲", "张育楠", "周晓东", "陈小娟", "陈亚玲", "陈艳", "彭春霞", "沈雄", "史玲玲", "孙玉梅", "王莹", 
"邢美瑶", "徐陈慧", "徐帆", "严婷婷", "叶海婷", "郑燕雪", "陈汉云", "程凤", "许蓉", "蒋晓梅", "李庆芝", 
"王娟娟", "王雅", "潘洪", "龙久梅"],
                   ["A门店", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0]];
   var series = Array(source[0].length - 1).fill({
           type: 'bar'
       });
   option = {
       legend: {},
       tooltip: {},
       dataset: {
           source: source
       },
       xAxis: {type: 'category'},
       yAxis: {},
       series: series
   };
   
   ### What is expected?
   不报错
   
   ### What is actually happening?
   TypeError: Cannot read property 'width' of undefined
   
   getLineWidth @       echarts.js:41774
   getLayout.cartesian2d        @       echarts.js:41708
   (anonymous function) @       echarts.js:41538
   DataDiffer.execute   @       echarts.js:29232
   extendChartView._renderNormal        @       echarts.js:41588
   extendChartView.render       @       echarts.js:41486
   progressMethodMap.render.progress    @       echarts.js:24544
   doProgress   @       echarts.js:23466
   taskProto.perform    @       echarts.js:23389
   (anonymous function) @       echarts.js:28232
   (anonymous function) @       echarts.js:21424
   each$1       @       echarts.js:528
   Model.extend.eachSeries      @       echarts.js:21422
   renderSeries @       echarts.js:28221
   render       @       echarts.js:28194
   updateMethods.update @       echarts.js:27573
   echartsProto.setOption       @       echarts.js:27133
   
   ---
   使用dataset,series数量过多并且其中有名称为纯数字时会触发这个异常,数量少时不会
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to