You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "SongJuXin (via GitHub)" <gi...@apache.org> on 2023/02/08 11:16:31 UTC

[GitHub] [echarts] SongJuXin commented on issue #17998: [Bug] yAxis.nameTextStyle.width not working

SongJuXin commented on issue #17998:
URL: https://github.com/apache/echarts/issues/17998#issuecomment-1422431583

   > Aah, this is fun - how to fix one bug with another !
   > 
   > 1. yes, [yAxis.nameTextStyle.width](https://echarts.apache.org/en/option.html#yAxis.nameTextStyle.width) does not do anything
   > 2. while trying a workaround with [padding](https://echarts.apache.org/en/option.html#yAxis.nameTextStyle.padding) I realize it has a bug also...
   > 3. then I use the _padding_ bug to make some kind of a _width_. And it works!  (but not responsive)
   > 
   > [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=bar-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXLANqrrpgCeIApkQEQDGAhmDQObABOl9ANGnIATVsyLF6AWRj9Y9ACoBXGrPoB1GkNXyAFotUAxLhFUBlVmcXR6AXUEBfGwPSUc-cWXJVaDAG7MAG2V-QXRoZgBbGnkaDDBTKgC6ZFDyAHo0gHcIITAdIgBmAAYivnJ0tNghYBo8WGhgMFhM7gBrVPQM7Nz82AByYqKQDD6y2AyqmrqGppaudvL0DvHKkGYhIQhodlgAM24I1lh8EjBQMuN2HTAygCNGs4iypN2wO0WV2BoAR0VA2Eu11gADJYC8mv4grVYHgdMBFAEhLBGDRoGwuLA2HE7oomtVoTMiLdFOxlhk1hstuxxKUAIz0vh0-lOMmVNQAJQA8gA5ADiMJoYEg20xwGRqPRmNiszaeGWFM22xpfAA7KUmbSWR8dDQIFcwAQAEylZa3ZiMVrsLjw6BCADCwAC3AYXHYZoAFIaAKxesqlWD-ooAOgKAEp6Kl7M5yOEokQ-nhgFF6pEaH0HFqBcZah5Ut5kvQzVwQuURGAxCRaf6vYaysb_QUCgAWMoFACcDeKdeN71gjhQ9iAA)
   > 
   > ![image](https://user-images.githubusercontent.com/13038071/216845355-0bc7d0b3-9d9e-451f-b653-c4fd7985325a.png)
   
   Yes,The width can be controlled in this way.
   But,My purpose is to wrap the yAxis.name.
   
   


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