| /* |
| title: Stacked Bar Chart on Polar |
| titleCN: 极坐标系下的堆叠柱状图 |
| category: bar |
| difficulty: 7 |
| */ |
| |
| option = { |
| angleAxis: { |
| }, |
| radiusAxis: { |
| type: 'category', |
| data: ['周一', '周二', '周三', '周四'], |
| z: 10 |
| }, |
| polar: { |
| }, |
| series: [{ |
| type: 'bar', |
| data: [1, 2, 3, 4], |
| coordinateSystem: 'polar', |
| name: 'A', |
| stack: 'a', |
| emphasis: { |
| focus: 'series' |
| } |
| }, { |
| type: 'bar', |
| data: [2, 4, 6, 8], |
| coordinateSystem: 'polar', |
| name: 'B', |
| stack: 'a', |
| emphasis: { |
| focus: 'series' |
| } |
| }, { |
| type: 'bar', |
| data: [1, 2, 3, 4], |
| coordinateSystem: 'polar', |
| name: 'C', |
| stack: 'a', |
| emphasis: { |
| focus: 'series' |
| } |
| }], |
| legend: { |
| show: true, |
| data: ['A', 'B', 'C'] |
| } |
| }; |