You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "FirstVertex (via GitHub)" <gi...@apache.org> on 2024/11/11 17:17:52 UTC

[I] [Bug] yAxis.nameTruncate not working [echarts]

FirstVertex opened a new issue, #20501:
URL: https://github.com/apache/echarts/issues/20501

   ### Version
   
   5.5.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=bar-background&code=PYBwLglsB2AEC8sDeAoWsCeBBAHhAzgFzJrqxgYgCmxA5AMYCGYVA5sAE4a0A0p60RgFsqAFQ4BXaExbFUZMkMY4A6hAAmYABbEArHwXoqAG2MQQ-AnQB0t2v1gBfA2XXNGxANoP0tALIQ9FqMJrw-sLQAyiwgwdAQVLCM0OrkWomRUvhaENCJAELJ6mGGEaLA6sUuCv6MXCWGtABKgcEcVeG0olrASvhpieKMuQ01ADIY0NCjZM3ArFQcM74AIhDJVMsRfnUA1vYKALqkzqQ4uFYkCsoEooG7cuHZwADuxABmjMb4VA6n13h8GNcjQroZnm9YJ9vr8FP8yBRqHQAG5fCSbE4uH4cBJEWDeBTyQwQFhCaIYYygomlABGnHUiyajHUEAkeM8AAYeLAAMzcvmwDnHUrwhRuMAefHhdDU0qwVHGdHEACcACZqnKSVQyRRKY85YZ6MBjJx9QbDIjQbQzHk6lsDThiFzpXKME6NebYDhVcQAIwe80YH2CgMGo0mjjRUDsl0G2WehTAd7vH5gd2x83h00RDisGmMAAUADYeL6AOw8AAcFY51mVAEoDgm4aHzfHm7AkymqGnYP6M2HjdnaLn8wXfQAWHg8ku-1Ul2sNpsdpwDsiHVulVgm_PGD5fH5rxwZ48G0WGdsKBVKvu-vkZrU6ilUtdZjhm5uWug2qh2zeGR0QzXdA3SAldvT9f8FCDdMVzfKMLC8YCyEvBMu1TWCVzIN86FHQtZwraseEXRtkPQc9m1Qz10J7SCyOwod3xzPNC0nadZ3nYi61IrDVxXDdkO3YBd33GEjxPF0KJQjNr1BXRlX_R9yT1MFPRw1SEy_CIfz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
   
   ### Steps to Reproduce
   
   1. on yAxis with type: 'category', use `nameTruncate` option.
   2. notice it is non-functional
   
   ### Current Behavior
   
   Expect `nameTruncate` option to work [as described in the docs](https://echarts.apache.org/en/option.html#yAxis.nameTruncate).
   
   ### Expected Behavior
   
   Unable to get yAxis name to properly be truncated.  See, in the example, only the last few characters are visible.  Expect that it should show the first few characters instead, and after `nameTruncate.maxWidth` characters, it should show the ellipsis.
   
   ### Environment
   
   ```markdown
   This is reproducible in the live echarts playground.  See attached link.
   ```
   
   
   ### Any additional comments?
   
   Thank you.  Much love for echarts ❤️


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


Re: [I] [Bug] yAxis.nameTruncate not working [echarts]

Posted by "FirstVertex (via GitHub)" <gi...@apache.org>.
FirstVertex commented on issue #20501:
URL: https://github.com/apache/echarts/issues/20501#issuecomment-2469097504

   Sorry I didn't know about that option!  Thank you for the explanation.  Have a niiiiiice day 😃


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


Re: [I] [Bug] yAxis.nameTruncate not working [echarts]

Posted by "FirstVertex (via GitHub)" <gi...@apache.org>.
FirstVertex closed issue #20501: [Bug] yAxis.nameTruncate not working
URL: https://github.com/apache/echarts/issues/20501


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


Re: [I] [Bug] yAxis.nameTruncate not working [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20501:
URL: https://github.com/apache/echarts/issues/20501#issuecomment-2468942621

   not-a-bug, _nameTruncate_ is for the axis name, which you don't even have.
   What you want is [yAxis.axisLabel.overflow](https://echarts.apache.org/en/option.html#yAxis.axisLabel.overflow) - [Demo](https://echarts.apache.org/examples/en/editor.html?c=bar-background&code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXEgMYxgCGE0AMmQEYCmANvmFgK70C-ANGrAJ4BBAB4QAzvmR90YfiHqSA5ETJh6GYFn6Le6dGVFiaDZsmAA3elgBmjYAHd8i1m2gq1O2PbxgAFvgB2AJ5pWFxVMkkAbVD0RQBZCCJfMiYdWNhFAGU1EBToCHpYMmhcWD8irNcxX0oigCES3HS9PUUAFWBcZt1WzPiyLRa-xQAlJJSsHoyO32AAWzIxct8i9qwKaGHWxSp-aC3endHgDCtttoARCBL6C7iBrABrRVCAXT4Q9GERcUlUVoGcTtJJPf4ZGoOSTWMiMMT0UJfPRAox1cF9WCQxywGFwhGtJEyOQKTLmWEcV7oJHwnD0CSwGKtAF9CBqeY5fiMEnMjG0TS4KyjMi4CBselRAAM3FgAGZpXLYBKPhjCXpwuRohl0DyMbAyYwOJIAJwAJiOutZ9HZsi56N1rRIdiwdvtrVk8iUjDqg3uruEkilWt1_AD5tdsGEJskAEYw67-FHFXH7Y7NDlQOKg_adeHWsBrNZ4WBQ1nXannZksBhaGQABQANm40YC3AAHC2JQA6I0ASkpuYJyddOYHsHzhfoxdgsdLKeATqUVZrtejABZuDLG9GTY2u73-6PYJxZ3o3kOMRg7DXTLj4Sfj-GH7rVUzS_rDdPo3LS5brZzuSe5Yurm7okooXrQPQPrnn0_pJie6AhvBh6Rj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OSGNRhQOASqqEg0BrBonKOwWqx5OAAG4gA)
   📌 please close issue if problem solved.


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