option = {
title: {
text: '标题' //标题
},
tooltip: {
//鼠标悬浮显示数据
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
legend: {
data: ['数据', '数据1'] //图例
},
grid: {
//图的边距
left: '3%', //左边距
right: '4%', //右边距
bottom: '12%', //下边距
containLabel: true
},
toolbox: {
//右上角功能
show: true,
feature: {
dataZoom: {
yAxisIndex: 'none' //缩放区域,缩放还原区域
echarts折线图的基础配置详解
于 2022-04-12 16:04:31 首次发布