option = {
color: ["#0080FF", "#0FDBA2"],
title: {
textStyle: {
color: '#fff',
fontSize: 18,
},
x: 'center',
},
tooltip: {
trigger: 'axis',
axisPointer: {
// 坐标轴指示器,坐标轴触发有效
type: 'shadow', // 默认为直线,可选为:'line' | 'shadow'
},
},
legend: {
data: ['销量', '同比(%)'],
x: 'right',
icon: 'rect',
},
grid: [{
x: '80%',
y: '7%',
height: '20%',
left: '0%',
top: '30%',
right: '8%',
},
{
x: '7%',
y2: '7%',
height
echarts柱状图加折线图
最新推荐文章于 2024-05-21 20:58:30 发布