Skip to content

[Feature] Bar Chart Sizing & positioning Options #21234

@starlike3279

Description

@starlike3279

What problem does this feature solve?

<pie chart> series: [ { type: 'pie', radius: '61%', center: ['30%', '60%'], selectedMode: 'single', . . . } ]

The pie chart can be adjusted in size by using the radius value in the series, and the position can be adjusted by using the center value, right?

<bar chart> series: [ { name: 'bar', type: 'bar', stack: 'one', emphasis: emphasisStyle, data: data1 }, { name: 'bar2', type: 'bar', stack: 'one', emphasis: emphasisStyle, data: data2 }, { name: 'bar3', type: 'bar', stack: 'two', emphasis: emphasisStyle, data: data3 }, { name: 'bar4', type: 'bar', stack: 'two', emphasis: emphasisStyle, data: data4 } ]

By the way, I wonder if there is no separate option to set the size or position in the bar graph.

What does the proposed API look like?

series: [ { type: 'pie', radius: '61%', center: ['30%', '60%'], selectedMode: 'single', . . . } ] series: [ { name: 'bar', type: 'bar', stack: 'one', emphasis: emphasisStyle, data: data1 }, { name: 'bar2', type: 'bar', stack: 'one', emphasis: emphasisStyle, data: data2 }, { name: 'bar3', type: 'bar', stack: 'two', emphasis: emphasisStyle, data: data3 }, { name: 'bar4', type: 'bar', stack: 'two', emphasis: emphasisStyle, data: data4 } ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions