光伏V1.0产品设计_电量指标分析
配置项如下
var option = {
backgroundColor: 'black',
legend: {
orient:'vertical',
right:'1%',
data: ['逆变器输入等价发电时长', '逆变器输出等价发电时长'],
textStyle: {
color: 'rgb(174,237,255)'
}
},
tooltip: {
trigger: 'axis'
},
textStyle: {
color: '#32cbd7',
fontSize: '10px'
},
grid: {
left: '3%',
right: '8%',
bottom: '3%',
top: '15%',
containLabel: true
},
calculable: true,
xAxis: [{
name: '',
show: true,
type: 'category',
boundaryGap: false,
data: [
"周一",
"周二",
"周三",
"周四",
"周五",
"周六",
"周日"
],
axisLine: {
lineStyle: {
color: 'rgb(20,203,215,0.2)'
}
},
//刻度线是否显示
axisTick: {
show: false
},
axisLabel: {
interval: 0,
show: true
},
splitLine: {
show: true,
lineStyle: {
// 使用深浅的间隔色
color: 'rgb(20,203,215,0.2)'
}
}
}],
yAxis: [{
type: 'value',
name: '',
axisLine: {
symbolOffset: [0, 10],
lineStyle: {
color: 'rgb(20,203,215,0.2)'
}
},
axisTick: {
show: false,
},
splitLine: {
show: true,
lineStyle: {
color: 'rgb(20,203,215,0.2)'
}
}
}],
series: [{
name: '逆变器输入等价发电时长',
type: 'line',
symbol: 'none',
itemStyle: {
normal: {
color: 'rgb(43,250,243)',
areaStyle: {
color: new echarts.graphic.LinearGradient(
0, 1, 0, 0,
[{
offset: 0,
color: 'rgb(43,250,243,0.01)'
},
{
offset: 0.5,
color: 'rgb(43,250,243,0.2)'
},
{
offset: 1,
color: 'rgb(43,250,243,0.6)'
}
]
)
},
lineStyle: {
color: new echarts.graphic.LinearGradient(
0, 0, 1, 0,
[{
offset: 0,
color: 'rgb(43,250,243)'
},
{
offset: 0.5,
color: 'rgb(43,250,243)'
},
{
offset: 1,
color: 'rgb(43,250,243)'
}
]
)
}
}
},
data: [
1,
3,
5,
6,
3,
13,
11
]
}, {
name: '逆变器输出等价发电时长',
type: 'line',
symbol: 'none',
itemStyle: {
normal: {
color: 'rgb(107,66,220)',
areaStyle: {
color: new echarts.graphic.LinearGradient(
0, 1, 0, 0,
[{
offset: 0,
color: 'rgb(107,66,220,0.01)'
},
{
offset: 0.5,
color: 'rgb(107,66,220,0.2)'
},
{
offset: 1,
color: 'rgb(107,66,220,0.6)'
}
]
)
},
lineStyle: {
color: new echarts.graphic.LinearGradient(
0, 0, 1, 0,
[{
offset: 0,
color: 'rgb(107,66,220)'
},
{
offset: 0.5,
color: 'rgb(107,66,220)'
},
{
offset: 1,
color: 'rgb(107,66,220)'
}
]
)
}
}
},
data: [
120,
132,
101,
134,
90,
230,
210
]
}]
}