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