Skip to content

Angle axis in polar axis not rendering negative values correctly #12109

@ThomasSteiner

Description

@ThomasSteiner

Version

4.6.0

Steps to reproduce

option = {
    angleAxis: {
        type: 'category',
        data: ['S1', 'S2', 'S3']
    },
    radiusAxis: {
        min:-1,
        max: 3
        
    },
    polar: {
    },
    series: [{
        type: 'bar',
        data: [1, 1, 1],
        coordinateSystem: 'polar',
        itemStyle:{
            color:"blue"
            
        },
        name: 'A',
        stack: 'a'
    }, {
        type: 'bar',
        data: [1, 1, 1],
        coordinateSystem: 'polar',
        name: 'B',
        stack: 'a'
    }, {
        type: 'bar',
        data: [1, 1, 1],
        coordinateSystem: 'polar',
        name: 'C',
        stack: 'a'
    }],
    legend: {
        show: true,
        data: ['A', 'B', 'C']
    }
};

What is expected?

Stack values should start at 0 and reflect correct values across the radius axis

What is actually happening?

Stack values resize and are forced to start at center of circle rather than 0 point of radius axis

Metadata

Metadata

Assignees

Labels

bugdifficulty: easyIssues that can be fixed more easily than the average.enThis issue is in Englishpriority: normal

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions