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 2021/09/20 11:02:40 UTC

[GitHub] [echarts] Jagan-P edited a comment on issue #15429: axis nametextstyle overflow truncate not working HELP ASAP

Jagan-P edited a comment on issue #15429:
URL: https://github.com/apache/echarts/issues/15429#issuecomment-922826015


   The `nameTruncate` property will do this job, Notice this proprety in `/echarts/src/coord/axisDefault.js`
   
   ```
   option = {
       xAxis: {
           type: 'category',
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
       yAxis: {
           show: true,
           name: 'bhemmmmmmmmmmmmmm gfdsmmmmmmmmmmmmmmmmmmmmmmmmmmm',
           type: 'value',
           **nameTruncate: {
               maxWidth: 100,
               ellipsis: '...',
           }**
       },
       series: [{
           data: [150, 230, 224, 218, 135, 147, 260],
           type: 'line'
       }]
   };
   ```


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