Skip to content

[Bug] angleAxis.axisLabel.align & angleAxis.axisLabel.verticalAlign not working #20016

Description

@holanlan

Version

5.5.0

Link to Minimal Reproduction

Steps to Reproduce

option = {
    "polar": [
        {
            "radius": [
                0,
                186.25
            ]
        },
        {
            "radius": [
                216.25,
                "80%"
            ],
            "tooltip": {
                "trigger": "axis"
            }
        }
    ],
    "radiusAxis": [
        {
            "axisLine": {
                "show": false
            },
            "axisTick": {
                "show": false
            },
            "splitLine": {
                "show": false
            },
            
        },
        {
            "polarIndex": 1,
            "axisLine": {
                "show": false
            },
            "axisTick": {
                "show": false
            },
            "splitLine": {
                "show": false
            },
            "axisLabel": {
                "show": false,
                
            }
        }
    ],
    "angleAxis": [
        {
            "type": "category",
            "axisLabel": {
                "show": false,
                
            },
            "axisLine": {
                "show": false
            },
            "splitLine": {
                "show": false
            }
        },
        {
            "polarIndex": 1,
            "type": "category",
            "axisLine": {
                "show": false
            },
            "boundaryGap": false,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "type": "dotted"
                }
            },
            "startAngle": 88.2,
            "triggerEvent": true,
            "data": Array.from({
                    length: 100
            },(_,i)=>({
                value: i.toString(),
                textStyle: {
                    fontSize: 12,
                    padding: 0,
                    fontWeight: "normal",
                    backgroundColor: "pink",
                    
                }
            })),
            "axisLabel": {
                "interval": 0,
                verticalAlign: 'middle',
                align: 'center'
            }
        }
    ],
    "tooltip": {
        
    },
    "series": [
        
    ],
    "animation": false
}

Current Behavior

The following configuration items are not working:

Expected Behavior

Code links:

After checking the source code, I found that these configuration items are hardcoded in the source, making the option configuration ineffective. If these configuration items are needed, how can they be implemented?

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugenThis issue is in EnglishstaleInactive for a long time. Will be closed in 7 days.topic: label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions