githubzyl opened a new issue, #18219:
URL: https://github.com/apache/echarts/issues/18219
### Version
5.4.1
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
option = {
xAxis: {},
yAxis: {},
legend: {
data: ['一班', '二班', '三班'],
textStyle: {
fontSize: 12
}
},
label: {
show: true,
position: 'right',
formatter: '{b}'
},
series: [
{
name:'yiban',
symbolSize: 10,
data: [
{
name: '农、林、牧、渔业',
itemStyle: {
color: 'red'
},
value: [1, 33612]
},
{
name: '采矿业',
itemStyle: {
color: 'red'
},
value: [2, 60544]
},
{
name: '制造业',
itemStyle: {
color: 'red'
},
value: [3, 59470]
},
{
name: '电力、热力、燃气及水生产和供应业',
itemStyle: {
color: 'red'
},
value: [4, 83863]
},
{
name: '建筑业',
itemStyle: {
color: 'red'
},
value: [5, 52082]
},
{
name: '批发和零售业',
itemStyle: {
color: 'red'
},
value: [6, 65061]
},
{
name: '交通运输、仓储和邮政业',
itemStyle: {
color: 'red'
},
value: [7, 73650]
},
{
name: '住宿和餐饮业',
itemStyle: {
color: 'blue'
},
value: [8, 43382]
},
{
name: '信息传输、软件和信息业',
itemStyle: {
color: 'blue'
},
value: [9, 122478]
},
{
name: '金融业',
itemStyle: {
color: 'blue'
},
value: [10, 117418]
},
{
name: '房地产业',
itemStyle: {
color: 'blue'
},
value: [11, 65497]
},
{
name: '租赁和商务服务业',
itemStyle: {
color: 'blue'
},
value: [12, 76782]
},
{
name: '科研和技术服务业',
itemStyle: {
color: 'blue'
},
value: [13, 96638]
},
{
name: '水利、环境和公共设施管理业',
itemStyle: {
color: 'yellow'
},
value: [14, 47750]
},
{
name: '居民服务、修理和其他服务业',
itemStyle: {
color: 'yellow'
},
value: [15, 47577]
},
{
name: '教育',
itemStyle: {
color: 'yellow'
},
value: [16, 74498]
},
{
name: '卫生和社会工作',
itemStyle: {
color: 'yellow'
},
value: [17, 80026]
},
{
name: '文化、体育和娱乐业',
itemStyle: {
color: 'yellow'
},
value: [18, 79875]
},
{
name: '公共管理、社会保障和社会组织',
itemStyle: {
color: 'yellow'
},
value: [19, 70959]
}
],
type: 'scatter'
}
]
};
### Current Behavior
上述option中设置了legend但是无法展示
### Expected Behavior
我希望能够展示手动设置的图例legend数据
### Environment
```markdown
- OS:
- Browser:Chrome
- Framework:
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]