|
@@ -42,6 +42,7 @@
|
|
"限电损失",
|
|
"限电损失",
|
|
"受累损失",
|
|
"受累损失",
|
|
"性能损失",
|
|
"性能损失",
|
|
|
|
+ "理论发电量"
|
|
],
|
|
],
|
|
data: [
|
|
data: [
|
|
[1320, 1302, 901, 634, 1390, 1330, 1320, 1000, 500],
|
|
[1320, 1302, 901, 634, 1390, 1330, 1320, 1000, 500],
|
|
@@ -110,27 +111,23 @@
|
|
show: this.showLegend,
|
|
show: this.showLegend,
|
|
data: this.bardata.legend,
|
|
data: this.bardata.legend,
|
|
right: 56,
|
|
right: 56,
|
|
- icon: "ract",
|
|
|
|
|
|
+ // icon: "ract",
|
|
itemWidth: 8,
|
|
itemWidth: 8,
|
|
itemHeight: 8,
|
|
itemHeight: 8,
|
|
inactiveColor: this.themeName === "dark" ?
|
|
inactiveColor: this.themeName === "dark" ?
|
|
- partten.getColor("gray") :
|
|
|
|
- "#838383",
|
|
|
|
|
|
+ partten.getColor("gray") : "#838383",
|
|
textStyle: {
|
|
textStyle: {
|
|
color: this.themeName === "dark" ?
|
|
color: this.themeName === "dark" ?
|
|
- partten.getColor("grayl") :
|
|
|
|
- "#838383",
|
|
|
|
|
|
+ partten.getColor("grayl") : "#838383",
|
|
fontSize: 12,
|
|
fontSize: 12,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: "axis",
|
|
trigger: "axis",
|
|
backgroundColor: true ?
|
|
backgroundColor: true ?
|
|
- "rgba(255,255,255,0.9)" :
|
|
|
|
- "rgba(255,255,255,0.9)",
|
|
|
|
|
|
+ "rgba(255,255,255,0.9)" : "rgba(255,255,255,0.9)",
|
|
borderColor: this.themeName === "dark" ?
|
|
borderColor: this.themeName === "dark" ?
|
|
- partten.getColor("gray") :
|
|
|
|
- "#838383",
|
|
|
|
|
|
+ partten.getColor("gray") : "#838383",
|
|
textStyle: {
|
|
textStyle: {
|
|
color: this.themeName === "dark" ? "#fff" : "#838383",
|
|
color: this.themeName === "dark" ? "#fff" : "#838383",
|
|
fontSize: util.vh(16),
|
|
fontSize: util.vh(16),
|
|
@@ -152,8 +149,7 @@
|
|
// handleIcon: "path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z",
|
|
// handleIcon: "path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z",
|
|
handleStyle: {
|
|
handleStyle: {
|
|
color: this.themeName === "dark" ?
|
|
color: this.themeName === "dark" ?
|
|
- partten.getColor("green") :
|
|
|
|
- partten.getColor("blue"),
|
|
|
|
|
|
+ partten.getColor("green") : partten.getColor("blue"),
|
|
},
|
|
},
|
|
moveHandleSize: 0,
|
|
moveHandleSize: 0,
|
|
// dataBackground: {
|
|
// dataBackground: {
|
|
@@ -175,12 +171,10 @@
|
|
fillerColor: "transparent",
|
|
fillerColor: "transparent",
|
|
textStyle: {
|
|
textStyle: {
|
|
color: this.themeName === "dark" ?
|
|
color: this.themeName === "dark" ?
|
|
- partten.getColor("grayl") :
|
|
|
|
- "#838383",
|
|
|
|
|
|
+ partten.getColor("grayl") : "#838383",
|
|
},
|
|
},
|
|
borderColor: this.themeName === "dark" ?
|
|
borderColor: this.themeName === "dark" ?
|
|
- partten.getColor("gray") :
|
|
|
|
- "#838383",
|
|
|
|
|
|
+ partten.getColor("gray") : "#838383",
|
|
brushSelect: false,
|
|
brushSelect: false,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -188,8 +182,7 @@
|
|
type: "category",
|
|
type: "category",
|
|
axisLabel: {
|
|
axisLabel: {
|
|
color: this.themeName === "dark" ?
|
|
color: this.themeName === "dark" ?
|
|
- partten.getColor("gray") :
|
|
|
|
- "#838383",
|
|
|
|
|
|
+ partten.getColor("gray") : "#838383",
|
|
},
|
|
},
|
|
inverse: true,
|
|
inverse: true,
|
|
// minInterval: 10,
|
|
// minInterval: 10,
|
|
@@ -207,16 +200,14 @@
|
|
name: '万kWh',
|
|
name: '万kWh',
|
|
axisLabel: {
|
|
axisLabel: {
|
|
color: this.themeName === "dark" ?
|
|
color: this.themeName === "dark" ?
|
|
- partten.getColor("gray") :
|
|
|
|
- "#838383",
|
|
|
|
|
|
+ partten.getColor("gray") : "#838383",
|
|
// formatter: "{value}万kWh",
|
|
// formatter: "{value}万kWh",
|
|
},
|
|
},
|
|
axisLine: {
|
|
axisLine: {
|
|
type: "dashed",
|
|
type: "dashed",
|
|
lineStyle: {
|
|
lineStyle: {
|
|
color: this.themeName === "dark" ?
|
|
color: this.themeName === "dark" ?
|
|
- partten.getColor("gray") :
|
|
|
|
- "#838383",
|
|
|
|
|
|
+ partten.getColor("gray") : "#838383",
|
|
},
|
|
},
|
|
width: 5,
|
|
width: 5,
|
|
},
|
|
},
|
|
@@ -257,7 +248,7 @@
|
|
// bar data
|
|
// bar data
|
|
for (var i = 0; i < this.bardata.legend.length; i++) {
|
|
for (var i = 0; i < this.bardata.legend.length; i++) {
|
|
option.series.push({
|
|
option.series.push({
|
|
- name: this.bardata.legend[i],
|
|
|
|
|
|
+ name: this.bardata.legend[i].name,
|
|
type: "bar",
|
|
type: "bar",
|
|
stack: "总量",
|
|
stack: "总量",
|
|
barWidth: 16,
|
|
barWidth: 16,
|
|
@@ -272,20 +263,18 @@
|
|
// line data
|
|
// line data
|
|
if (this.lineData.length > 0) {
|
|
if (this.lineData.length > 0) {
|
|
option.series.push({
|
|
option.series.push({
|
|
- name: this.lineName,
|
|
|
|
|
|
+ name: "理论发电量",
|
|
type: "line",
|
|
type: "line",
|
|
data: this.lineData,
|
|
data: this.lineData,
|
|
smooth: false, //平滑展示
|
|
smooth: false, //平滑展示
|
|
xAxisIndex: 1,
|
|
xAxisIndex: 1,
|
|
lineStyle: {
|
|
lineStyle: {
|
|
color: this.themeName === "dark" ?
|
|
color: this.themeName === "dark" ?
|
|
- partten.getColor("green") :
|
|
|
|
- partten.getColor("blue"),
|
|
|
|
|
|
+ partten.getColor("green") : partten.getColor("blue"),
|
|
},
|
|
},
|
|
itemStyle: {
|
|
itemStyle: {
|
|
color: this.themeName === "dark" ?
|
|
color: this.themeName === "dark" ?
|
|
- partten.getColor("green") :
|
|
|
|
- partten.getColor("blue"),
|
|
|
|
|
|
+ partten.getColor("green") : partten.getColor("blue"),
|
|
},
|
|
},
|
|
});
|
|
});
|
|
}
|
|
}
|