Commit 7435c5f5 by BellCodeEditor

save project

parent 5fa4d010
Showing with 16 additions and 16 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="48eb8c5520844250b2a32dee6cd0978f" class="chart-container" style="width:900px; height:500px;"></div> <div id="10129b3182cc459fbcab8afb6f0cbda1" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_48eb8c5520844250b2a32dee6cd0978f = echarts.init( var chart_10129b3182cc459fbcab8afb6f0cbda1 = echarts.init(
document.getElementById('48eb8c5520844250b2a32dee6cd0978f'), 'white', {renderer: 'canvas'}); document.getElementById('10129b3182cc459fbcab8afb6f0cbda1'), 'white', {renderer: 'canvas'});
var option_48eb8c5520844250b2a32dee6cd0978f = { var option_10129b3182cc459fbcab8afb6f0cbda1 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -52,15 +52,15 @@ ...@@ -52,15 +52,15 @@
"name": "\u6210\u7ee9\u8868", "name": "\u6210\u7ee9\u8868",
"legendHoverLink": true, "legendHoverLink": true,
"data": [ "data": [
"\u8bed\u6587", 88,
"\u6570\u5b66", 95,
"\u82f1\u8bed", 96,
"\u5730\u7406", 94,
"\u5386\u53f2", 62,
"\u653f\u6cbb", 66,
"\u751f\u7269", 64,
"\u5316\u5b66", 93,
"\u7269\u7406" 89
], ],
"showBackground": false, "showBackground": false,
"barMinHeight": 0, "barMinHeight": 0,
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
} }
] ]
}; };
chart_48eb8c5520844250b2a32dee6cd0978f.setOption(option_48eb8c5520844250b2a32dee6cd0978f); chart_10129b3182cc459fbcab8afb6f0cbda1.setOption(option_10129b3182cc459fbcab8afb6f0cbda1);
</script> </script>
</body> </body>
</html> </html>
...@@ -4,5 +4,5 @@ subjects = ["语文","æ•°å­¦","英语","地ç†","历å²","政治","生物","化å ...@@ -4,5 +4,5 @@ subjects = ["语文","æ•°å­¦","英语","地ç†","历å²","政治","生物","化å
scores = [88, 95, 96, 94, 62, 66, 64, 93, 89] scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
a = Bar() a = Bar()
a.add_xaxis(subjects) a.add_xaxis(subjects)
a.add_yaxis("成绩表",subjects) a.add_yaxis("成绩表",scores)
a.render("b,html") a.render("b.html")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment