Commit b29de5b3 by BellCodeEditor

save project

parent 38e0ff14
Showing with 18 additions and 8 deletions
...@@ -8,5 +8,5 @@ line.add_xaxis(test) ...@@ -8,5 +8,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{"test":"数学考试成绩","subtest":"分数"}) line.set_global_opts(title_opts={"text":"数学考试成绩","subtext":"分数"})
line.render() line.render()
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="0d2cb0e9834845f1aa06f64605c08f34" class="chart-container" style="width:900px; height:500px;"></div> <div id="a6c25540a02c48458fb72bac2a90066c" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_0d2cb0e9834845f1aa06f64605c08f34 = echarts.init( var chart_a6c25540a02c48458fb72bac2a90066c = echarts.init(
document.getElementById('0d2cb0e9834845f1aa06f64605c08f34'), 'white', {renderer: 'canvas'}); document.getElementById('a6c25540a02c48458fb72bac2a90066c'), 'white', {renderer: 'canvas'});
var option_0d2cb0e9834845f1aa06f64605c08f34 = { var option_a6c25540a02c48458fb72bac2a90066c = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -269,7 +269,12 @@ ...@@ -269,7 +269,12 @@
"\u806a\u806a": true, "\u806a\u806a": true,
"\u5c0f\u6770": true, "\u5c0f\u6770": true,
"\u76ae\u76ae": true "\u76ae\u76ae": true
} },
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
} }
], ],
"tooltip": { "tooltip": {
...@@ -346,9 +351,13 @@ ...@@ -346,9 +351,13 @@
} }
} }
} }
] ],
"title": {
"text": "\u6570\u5b66\u8003\u8bd5\u6210\u7ee9",
"subtext": "\u5206\u6570"
}
}; };
chart_0d2cb0e9834845f1aa06f64605c08f34.setOption(option_0d2cb0e9834845f1aa06f64605c08f34); chart_a6c25540a02c48458fb72bac2a90066c.setOption(option_a6c25540a02c48458fb72bac2a90066c);
</script> </script>
</body> </body>
</html> </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