代码实例:
var monthByCorp3Chart;
var monthByCorp3Option={};
$(function() {
monthByCorp3Chart = echarts.init(document.getElementById('monthByCorp3'));
});
function drawByCorp3(){
monthByCorp3Option = {
backgroundColor: '#0B0B0D',//����ɫ
title: {
text: '',
top:'3%'
},
grid: {
bottom: '10px',
left: '10px',
containLabel: true
},
tooltip : {
trigger: 'item',
showDelay: 0,
hideDelay: 50,
transitionDuration:0,
backgroundColor : 'rgba(72,84,101,0.9)',
position : function(p) {
return [p[0]-40, p[1] - 65];
},
extraCssText:'width:80px;height:50px', //��Ϣ���С
// �����ı���ʽ
textStyle : {
color: '#FFFFFF',
decoration: 'c',
fontFamily: 'Verdana, sans-serif',
//fontStyle: 'italic',
align:'center',
fontWeight: 'bold'
},
formatter: "
}
详情结果请下载源码https://download.csdn.net/download/liqi_q/10451083