1
0
mirror of https://gitee.com/lvyeyou/DaShuJuZhiDaPingZhanShi.git synced 2025-06-17 11:35:25 +08:00
郎大伟 88dc752a0d 【智慧城市】新增大数据可视化展板通用模板
【智慧运维】新增大数据统计展示大屏
2019-12-18 10:09:16 +08:00

52 lines
1.1 KiB
JavaScript

var dom = document.getElementById("box3_left");
var myChart = echarts.init(dom);
var app = {};
option = null;
app.title = '极坐标系下的堆叠柱状图';
option = {
textStyle:{//图例文字的样式
color:'#dbdbdb',
fontSize:10
},
angleAxis: {
},
radiusAxis: {
type: 'category',
data: ['周一', '周二', '周三', '周四'],
z: 10
},
polar: {
},
series: [{
type: 'bar',
data: [1, 2, 3, 4],
coordinateSystem: 'polar',
name: 'A',
stack: 'a'
}, {
type: 'bar',
data: [2, 4, 6, 8],
coordinateSystem: 'polar',
name: 'B',
stack: 'a'
}, {
type: 'bar',
data: [1, 2, 3, 4],
coordinateSystem: 'polar',
name: 'C',
stack: 'a'
}],
legend: {
show: true,
textStyle:{//图例文字的样式
color:'#dbdbdb',
fontSize:10
},
data: ['A', 'B', 'C']
}
};
;
if (option && typeof option === "object") {
myChart.setOption(option, true);
}