echarts gauge chart "Rotate" feature for Detail label

gojuced7  于 5个月前  发布在  Echarts
关注(0)|答案(7)|浏览(42)

What problem does this feature solve?

option = {

series: [
{
name: 'Pressure',
type: 'gauge',
detail: {
offsetCenter:[0,150],
formatter: 'detail label',
rotate:90,//not working
},
data: [
{
value: 50,
name: 'SCORE'
}
]
}
]
};

What does the proposed API look like?

detail label should be rotated

0aydgbwb

0aydgbwb1#

This issue is labeled with difficulty: easy .
@RahulVishK Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

0tdrvxhp

0tdrvxhp2#

I'm interested in fixing this issue.

vxbzzdmp

vxbzzdmp3#

I think you can realize it use startAngle and endAngle .

option = {
    series: [
        {
            startAngle: 180,
            endAngle: 0,
            name: "Pressure",
            type: "gauge",
            detail: {
                offsetCenter: [0, 30],
                formatter: "detail label",
            },
            data: [
                {
                    value: 50,
                    name: "SCORE",
                },
            ],
        },
    ],
};

Is this what you want?

bihw5rsg

bihw5rsg4#

Hello Sir/Madam, I would like to contribute in your project to solve this issue.

lyr7nygr

lyr7nygr5#

Hello Sir/Madam, I would like to contribute in your project to solve this issue.

xu3bshqb

xu3bshqb6#

@koliharesh@Raj-T1@CuteSunLee You may check the wiki Thanks!

iecba09b

iecba09b7#

Main、侯已经收到你的邮箱

相关问题