关于一个数据对应两个值的问题

 1 series: [{
 2             name: '数量(个)',
 3             type: 'bar',
 4             barWidth: '30%',
 5              barGap: 0, //两个数据条没有间距
 6             data: y_data,
 7             itemStyle: {
 8                 normal: {
 9                     color: '#39b3f7',
10                     barBorderRadius: [10, 10, 0, 0],
11                     label: {
12                         textStyle: {
13                             color: '#666'
14                         },
15                         position: 'bottom',
16                         formatter: '{b}'
17                     }
18                 }
19             }
20         }, {
21             name: '数量(个)',
22             type: 'bar',
23             barWidth: '30%',
24              barGap: 0,  //两个数据条没有间距
25             data: y_data_two,
26             itemStyle: {
27                 normal: {
28                     color: '#306494',
29                     barBorderRadius: [10, 10, 0, 0],
30                     label: {
31                         textStyle: {
32                             color: '#666'
33                         },
34                         position: 'bottom',
35                         formatter: '{b}'
36                     }
37                 }
38             }
39         }]

 

相关文章:

  • 2022-12-23
  • 2022-02-06
  • 2021-07-17
  • 2022-12-23
  • 2021-07-31
  • 2022-01-27
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-01-01
  • 2021-04-26
相关资源
相似解决方案