Commit 8ad68fa8 by BellCodeEditor

save project

parent 59c2b638
Showing with 9 additions and 9 deletions
...@@ -5,5 +5,5 @@ scores = [88, 95, 96, 94, 62, 66, 64, 93, 89] ...@@ -5,5 +5,5 @@ scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
bar=Bar() bar=Bar()
bar.add_xaxis(subjects) bar.add_xaxis(subjects)
bar.add_yaxis("人类成绩",scores) bar.add_yaxis("成绩",scores)
bar.render() bar.render()
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="38bb146f3c3344f19389d4ca28b64ac7" class="chart-container" style="width:900px; height:500px;"></div> <div id="d1adb80a897e458593592319e02794fb" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_38bb146f3c3344f19389d4ca28b64ac7 = echarts.init( var chart_d1adb80a897e458593592319e02794fb = echarts.init(
document.getElementById('38bb146f3c3344f19389d4ca28b64ac7'), 'white', {renderer: 'canvas'}); document.getElementById('d1adb80a897e458593592319e02794fb'), 'white', {renderer: 'canvas'});
var option_38bb146f3c3344f19389d4ca28b64ac7 = { var option_d1adb80a897e458593592319e02794fb = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"series": [ "series": [
{ {
"type": "bar", "type": "bar",
"name": "\u4eba\u7c7b\u6210\u7ee9", "name": "\u6210\u7ee9",
"legendHoverLink": true, "legendHoverLink": true,
"data": [ "data": [
88, 88,
...@@ -83,10 +83,10 @@ ...@@ -83,10 +83,10 @@
"legend": [ "legend": [
{ {
"data": [ "data": [
"\u4eba\u7c7b\u6210\u7ee9" "\u6210\u7ee9"
], ],
"selected": { "selected": {
"\u4eba\u7c7b\u6210\u7ee9": true "\u6210\u7ee9": true
} }
} }
], ],
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
} }
] ]
}; };
chart_38bb146f3c3344f19389d4ca28b64ac7.setOption(option_38bb146f3c3344f19389d4ca28b64ac7); chart_d1adb80a897e458593592319e02794fb.setOption(option_d1adb80a897e458593592319e02794fb);
</script> </script>
</body> </body>
</html> </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