Commit 86410533 by BellCodeEditor

save project

parent 23ee8542
Showing with 18 additions and 7 deletions
......@@ -2,4 +2,5 @@ from pyecharts.charts import Bar
bar=Bar()
bar.add_xaxis(["语文","数学","英语","地理","历史","政治","生物","化学","物理"])
bar.add_yaxis('成绩',[88, 95, 96, 94, 62, 66, 64, 93, 89])
bar.set_global_opts(title_opts={'text':"各科成绩图",'subtext':"分数"})
bar.render()
\ No newline at end of file
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="e29c286d211c47a69796512af2ad81f3" class="chart-container" style="width:900px; height:500px;"></div>
<div id="6eb8fa7fb7eb4878b33182a62111df15" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_e29c286d211c47a69796512af2ad81f3 = echarts.init(
document.getElementById('e29c286d211c47a69796512af2ad81f3'), 'white', {renderer: 'canvas'});
var option_e29c286d211c47a69796512af2ad81f3 = {
var chart_6eb8fa7fb7eb4878b33182a62111df15 = echarts.init(
document.getElementById('6eb8fa7fb7eb4878b33182a62111df15'), 'white', {renderer: 'canvas'});
var option_6eb8fa7fb7eb4878b33182a62111df15 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -87,7 +87,12 @@
],
"selected": {
"\u6210\u7ee9": true
}
},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
}
],
"tooltip": {
......@@ -163,9 +168,13 @@
}
}
}
]
],
"title": {
"text": "\u5404\u79d1\u6210\u7ee9\u56fe",
"subtext": "\u5206\u6570"
}
};
chart_e29c286d211c47a69796512af2ad81f3.setOption(option_e29c286d211c47a69796512af2ad81f3);
chart_6eb8fa7fb7eb4878b33182a62111df15.setOption(option_6eb8fa7fb7eb4878b33182a62111df15);
</script>
</body>
</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