You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/05/24 07:26:37 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #18664: [Feature] 类目标签支持自动检测标签长度而选择标签倾斜显示,而不仅仅是隐藏部分标签

echarts-bot[bot] commented on issue #18664:
URL: https://github.com/apache/echarts/issues/18664#issuecomment-1560590087

   @mtrdong It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   The [Feature] class target tag supports automatic detection of the label length and selection of the label to be tilted instead of just hiding part of the label
   
   **BODY**
   
   ### What problem does this feature solve?
   
   Sometimes the number of categories, or the category names may change from time to time. For example, to count the students' mastery of each knowledge point in each section, where the knowledge points are used as the X-axis category, and the name and quantity are changed. I want to display all the knowledge points, but I don't want them to overlap. At this time, I need to automatically detect the length of the knowledge point name and set the display method when the name is too long. Instead of only setting the tilt display, or using a callback function. In this way, it will appear more intelligent and humanized, and the experience will be better
   
   ### What does the proposed API look like?
   
   When setting `xAxis.axisLabel.interval=0`, there is no doubt that it is impossible for us to want the label names to overlap. At this time, either set `xAxis.axisLabel.rotate` so that the label is always displayed at an angle, or use a callback function to wrap the label name. Most people do this too. This kind of experience is not good. Maybe we can allow setting `xAxis.axisLabel. rotate='auto'`, when setting `xAxis.axisLabel.interval=0` and `xAxis.axisLabel.rotate='auto'`, if the label name is too long, it will be displayed at 45 degrees by default.
   </details>


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