Commit 7438425d by BellCodeEditor

save project

parent 3eab10ea
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="25269348efd847d8a77a4e91f7406cb1" class="chart-container" style="width:900px; height:500px;"></div> <div id="76c6780c13024595b21893403639346e" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_25269348efd847d8a77a4e91f7406cb1 = echarts.init( var chart_76c6780c13024595b21893403639346e = echarts.init(
document.getElementById('25269348efd847d8a77a4e91f7406cb1'), 'white', {renderer: 'canvas'}); document.getElementById('76c6780c13024595b21893403639346e'), 'white', {renderer: 'canvas'});
var option_25269348efd847d8a77a4e91f7406cb1 = { var option_76c6780c13024595b21893403639346e = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -129,15 +129,15 @@ ...@@ -129,15 +129,15 @@
} }
}, },
"data": [ "data": [
"\u8bed\u6587", "\u4f59\u6e29",
"\u6570\u5b66", "\u8167\u7a74",
"\u82f1\u8bed", "\u5e94\u4e88",
"\u5730\u7406", "\u7825\u783a",
"\u5386\u53f2", "\u79bb\u4e16",
"\u653f\u6cbb", "\u6574\u6cbb",
"\u751f\u7269", "\u5723\u6b66",
"\u5316\u5b66", "\u6ed1\u9774",
"\u7269\u7406" "\u5c4b\u91cc"
] ]
} }
], ],
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
} }
] ]
}; };
chart_25269348efd847d8a77a4e91f7406cb1.setOption(option_25269348efd847d8a77a4e91f7406cb1); chart_76c6780c13024595b21893403639346e.setOption(option_76c6780c13024595b21893403639346e);
</script> </script>
</body> </body>
</html> </html>
from pyecharts.charts import Bar from pyecharts.charts import Bar
subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"] subjects = ["余温","腧穴","应予","砥砺","离世","整治","圣武","滑靴","屋里"]
scores = [88, 95, 96, 94, 62, 66, 64, 93, 89] scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
bar=Bar() bar=Bar()
bar.add_xaxis(subjects) bar.add_xaxis(subjects)
......
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