var myChart = echarts.init(document.getElementById(id));
var option = {
tooltip: {
trigger: 'axis',
formatter: function (params) {
return dataName[params[0].dataIndex] + " 产品数量:" + params[0].value + " 产品价格:" + params[1].value;
},
axisPointer: {
type: 'cross',
lineStyle: {
color: '#57617B'
}
}
},
"legend": {
icon: 'circle',
"data": [
{
"name": "产品数量"},
{
"name": "产品价格"},
{
"name": "产品图片"}
],
"textStyle": {
"color": "rgba(255,255,255,0.9)"
}
},
dataZoom:
Echarts实战案例分享:实战柱图日销售名称和图片对应展示的解决方案
关注
打赏