<div id="main" style="width: 100%;height:400px;"></div>
<script type="text/javascript">
// 基于准备好的dom,初始化echarts实例
var myChart = echarts.init(document.getElementById('main'));
// 指定图表的配置项和数据
myChart.setOption({
title: [{
text: '<?=$title?>统计图',
left: '28%',
top: '3%',
textStyle: {
color: '#ffd285'
}
}],
grid: {
left: '5%',
right: '50%',
top: '20%',
bottom: '6%',
containLabel: true
},
xAxis: {
show:&