Skip to content

[Bug] I set grid-right-0, but there is a large margin on the right #21055

Open
@xindatu

Description

@xindatu

Version

5.3.3

Link to Minimal Reproduction

https://codepen.io/xindatu/pen/ZYGVGOm

Steps to Reproduce

option = {
"grid": {
"left": 0,
"right": 0,
"containLabel": true
},
"xAxis": {
"data": [
{
"value": "2025/05/14"
},
{
"value": "2025/05/15"
},
],
},
"yAxis": [
{
},
{
"scale": true,
"position": "right",
"alignTicks": true
}
],
"series": [
{
"name": "a",
"type": "bar",
"data": [
{
"name": "2025/06/11",
"value": "2.25",
},
{
"name": "2025/06/12",
"value": "2.19",
},
],
"yAxisIndex": 1
}
]
};

Image

Current Behavior

grid right 0 failed

Expected Behavior

except grid right to be 0

Environment

- OS:macOS
- Browser:chrome
- Framework:Vue@3

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions