option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
name: '数据量',
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar',
barWidth: 40,
itemStyle: {
color: "rgb(15, 138, 209)"
},
markPoint: {
data: [
{
type: 'max',
name: '最大值'
},
{
type: 'min',
name: '最小值'
}
]
},//markLine
}
],
tooltip: {
trigger: 'item' //'axis'
},
title: {
text: '物品数据图'
},
};
前端_echarts学习笔记_(1)基础柱状图结构
于 2022-06-11 20:59:51 首次发布