You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "12cassie34 (via GitHub)" <gi...@apache.org> on 2025/09/22 08:51:16 UTC

[I] [Bug] yAxis.nameTextStyle doesn't work [echarts]

12cassie34 opened a new issue, #21283:
URL: https://github.com/apache/echarts/issues/21283

   ### Version
   
   6.0.0
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2Srz8sNCMALbeAERYsD5UXLD-MKywzrh4oRFUsNoJVFGOpGGRclQYYCYU_t7uHrAA7hACYNpEAIwADEUewPEcAGbJDXRgHJZMLMH1sFT-_hAgeK6yAHTrtCF29kV4CRBUhLCiIXUeQmAix-0ArN2wAEwAzPcPDwAsPI_tABxf7U8bv93gB2L4PABsnWsPVIFGodAW0GUWxItjsAG4gA
   
   ### Steps to Reproduce
   
   If you check the example code [here](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2Srz8sNCMALbeAERYsD5UXLD-MKywzrh4oRFUsNoJVFGOpGGRclQYYCYU_t7uHrAA7hACYNpEAIwADEUewPEcAGbJDXRgHJZMLMH1sFT-_hAgeK6yAHTrtCF29kV4CRBUhLCiIXUeQmAix-0ArN2wAEwAzPcPDwAsPI_tABxf7U8bv93gB2L4PABsnWsPVIFGodAW0GUWxItjsAG4gA), you can see that a very long y axis long is truncated even though `yAxis.nameTextStyle.overflow` is set.
   
   I believe it's related to [this ticket](https://github.com/apache/echarts/issues/18408).
   
   <img width="1638" height="1060" alt="Image" src="https://github.com/user-attachments/assets/7d78b231-84e4-4457-8d61-b1dcef6e8156" />
   
   ### Current Behavior
   
   Very long y axis names aren't truncated even though `yAxis.nameTextStyle.overflow` is set.
   
   ### Expected Behavior
   
   If `yAxis.nameTextStyle.overflow` is set, the y axis name should be truncated.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:A
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_


-- 
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.nameTextStyle doesn't work [echarts]

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

   > I believe it's related to [this ticket](https://github.com/apache/echarts/issues/18408).
   
   yes, and the explanation is there. Use `nameTruncate.maxWidth` instead of `nameTextStyle.width`.
   Another option is to use _nameRotate_ instead of truncating - [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2Srz8sNCMALbeAERYsD5UXLD-MKywzrh4oRFUsNoJVFGOpAD0xbB4AO4QYPTasPTA4ZHQkNCp_hDQVJkARlTJFWTA5VQ5HN0K_mAhpWGRclQYYCYU_t5IsAEQrNAEtEas2mC0sA5Z8xyWTCwEG-GMGKoQAmDaRACsAAwOIXNUAErAMDMbwATk-PHOVAAMsBrlBdgwqC0ErR7EU8AkIN0xCF3B5YEJgWIAIxfSEAJgAzBDYBSKQAWSkkgAckJJVPe7IZAHZKQA2T7WIoeCjUOgdLpojx2Ei2OwAbiAA)
   


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