Commit 7c1e2ced by BellCodeEditor

save project

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