option1: {
color: [
'#2777EC',
'#2EACFF',
'#FFA61C',
'#2EC054',
'#F28685',
'#8C64D7'
],
legend: {
show: true,
right: '5%',
itemWidth: 16,
itemHeight: 11
},
tooltip: {
trigger: 'axis'
},
grid: {
x: '7%',
y: '15%',
x2: '3%',
y2: '15%'
},
xAxis: [
{
type: 'category',
axisLine: {
show: true,
lineStyle: {
color: 'rgba(151, 151, 151, 1)'
}
},
axisLabel: {
show: true,
// margin: 20,
textStyle: {
color: '#000'
}
},
echarts多个柱状图
本文将展示如何利用Echarts库在同一个图表中绘制多个柱状图,实现数据对比和展示的高效方式。通过实例代码和步骤,帮助读者理解如何配置Echarts选项,以实现多个柱状图的绘制。
摘要由CSDN通过智能技术生成