html
<div class="panel-body finance">
<div id="financeLeft"></div>
<div id="financeRight"></div>
</div>
js
// 财务概况
function financeLeft(id) {
var myCharts = echarts.init(document.getElementById(id));
var giftImageUrl = "/assets/pc/white/images/leadingDriver/financeOverviewLeft.png"
var option = {
tooltip: {
trigger: 'item',
formatter: "{b} : {d}% <br/> {c}"
},
grid: {
top: 0
},
graphic: {
elements: [{
type: 'image',
style: {
image: giftImageUrl,
width: 25,
height: 25
},
left: 'center',
top: 'center'
}]
},
legend: {
orient: 'vertical',
// icon: 'circle',
left: 12,
bottom: 0,
itemWidth: 16,
itemHeight: 10,
x: 'center',
textStyle: {
color: '#fff',
fontSize: textStyle
},
data: []
},
series: [{
type: 'pie',
radius: ['40%',