options={
title: {
text: title,
left: '5%',
top: '5',
textStyle: {
fontSize: 14,
color: 'black'
},
padding: 10
},
grid: {
top: '25%',
bottom: '10%'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow',
label: {
show: true
}
}
},
xAxis: {
data: [1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月],
axisTick: {
show: true // 隐藏X轴刻度
},
axisLabel: {
show: true,
textStyle: {
color: 'black' // X轴文字颜色
}
},
axisLine: {
show: true,
lineStyle: {
color: '#01FCE3'
}
}
},
yAxis: [
Echarts-柱状图、折线图
最新推荐文章于 2024-08-01 14:02:34 发布
本文深入探讨了Echarts库在创建柱状图和折线图方面的使用方法,包括数据配置、样式定制以及交互功能的实现。通过实例展示了如何利用Echarts绘制出具有专业视觉效果的数据图表,适用于数据可视化需求的各种场景。
摘要由CSDN通过智能技术生成