yzhang921 opened a new issue #11016: 矩形树图,第二级开始Label不显示
URL: https://github.com/apache/incubator-echarts/issues/11016
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   在ECharts的在线编辑器里面能够正常显示,但是本地不行,不知道是不是由于版本不同或者是我的配置里面有问题,麻烦确认一下。  
   
   ```json
   {
     "tooltip": {
       "textStyle": {
         "fontSize": 14
       },
       "confine": true
     },
     "animation": false,
     "series": [
       {
         "type": "treemap",
         "visibleMin": 1,
         "roam": true,
         "name": "全国",
         "label": {
           "show": true,
           "position": "insideTopLeft",
           "textStyle": {
             "fontSize": 14,
             "color": "#fff"
           }
         },
         "upperLabel": {
           "show": true,
           "height": 30
         },
         "levels": [
           {
             "itemStyle": {
               "normal": {
                 "borderColor": "#555",
                 "borderWidth": 4,
                 "gapWidth": 4
               }
             }
           },
           {
             "colorSaturation": [
               0.3,
               0.6
             ],
             "itemStyle": {
               "normal": {
                 "borderColorSaturation": 0.7,
                 "gapWidth": 2,
                 "borderWidth": 2
               }
             }
           },
           {
             "colorSaturation": [
               0.3,
               0.5
             ],
             "itemStyle": {
               "normal": {
                 "borderColorSaturation": 0.6,
                 "gapWidth": 1
               }
             }
           },
           {
             "colorSaturation": [
               0.3,
               0.5
             ]
           }
         ],
         "data": [
           {
             "name": "云南省",
             "value": 40471,
             "children": [
               {
                 "name": "昆明市",
                 "value": 16108,
                 "children": []
               },
               {
                 "name": "曲靖市",
                 "value": 13172,
                 "children": []
               },
               {
                 "name": "玉溪市",
                 "value": 11191,
                 "children": []
               }
             ]
           },
           {
             "name": "四川省",
             "value": 97753,
             "children": [
               {
                 "name": "南充市",
                 "value": 13507,
                 "children": []
               },
               {
                 "name": "宜宾市",
                 "value": 13791,
                 "children": []
               },
               {
                 "name": "德阳市",
                 "value": 7469,
                 "children": []
               },
               {
                 "name": "成都市",
                 "value": 25244,
                 "children": []
               },
               {
                 "name": "攀枝花市",
                 "value": 7447,
                 "children": []
               },
               {
                 "name": "泸州市",
                 "value": 10835,
                 "children": []
               },
               {
                 "name": "绵阳市",
                 "value": 11969,
                 "children": []
               },
               {
                 "name": "自贡市",
                 "value": 7491,
                 "children": []
               }
             ]
           }
         ],
         "leafDepth": "2",
         "itemStyle": {
           "shadowBlur": 0,
           "opacity": 1
         }
       }
     ],
     "title": {
       "custom": false,
       "show": true,
       "top": 10,
       "left": 5,
       "text": "树形图",
       "textStyle": {
         "fontSize": 18,
         "color": "#333",
         "fontWeight": "bolder",
         "fontFamily": "\"Microsoft YaHei\", sans-serif"
       }
     },
     "grid": {
       "custom": false,
       "left": 10,
       "right": 10,
       "bottom": 15,
       "top": 63,
       "containLabel": true
     },
     "textStyle": {
       "fontSize": 12
     },
     "legend": {
       "show": false
     }
   }
   ```
   ### What is expected?
   多级Label正常显示 . 
   
![image](https://user-images.githubusercontent.com/6037522/62987815-28b5d600-be74-11e9-9911-547ad4ef4d63.png)
   
   
   ### What is actually happening?
   从第二级开始不显示Label . 
   
![image](https://user-images.githubusercontent.com/6037522/62987798-1b98e700-be74-11e9-8671-c349d9f9dd2f.png)
   
   
   
   <!-- 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