Commit 7c1e2ced by BellCodeEditor

save project

parent 71700543
Showing with 9 additions and 11 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="eb1ef27456b14f80a73c5be32c1ef3f4" class="chart-container" style="width:900px; height:500px;"></div>
<div id="099d1aaa8463479985d6c0dfada01a9a" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_eb1ef27456b14f80a73c5be32c1ef3f4 = echarts.init(
document.getElementById('eb1ef27456b14f80a73c5be32c1ef3f4'), 'white', {renderer: 'canvas'});
var option_eb1ef27456b14f80a73c5be32c1ef3f4 = {
var chart_099d1aaa8463479985d6c0dfada01a9a = echarts.init(
document.getElementById('099d1aaa8463479985d6c0dfada01a9a'), 'white', {renderer: 'canvas'});
var option_099d1aaa8463479985d6c0dfada01a9a = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -353,13 +353,11 @@
}
],
"title": {
"test": "\u5c0f\u6770\uff0c\u806a\u806a\u548c\u76ae\u76ae\u7684\u6210\u7ee9",
"student1": "\u5355\u4f4d\uff1a\u5206",
"student2": "\u5355\u4f4d\uff1a\u5206",
"student3": "\u5355\u4f4d\uff1a\u5206"
"text": "\u6210\u7ee9\u8d70\u52bf\u56fe",
"subtext": "\u9ad8254\u73ed\u5b66\u751f"
}
};
chart_eb1ef27456b14f80a73c5be32c1ef3f4.setOption(option_eb1ef27456b14f80a73c5be32c1ef3f4);
chart_099d1aaa8463479985d6c0dfada01a9a.setOption(option_099d1aaa8463479985d6c0dfada01a9a);
</script>
</body>
</html>
......@@ -9,6 +9,5 @@ line.add_xaxis(test)
line.add_yaxis("聪聪",student1)
line.add_yaxis("小杰",student2)
line.add_yaxis("皮皮",student3)
line.set_global_opts(title_opts=
{"test":"小杰,聪聪和皮皮的成绩","student1":"单位:分","student2":"单位:分","student3":"单位:分"})
line.set_global_opts(title_opts={"text":"成绩走势图","subtext":"高254班学生"})
line.render("12345678910.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