apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.2k stars 19.61k forks source link

[Bug] 雷达图指示器名称无法设置width宽度,指示器名称很长时,没有相关api可以判断是否超出可视范围进行...显示内容 #20119

Open likegs9 opened 2 months ago

likegs9 commented 2 months ago

Version

在线版本

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=radar

Steps to Reproduce

radar.axisName.width 不生效

Current Behavior

image

Expected Behavior

希望 radar.name.width 生效 希望设置rich里面的width生效 指示器名称过长超出屏幕可视范围,api有可以获取当前指示器名称与当前雷达图的容器距离的方法

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 2 months ago

@likegs9 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. 🤗

TRANSLATED
**TITLE** [Bug] The width of the radar chart indicator cannot be set to the name, and when the indicator name is very long, there is no relevant API to determine whether it is out of the visual range... Display content **BODY** ### Version Online version ### Link to Minimal Reproduction https://echarts.apache.org/examples/zh/editor.html?c=radar ### Steps to Reproduce radar.name.width does not take effect ### Current Behavior ![image](https://github.com/apache/echarts/assets/10152771/60edc62d-e8ef-4e82-9ae5-2961877178f3) ### Expected Behavior Hope radar.name.width takes effect I hope the width set in rich will take effect The indicator name is too long and exceeds the visible range of the screen. The API has a method to obtain the distance between the current indicator name and the container of the current radar chart. ### Environment ```markdown -OS: -Browser: - Framework: ``` ### Any additional comments? _No response_
helgasoft commented 2 months ago

radar.name does not exist in API, it's radar.axisName Duplicate of #19018 and many others, please search issues first.