Commit e59fe7a4 by BellCodeEditor

save project

parent 97c6bdbd
Showing with 17 additions and 7 deletions
...@@ -9,6 +9,7 @@ line.add_xaxis(test) ...@@ -9,6 +9,7 @@ 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':'高254班数学'})
line.render() line.render()
......
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="ce32cc5d70df4588a1d469830de941d2" class="chart-container" style="width:900px; height:500px;"></div> <div id="9d556c601c114ce6b3e71e27e603c0e1" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_ce32cc5d70df4588a1d469830de941d2 = echarts.init( var chart_9d556c601c114ce6b3e71e27e603c0e1 = echarts.init(
document.getElementById('ce32cc5d70df4588a1d469830de941d2'), 'white', {renderer: 'canvas'}); document.getElementById('9d556c601c114ce6b3e71e27e603c0e1'), 'white', {renderer: 'canvas'});
var option_ce32cc5d70df4588a1d469830de941d2 = { var option_9d556c601c114ce6b3e71e27e603c0e1 = {
"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": {
"test": "\u806a\u806a,\u5c0f\u6770,\u76ae\u76ae\u6210\u7ee9\u7edf\u8ba1\u56fe",
"subtest": "\u9ad8254\u73ed\u6570\u5b66"
}
}; };
chart_ce32cc5d70df4588a1d469830de941d2.setOption(option_ce32cc5d70df4588a1d469830de941d2); chart_9d556c601c114ce6b3e71e27e603c0e1.setOption(option_9d556c601c114ce6b3e71e27e603c0e1);
</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