Commit 33cc80a6 by BellCodeEditor

auto save

parent a422eb26
Showing with 19 additions and 7 deletions
......@@ -7,4 +7,6 @@ line = charts.Line()
line.add_xaxis(subjects)
line.add_yaxis("期中成绩",scores1)
line.add_yaxis("期末成绩",scores2)
line.set_global_opts(title_opts=
{"text":"期中成绩","subtext":"单位:分"})
line.render()
\ No newline at end of file
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="59d722b145fa45ab8cd70df595ce5f72" class="chart-container" style="width:900px; height:500px;"></div>
<div id="46a16d25cbbf417aa48aa3b0a78a47a5" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_59d722b145fa45ab8cd70df595ce5f72 = echarts.init(
document.getElementById('59d722b145fa45ab8cd70df595ce5f72'), 'white', {renderer: 'canvas'});
var option_59d722b145fa45ab8cd70df595ce5f72 = {
var chart_46a16d25cbbf417aa48aa3b0a78a47a5 = echarts.init(
document.getElementById('46a16d25cbbf417aa48aa3b0a78a47a5'), 'white', {renderer: 'canvas'});
var option_46a16d25cbbf417aa48aa3b0a78a47a5 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -149,7 +149,12 @@
"selected": {
"\u671f\u4e2d\u6210\u7ee9": true,
"\u671f\u672b\u6210\u7ee9": true
}
},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
}
],
"tooltip": {
......@@ -220,9 +225,13 @@
}
}
}
]
],
"title": {
"text": "\u671f\u4e2d\u6210\u7ee9",
"subtext": "\u5355\u4f4d:\u5206"
}
};
chart_59d722b145fa45ab8cd70df595ce5f72.setOption(option_59d722b145fa45ab8cd70df595ce5f72);
chart_46a16d25cbbf417aa48aa3b0a78a47a5.setOption(option_46a16d25cbbf417aa48aa3b0a78a47a5);
</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