You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "AAWESOMEUSERNAME (via GitHub)" <gi...@apache.org> on 2025/08/11 03:38:10 UTC
[I] [Bug] 柱状图在图表宽度有限时轴label部分缺失 [echarts]
AAWESOMEUSERNAME opened a new issue, #21194:
URL: https://github.com/apache/echarts/issues/21194
### Version
6.0.0
### Link to Minimal Reproduction
在官方示例页面使用一下option即可复现
### Steps to Reproduce
option = {
"legend": {
"show": true
},
"grid": {
"width": 300,
"top": "10%",
"left": 0,
"bottom": 0,
"containLabel": true
},
"xAxis": {
"type": "category",
"data": [
"XX当日发电量",
"YY当日发电量",
"ZZ当日发电量"
],
"axisLabel": {
"width": 50,
"overflow": "break",
"hideOverlap": false
}
},
"yAxis": {
"type": "value",
"splitLine": {
"show": true,
"lineStyle": {
"width": 1,
"color": "rgba(128,128,128,0.5)"
}
}
},
"series": [
{
"type": "bar",
"data": [
"1417.69",
"1372.82",
"1254.72"
]
}
],
};
### Current Behavior
<img width="900" height="803" alt="Image" src="https://github.com/user-attachments/assets/76bd111f-5557-4529-9a78-d94fe5f45a0a" />
### Expected Behavior
标签正常显示
### Environment
```markdown
- OS:
- Browser:
- 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] 柱状图在图表宽度有限时轴label部分缺失 [echarts]
Posted by "AAWESOMEUSERNAME (via GitHub)" <gi...@apache.org>.
AAWESOMEUSERNAME commented on issue #21194:
URL: https://github.com/apache/echarts/issues/21194#issuecomment-3173188268
设置 xAxis.axisLabel.interval = 0 可解决
--
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