|
@@ -46,14 +46,14 @@ export const echartLineOptions = (data) => {
|
|
fontSize: "12px",
|
|
fontSize: "12px",
|
|
color: "rgba(217, 247, 255, 0.7)",
|
|
color: "rgba(217, 247, 255, 0.7)",
|
|
},
|
|
},
|
|
- data: ["碳排放强度", "碳排放量"],
|
|
|
|
|
|
+ data: ["碳排放量", "碳排放强度"],
|
|
},
|
|
},
|
|
grid: {
|
|
grid: {
|
|
top: "20%",
|
|
top: "20%",
|
|
- bottom: "5%",
|
|
|
|
- left: "5%",
|
|
|
|
- right: "5%",
|
|
|
|
- containLabel: true,
|
|
|
|
|
|
+ bottom: "20%",
|
|
|
|
+ left: "10%",
|
|
|
|
+ right: "10%",
|
|
|
|
+ // containLabel: true,
|
|
},
|
|
},
|
|
xAxis: {
|
|
xAxis: {
|
|
show: data.length,
|
|
show: data.length,
|
|
@@ -91,7 +91,7 @@ export const echartLineOptions = (data) => {
|
|
name: "tCO₂-eq",
|
|
name: "tCO₂-eq",
|
|
scale: true,
|
|
scale: true,
|
|
axisLabel: {
|
|
axisLabel: {
|
|
- margin: -10,
|
|
|
|
|
|
+ // margin: -10,
|
|
color: "#fff",
|
|
color: "#fff",
|
|
},
|
|
},
|
|
axisLine: {
|
|
axisLine: {
|
|
@@ -115,7 +115,7 @@ export const echartLineOptions = (data) => {
|
|
name: "kg CO₂-eq/m³",
|
|
name: "kg CO₂-eq/m³",
|
|
scale: true,
|
|
scale: true,
|
|
axisLabel: {
|
|
axisLabel: {
|
|
- margin: -20,
|
|
|
|
|
|
+ // margin: -20,
|
|
color: "#fff",
|
|
color: "#fff",
|
|
},
|
|
},
|
|
axisTick: {
|
|
axisTick: {
|
|
@@ -134,7 +134,7 @@ export const echartLineOptions = (data) => {
|
|
{
|
|
{
|
|
name: "碳排放量",
|
|
name: "碳排放量",
|
|
type: "line",
|
|
type: "line",
|
|
- yAxisIndex: 1,
|
|
|
|
|
|
+ yAxisIndex: 0,
|
|
smooth: true,
|
|
smooth: true,
|
|
showSymbol: false,
|
|
showSymbol: false,
|
|
symbol: "circle",
|
|
symbol: "circle",
|
|
@@ -176,6 +176,7 @@ export const echartLineOptions = (data) => {
|
|
symbol: "circle",
|
|
symbol: "circle",
|
|
symbolSize: 6,
|
|
symbolSize: 6,
|
|
data: seriesDataTwo,
|
|
data: seriesDataTwo,
|
|
|
|
+ yAxisIndex: 1,
|
|
// data: [14,44,56,67,22,19,41],
|
|
// data: [14,44,56,67,22,19,41],
|
|
areaStyle: {
|
|
areaStyle: {
|
|
color: new echarts.graphic.LinearGradient(
|
|
color: new echarts.graphic.LinearGradient(
|