1、折线图线条样式修改
const option = {
xAxis: {
type: 'category',
data: ['篮球','足球','橄榄球','羽毛球'],
},
yAxis: {
type: 'value',
},
series: [
{
data: ['2','1','1','4'],
type: 'line',
itemStyle: {
normal: {
lineStyle:{
width:3, //折线宽度
color:"#FF0000", //折线颜色
}
},
},
},
],
};
2、折线图线条区域颜色渐变样式修改
const option = {
xAxis: {
type: 'category',
data: ['篮球','足球','橄榄球','羽毛球'],
},
yAxis: {
type: 'value',
},
series: [
{
data: ['2','1','1',&