This commit is contained in:
zhangkai
2024-11-04 13:22:55 +08:00
parent a129211e5e
commit 2c69bd7c91
3 changed files with 19 additions and 19 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -8,7 +8,7 @@
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<script src="/node_modules/ace-builds/src-min-noconflict/ace.js" type="text/javascript"></script> <script src="/node_modules/ace-builds/src-min-noconflict/ace.js" type="text/javascript"></script>
<title>NPCs</title> <title>NPCs</title>
<script type="module" crossorigin src="/assets/index-45eec280.js"></script> <script type="module" crossorigin src="/assets/index-e026e2d0.js"></script>
<link rel="modulepreload" crossorigin href="/assets/acebuilds-fbc0ccc6.js"> <link rel="modulepreload" crossorigin href="/assets/acebuilds-fbc0ccc6.js">
<link rel="modulepreload" crossorigin href="/assets/reactflow-c250d835.js"> <link rel="modulepreload" crossorigin href="/assets/reactflow-c250d835.js">
<link rel="modulepreload" crossorigin href="/assets/reactdrop-be699031.js"> <link rel="modulepreload" crossorigin href="/assets/reactdrop-be699031.js">

View File

@@ -6,24 +6,24 @@ function Chart({ options }) {
let chartInstance = null; let chartInstance = null;
options = eval('('+options.substring(8)+')'); options = eval('('+options.substring(8)+')');
options = { // options = {
"chartType": "line", // "chartType": "line",
"xData": [ // "xData": [
"江苏", // "江苏",
"浙江", // "浙江",
"广东", // "广东",
"广州", // "广州",
"北京", // "北京",
"山西", // "山西",
"河北" // "河北"
], // ],
"data": { // "data": {
"2023上半年":['120%', '132%', '101%', '134%', '90%', '230%', '210%'], // "2023上半年":['120%', '132%', '101%', '134%', '90%', '230%', '210%'],
"2024上半年":['220%', '182%', '191%', '234%', '290%', '330%', '310%'] // "2024上半年":['220%', '182%', '191%', '234%', '290%', '330%', '310%']
}, // },
"legend": [], // "legend": [],
"pieData": [] // "pieData": []
} // }
options.legend = Object.keys(options.data); options.legend = Object.keys(options.data);
options.pieData = []; options.pieData = [];
options.series = []; options.series = [];