fix:charts测试更改

This commit is contained in:
shijing 2024-07-25 09:34:33 +08:00
parent 7d7c5f2dcc
commit 42676ab855
1 changed files with 9 additions and 11 deletions

View File

@ -1,12 +1,12 @@
<template>
<el-main>
<el-card>
<div id="main" style="width: 1000px; height: 600px"></div>
<div id="main" style="width: 1000px; height: 500px"></div>
<div
id="mains"
style="
width: 1000px;
height: 600px;
height: 500px;
position: absolute;
top: 185px;
"
@ -53,7 +53,7 @@ export default {
[3, 36.5, 4, "CCUS碳减排", 2025],
[33, 34.05, 33, "低碳水泥碳减排", 2030],
[16, 39, 26, "替代燃料碳减排", 2030],
[26, 39, 26, "替代燃料碳减排", 2030],
[10, 32, 10, "清洁能源电力碳减排", 2030],
[18, 32.2, 18, "能效提升技术碳减排", 2030],
[7, 36.57, 9, "CCUS碳减排", 2030],
@ -148,12 +148,12 @@ export default {
elements: [
{
type: "text",
right: 160,
left: "center",
bottom: 60,
style: {
text: startYear,
font: "bolder 80px monospace",
fill: "rgba(100, 100, 100, 0.25)",
fill: "#d6000f",
},
z: 100,
},
@ -221,7 +221,6 @@ export default {
emphasis: {
focus: "series",
},
// color: "#43fb43",//绿
color: "#000000",
encode: {
x: "Year",
@ -244,18 +243,17 @@ export default {
xAxis: {
type: "category",
nameLocation: "middle",
// show: false, // 线线
axisTick: {
show: false, // 线
show: false,
},
axisLine: {
show: false, // 线
show: false,
},
axisLabel: {
show: false, //
show: false,
},
splitLine: {
show: false, // 线
show: false,
},
},
yAxis: {