tooltip. formatter字符串模板
option={ legend: {},tooltip: { trigger: 'axis ',axis pointer : { type 3360 ' shadow ',},/在此改变格式border-radius: 10px; width: 10px; height: 10px; background-color: #5470c6; '/span计划完成: strong{c0}/strong万元br/span style=' display 3360 inline-block; 边距-右: 4px; border-radius: 10px; width: 10px; height: 10px; background-color: #91cc75; '/span实际完成了。 strong{c1}/strong万元' },xAxis: { type: 'category ',data: ['1月',' 2月',' 3月',' 4月] yaxis 3: series: [ { name:计划完成: 76587万元',type: 'bar ',(70,150,110,150,150,300 ),]、{ name: (实际完成)
option={ legend: {},tooltip:{trigger:'axis ',axis pointer : { type 3360 ' shadow ',},formatter 3360 xAxis: { type: 'category ',data: ['1月',1月] '9月',' 10月',' 11月',' 12月',yAxis: { name: series 3360 { name 3360 } data : [ 120、200、150、150、80、70、150、110、150、150、300 ]、}、{ name 3360’的实际完成