1
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<script src="/node_modules/ace-builds/src-min-noconflict/ace.js" type="text/javascript"></script>
|
||||
<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/reactflow-c250d835.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/reactdrop-be699031.js">
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user