echartsOption: {
title: {
text: '最新官价走势图',
x: 'center',
y: 'bottom',
textStyle: {
fontSize: '12px',
color: '#999'
}
},
tooltip: {
trigger: 'axis'
},
xAxis: {
type: 'category',
splitLine: {
show: false
}, // 去掉网格线
axisLine: {
lineStyle: {
color: '#999'
}
},
boundaryGap: false,
data: [],
axisLabel: {
show: true,
textStyle: {
color: '#999'
}
}
},
yAxis: {
type: 'value',
splitLine: {
show: false
}, // 去掉网格线
axisLine: {
lineStyle: {
color: '#999'
}
},
axisLabel: {
formatter: '{value}',
textStyle: {
color: '#999'
}
}
},
series: [
{
name: '该值为',
type: 'line',
data: [0.8, 0.2, 0.3, 0.4, 0.8, 0.4],
itemStyle: {
normal: {
color: '#FFB640' // 折线图颜色
}
}
},
{
name: '该值为',
type: 'line',
data: [],
itemStyle: {
normal: {
color: 'red' // 折线图颜色
}
}
},
{
name: '该值为',
type: 'line',
data: [],
itemStyle: {
normal: {
color: 'green' // 折线图颜色
}
}
}
]
}
echarts 配置项
猜你喜欢
转载自blog.csdn.net/jo_an_na/article/details/80291603
今日推荐
周排行