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 2019/04/11 08:33:54 UTC

[GitHub] [incubator-echarts] feijuncheng opened a new issue #10269: 雷达图数据为空时显示问题

feijuncheng opened a new issue #10269: 雷达图数据为空时显示问题
URL: https://github.com/apache/incubator-echarts/issues/10269
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   在series中存在多个数据且数据中存在null,具体看下面的options
   
   ### 多个点,并且hover到点上的时候连的线或者fill的颜色直接没了
   ```
   option = {
       title: {
           text: '基础雷达图'
       },
       tooltip: {},
       legend: {
           data: ['预算分配(Allocated Budget)', '实际开销(Actual Spending)']
       },
       radar: {
           // shape: 'circle',
           name: {
               textStyle: {
                   color: '#fff',
                   backgroundColor: '#999',
                   borderRadius: 3,
                   padding: [3, 5]
              }
           },
           indicator: [
              { name: '销售(sales)', max: 6500},
              { name: '管理(Administration)', max: 16000},
              { name: '信息技术(Information Techology)', max: 30000},
              { name: '客服(Customer Support)', max: 38000},
              { name: '研发(Development)', max: 52000},
              { name: '市场(Marketing)', max: 25000}
           ]
       },
       series: [{
           name: '预算 vs 开销(Budget vs spending)',
           type: 'radar',
           symbolSize: 7,
           itemStyle: {
               normal: {
                   lineStyle: {
                       width: 3
                   },
                   borderWidth: 3
               }
           },
           // areaStyle: {normal: {}},
           data : [
               {
                   value : [4300, 10000, 28000, 35000, 50000, 19000],
                   name : '预算分配(Allocated Budget)'
               },
                {
                   value : [null, 4000, null, 6000, null, 21000],
                   name : '实际开销(Actual Spending)'
               }
           ]
       }]
   };
   ```
   
   ### What is expected?
   存在null时、不会多点、也不影响其他数据的点的样式,并且有正常的hover效果
   
   ### What is actually happening?
   1.hover到数据节点上的时候线直接消失了
   2.数据中有null的时候有时候会多个点
   
   ---
   我在一个series的data中写多条数据和写多个series都能出现这个问题。在官方示例中随便改改options也能重现。
   在我的项目中,使用的是4.2.1的最新版
   
   <!-- 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:
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