Skip to content

极坐标系下的柱状图 #9626

@mm007008009

Description

@mm007008009

我尝试了多个极坐标下的柱状图,发现,barWidth会被均分。

查询和尝试了多种避免均分的方法,仍然无法避免。

请确认这是否是bug,感谢!!!

图片:

polar

示例代码:

option = {
    angleAxis: [{
        type: 'category',
        data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
        z: 11,
        polarIndex:0,
        boundaryGap :true,
    },{
        type: 'category',
        data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
        z: 10,
        polarIndex:1
    },{
        type: 'category',
        data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
        z: 9,
        polarIndex:2
    }],
    radiusAxis: [{
        polarIndex:0,
        type:'value',
    },{
        polarIndex:1,
        type:'value',
    },{
        polarIndex:2
    }
    ],
    polar: [{
        center:['200','600'],
        radius:100,
    },{
        center:['600','600'],
        radius:100,
    },{
        center:['600','300'],
        radius:100,
    }],
    polar1:[{
        center:['200','600'],
        radius:100,
    }],
    series: [{
        type: 'bar',
        // data:[[1,0,],[2,10],[3,20],[4,30]],
        data: [2, 2, 3, 4, 3, 4, 2,2],
        coordinateSystem: 'polar',
        name: 'A',
        stack:'a',
        polarIndex:0,
        // barWidth:30,
    },{
        type: 'bar',
        data: [1, 2, 3, 4, 1, 4, 1],
        coordinateSystem: 'polar',
        name: 'C',
        stack:'b',
        polarIndex:1,
        angleAxisIndex:1,
        radiusAxisIndex:1,
    },{
        type: 'bar',
        data: [1, 2, 3, 4, 1,4,1,1],
        coordinateSystem: 'polar',
        name: 'D',
        polarIndex:2,
    }],
};

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions