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 2022/01/05 08:22:32 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #16326: 5.0.1版本下,自定义图表series下label属性中超出省略不生效

echarts-bot[bot] commented on issue #16326:
URL: https://github.com/apache/echarts/issues/16326#issuecomment-1005473912


   @jane-xxx It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   Under version 5.0.1, the default omission in the outbound attribute under custom chart series does not take effect
   
   **BODY**
   
   ### Version
   
   5.0.1
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   Hello, I need to make a Gantt chart of a product. The name of the product needs to be displayed on the Gantt chart. Some names are very long and need to be omitted.
   I tried here to implement style in api.style()
   `
   api.style({
       textBackgroundColor:'#00f',
       truncate: {
          outerWidth: 60,
          ellipsis:'....'
       }
   })
   `
   It is found that the version 5 does not take effect. There is no problem with version 5, but because other charts use version 5 things, it is not convenient to lower the version. I tried label again, but it didn't work.
   `
   label: {
           show: true,
           position:'top',
           fontSize: 16,
           backgroundColor:'#f00',
           width: 60,
           overflow:'truncate',
           formatter:'Test test test',
   },
   `
   
   
   ### Current Behavior
   
   I found that the label drawn in the custom chart is a zrender graphic. I wonder if it is for this reason that all overflows are not effective.
   
   
   ### Expected Behavior
   
   ~
   
   ### Environment
   
   ```markdown
   -OS:
   -Browser:
   -Framework:
   ```
   
   
   ### Any additional comments?
   
   I still have a lot of things to learn about the chart. I am not sure if the problem I am encountering is because I have not triggered any hidden attributes. If so, I hope you can give some suggestions~
   </details>


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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