From 2c69bd7c91b25b9b4794c9122d845324f58cf301 Mon Sep 17 00:00:00 2001
From: zhangkai <17600160566@163.com>
Date: Mon, 4 Nov 2024 13:22:55 +0800
Subject: [PATCH] 1
---
.DS_Store | Bin 10244 -> 10244 bytes
build/index.html | 2 +-
src/components/Chart/index.tsx | 36 ++++++++++++++++-----------------
3 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/.DS_Store b/.DS_Store
index 51b485099f972ddd57cea69180da3a768070f9c1..ada58f65b80905104e2443598c7c48b1eb2dd5b4 100644
GIT binary patch
delta 20
bcmZn(XbISGRDj*oOh>`c!ea9o0Sj>eN*)Gl
delta 20
bcmZn(XbISGRDj*sTt~s!)L`=&0Sj>eN!$iu
diff --git a/build/index.html b/build/index.html
index 190ff21..304a40f 100644
--- a/build/index.html
+++ b/build/index.html
@@ -8,7 +8,7 @@
NPCs
-
+
diff --git a/src/components/Chart/index.tsx b/src/components/Chart/index.tsx
index 69f20af..1c8950a 100644
--- a/src/components/Chart/index.tsx
+++ b/src/components/Chart/index.tsx
@@ -6,24 +6,24 @@ function Chart({ options }) {
let chartInstance = null;
options = eval('('+options.substring(8)+')');
- options = {
- "chartType": "line",
- "xData": [
- "江苏",
- "浙江",
- "广东",
- "广州",
- "北京",
- "山西",
- "河北"
- ],
- "data": {
- "2023上半年":['120%', '132%', '101%', '134%', '90%', '230%', '210%'],
- "2024上半年":['220%', '182%', '191%', '234%', '290%', '330%', '310%']
- },
- "legend": [],
- "pieData": []
- }
+ // options = {
+ // "chartType": "line",
+ // "xData": [
+ // "江苏",
+ // "浙江",
+ // "广东",
+ // "广州",
+ // "北京",
+ // "山西",
+ // "河北"
+ // ],
+ // "data": {
+ // "2023上半年":['120%', '132%', '101%', '134%', '90%', '230%', '210%'],
+ // "2024上半年":['220%', '182%', '191%', '234%', '290%', '330%', '310%']
+ // },
+ // "legend": [],
+ // "pieData": []
+ // }
options.legend = Object.keys(options.data);
options.pieData = [];
options.series = [];