You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/09/11 02:24:15 UTC

[GitHub] [incubator-echarts] Shu-Ji commented on issue #7791: (v4.0.2) Labels don't display when label show is programmatically set to true

Shu-Ji commented on issue #7791:
URL: https://github.com/apache/incubator-echarts/issues/7791#issuecomment-690834283


   Same issue here. Force setting the `label.show = true`, it works fine if the width value of the chart bigger:
   ![image](https://user-images.githubusercontent.com/1127594/92844479-7c4c7780-f418-11ea-8d6b-a66fa8047be0.png)
   
   When make the width smaller, some labels disapeared:
   ![image](https://user-images.githubusercontent.com/1127594/92844774-cf262f00-f418-11ea-8f69-78c807838a4f.png)
   
   https://echarts.apache.org/examples/zh/editor.html?c=bar-simple
   
   ```js
   option = {
       xAxis: {
           type: 'category',
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 'Fri', 
           'Sat', 'Sun', 'Tue', 'Wed', 'Thu',
           'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 
           'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu',
           'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu',
           'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 
           'Fri', 'Sat', 'Sun', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
       yAxis: {
           type: 'value'
       },
       series: [{
           data: [120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           74345345345340, 143453453453410, 143453453453410,
           120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           120343734534534, 204345345345340, 150434534534534, 90434534534534,
           120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           74345345345340, 143453453453410, 143453453453410,
           120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           120343734534534, 204345345345340, 150434534534534, 90434534534534,
           120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           74345345345340, 143453453453410, 143453453453410,
           120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           120343734534534, 204345345345340, 150434534534534, 90434534534534, 
           120343734534534, 204345345345340, 150434534534534, 90434534534534],
           type: 'line',
           label: {show:true}
       }]
   };
   ```
   


----------------------------------------------------------------
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



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