option: {
tooltip: {
trigger: 'axis',
// formatter: '{a} <br/>{b}: {c} ({d}%)',
confine: true,
},
// legend: {
// data: ['11', '22'],
// textStyle: {
// color: 'rgba(252, 252, 252, 1)',
// },
// },
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true,
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['11', '22', '33', '44', '55', '66', '77'],
axisLine: {
show: false,
},
axisTick: {
show: false,
},
},
yAxis: [
{
type: 'value',
name: '111',
// splitNumber: 6, //设置坐标轴的分割段数
axisLine: {
show: true,
},
axisLabel: {
show: true,
color: 'rgba(255, 255, 255, 0.5)',
},
splitLine: {
show: true,
lineStyle: {
color: 'rgba(255, 255, 255, 0.5)',
type: 'dashed',
},
},
},
],
series: [
{
name: '22',
smooth: true,
type: 'line',
showSymbol: false,
data: [120, 132, 101, 134, 90, 230, 210],
lineStyle: {
// 阴影部分
shadowOffsetX: 0, // 折线的X偏移
shadowOffsetY: 9, // 折线的Y偏移
shadowBlur: 8, // 折线模糊
shadowColor: 'rgba(145, 132, 132, 1)', //折线颜色
},
markLine: {
data: [
{
yAxis: 220,
// type: 'max',
},
],
symbol: ['none', 'none'],
label: {
show: false,
},
lineStyle: {
color: '#FC8F5D',
},
},
},
],
},
echarts折线图添加上限值
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。