Echars 多系列案例_其他

 

 

 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://cdn.jsdelivr.net/npm/echarts@4.7.0/dist/echarts.js"></script>
<style>
#chart {
width: 800px;
height: 400px;
}
</style>
</head>
<body>
<div id="chart"></div>

<script>
const chartDom = document.getElementById('chart');
// const chart = echarts.init(chartDom,'westeros',{renderer:'svg'});
const chart = echarts.init(chartDom);
chart.setOption({
title:{
text:"Echars 多系列案例"
},
xAxis:{
data:['一季度','二季度','三季度','四季度','五季度','六季度']
},
yAxis:{

},
series:[{
type:'pie', // 饼图
center:['67%',60],
radius: 35,
data:[
{ name:'分类1', value:50},
{ name:'分类2', value:150},
{ name:'分类3', value:250},
{ name:'分类4', value:350}
]
}, {
type:"line", // 折线图
data:[100,120,150,200,150,200]
},{
type:'bar', // 柱状图
data:[100,120,150,200,150,200]
}]
})

</script>
</body>
</html>