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:07:25 UTC

[GitHub] [echarts] Jagan-P edited a comment on issue #14911: When config option's singleAxis, nameTextStyle.overflow = 'truncate' invalid, width has been setted

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


   The `nameTruncate` property will do this job. Noticed 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'
       }]
   };
   ```
   
   https://github.com/WuYujieJustin


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