apache / apache/echarts

[Bug] radar.axisName.width Setting is invalid

Open
#17,414 12 comments 0 reactions 0 assignees View on GitHub
bug en topic: radar
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.3.0

### Link to Minimal Reproduction

_No response_

### Steps to Reproduce

option = {
title: {
text: 'Basic Radar Chart'
},
legend: {
data: ['Allocated Budget', 'Actual Spending']
},
radar: {
// shape: 'circle',
indicator: [
{ name: 'Administration', max: 6500 },
{ name: 'Administration', max: 16000 },
{ name: 'Information Technology', max: 30000 },
{ name: 'Customer Support', max: 38000 },
{ name: 'Development', max: 52000 },
{ name: 'Marketing', max: 25000 }
],
axisName: {
color: "red",
width: 10,
overflow: "truncate",
},
},
series: [
{
name: 'Budget vs spending',
type: 'radar',
data: [
{
value: [4200, 3000, 20000, 35000, 50000, 18000],
name: 'Allocated Budget'
},
{
value: [5000, 14000, 28000, 26000, 42000, 21000],
name: 'Actual Spending'
}
]
}
]
};

### Current Behavior

axisName 设置 width: 10, 和 overflow: "truncate", 完全不起作用

### Expected Behavior

axisName 设置 width: 10, 和 overflow: "truncate", 应该超出部分默认显示 ...

### Environment

```markdown
- OS: intel i7
- Browser: 103.0.5060.114
- Framework: vue@2
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.