echarts [Bug] 极坐标中radiusAxis.data中的坐标名称显示不全

yi0zb3m4  于 4个月前  发布在  Echarts
关注(0)|答案(2)|浏览(50)

Version

5.4.1

No response

Steps to Reproduce

使用的是54.1的版本代码如下

option = {
angleAxis: {},
radiusAxis: {
type: 'category',
data: ['应收工程款', '甲1234', '甲方报量报出', '内部产值'],
z: 10,
axisLabel: {
hideOverlap: false,
showMaxLabel: true,
}
},
polar: {},
series: [
{
type: 'bar',
data: [8],
coordinateSystem: 'polar',
emphasis: {
focus: 'series'
}
},
{
type: 'bar',
data: [0, 8,],
coordinateSystem: 'polar',
emphasis: {
focus: 'series'
}
},
{
type: 'bar',
data: [0, 0, 8, 0],
coordinateSystem: 'polar',
emphasis: {
focus: 'series'
}
},
{
type: 'bar',
data: [0, 0, 0, 8],
coordinateSystem: 'polar',
emphasis: {
focus: 'series'
}
}
],
legend: {
show: true,
data: ['A', 'B', 'C']
}
};

如下图所示,radiusAxis.data中的第二个坐标名称没有显示

想问下如何才能在极坐标中展示所有的坐标name

Current Behavior

radiusAxis.data中的第二个坐标名称没有显示

Expected Behavior

能展示所有radiusAxis.data中的坐标名称

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

zujrkrfu

zujrkrfu1#

@Alan055 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] Coordinate names in radiusAxis.data in polar coordinates are incomplete

BODY

Version

5.4.1

No response

Steps to Reproduce

The version code of 54.1 is used as follows

option = {
angleAxis: {},
radiusAxis: {
type: 'category',
data: ['Project receivable', 'A 1234', 'Party A's report', 'Internal output value'],
z: 10,
axisLabel: {
hideOverlap: false,
showMaxLabel: true,
}
},
polar: {},
series: [
{
type: 'bar',
data: [8],
coordinateSystem: 'polar',
emphasis: {
focus: 'series'
}
},
{
type: 'bar',
data: [0, 8,],
coordinateSystem: 'polar',
emphasis: {
focus: 'series'
}
},
{
type: 'bar',
data: [0, 0, 8, 0],
coordinateSystem: 'polar',
emphasis: {
focus: 'series'
}
},
{
type: 'bar',
data: [0, 0, 0, 8],
coordinateSystem: 'polar',
emphasis: {
focus: 'series'
}
}
],
legend: {
show: true,
data: ['A', 'B', 'C']
}
};

As shown in the figure below, the second coordinate name in radiusAxis.data is not displayed

I would like to ask how to display all coordinates name in polar coordinates

Current Behavior

The second coordinate name in radiusAxis.data is not showing

Expected Behavior

Can display all coordinate names in radiusAxis.data

Environment

- OS:
-Browser:
- Framework:

Any additional comments?

No response

相关问题