Commit baa31da7 by BellCodeEditor

save project

parent eb0f1502
Showing with 10 additions and 7 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="ded9d944842c4846bd13202cb9db67cf" class="chart-container" style="width:900px; height:500px;"></div>
<div id="37ec5a77eac64f1dba0206b34646f545" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_ded9d944842c4846bd13202cb9db67cf = echarts.init(
document.getElementById('ded9d944842c4846bd13202cb9db67cf'), 'white', {renderer: 'canvas'});
var option_ded9d944842c4846bd13202cb9db67cf = {
var chart_37ec5a77eac64f1dba0206b34646f545 = echarts.init(
document.getElementById('37ec5a77eac64f1dba0206b34646f545'), 'white', {renderer: 'canvas'});
var option_37ec5a77eac64f1dba0206b34646f545 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -165,7 +165,7 @@
}
]
};
chart_ded9d944842c4846bd13202cb9db67cf.setOption(option_ded9d944842c4846bd13202cb9db67cf);
chart_37ec5a77eac64f1dba0206b34646f545.setOption(option_37ec5a77eac64f1dba0206b34646f545);
</script>
</body>
</html>
from pyecharts.charts import Bar
bar=Bar()
bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"])
bar.add_yaxis("成绩",[88, 95, 96, 94, 62, 66, 64, 93, 89])
subjects=(["语文","数学","英语","地理","历史","政治","生物","化学","物理"])
scores=[88, 95, 96, 94, 62, 66, 64, 93, 89]
bar.add_xaxis(subjects)
bar.add_yaxis("成绩",scores)
bar.render("lm.html")
\ No newline at end of file
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