var myChart = echarts.init(document.getElementById('allAly01'));
option = {
color: ['#76c4bf', '#e5ffc7', '#508097', '#4d72d9'],
backgroundColor: 'rgba(1,202,217,.2)',
grid: {
left: 10,
right: 40,
top: 20,
bottom: 0,
containLabel: true
},
// legend: {
// x : 'center',
// y : '70%',
// textStyle:{
// fontSize: 10,
// color:'rgba(255,255,255,.7)'
// },
// data:['','','','']
// },
tooltip:{show:true},
calculable: true,
series: [
{
name: '車輛類型',
type: 'pie',
radius: [5, 60],
center: ['50%', '55%'],
roseType: 'area',
data: [
{ value: 10, name: '越野型救護車' },
{ value: 300, name: '監護型救護車' },
{ value: 200, name: '負壓救護車' },
{ value: 25, name: '急救指揮車' },
{ value: 80, name: '新生兒轉運車' },
{ value: 25, name: '其它' }
]
}
]
};
myChart.setOption(option);