Commit 44bcfc18 by BellCodeEditor

auto save

parent 33549a1e
Showing with 15 additions and 121 deletions
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="6ce4109c9c3f4750a6f7edb3fe199673" class="chart-container" style="width:900px; height:500px;"></div> <div id="7acb96dd69ea4dabac82d98583253795" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_6ce4109c9c3f4750a6f7edb3fe199673 = echarts.init( var chart_7acb96dd69ea4dabac82d98583253795 = echarts.init(
document.getElementById('6ce4109c9c3f4750a6f7edb3fe199673'), 'white', {renderer: 'canvas'}); document.getElementById('7acb96dd69ea4dabac82d98583253795'), 'white', {renderer: 'canvas'});
var option_6ce4109c9c3f4750a6f7edb3fe199673 = { var option_7acb96dd69ea4dabac82d98583253795 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -46,74 +46,11 @@ ...@@ -46,74 +46,11 @@
"#6950a1", "#6950a1",
"#918597" "#918597"
], ],
"series": [ "series": [],
{
"type": "bar",
"name": "\u671f\u4e2d",
"legendHoverLink": true,
"data": [
92,
95,
82,
88
],
"showBackground": false,
"barWidth": 40,
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
"large": false,
"largeThreshold": 400,
"seriesLayoutBy": "column",
"datasetIndex": 0,
"clip": true,
"zlevel": 0,
"z": 2,
"label": {
"show": true,
"position": "top",
"margin": 8
}
},
{
"type": "bar",
"name": "\u671f\u672b",
"legendHoverLink": true,
"data": [
95,
79,
93,
90
],
"showBackground": false,
"barWidth": 40,
"barMinHeight": 0,
"barCategoryGap": "20%",
"barGap": "30%",
"large": false,
"largeThreshold": 400,
"seriesLayoutBy": "column",
"datasetIndex": 0,
"clip": true,
"zlevel": 0,
"z": 2,
"label": {
"show": true,
"position": "top",
"margin": 8
}
}
],
"legend": [ "legend": [
{ {
"data": [ "data": [],
"\u671f\u4e2d", "selected": {}
"\u671f\u672b"
],
"selected": {
"\u671f\u4e2d": true,
"\u671f\u672b": true
}
} }
], ],
"tooltip": { "tooltip": {
...@@ -133,60 +70,16 @@ ...@@ -133,60 +70,16 @@
"borderWidth": 0, "borderWidth": 0,
"padding": 5 "padding": 5
}, },
"xAxis": [ "dataset": {
{ "source": [
"show": true, 92,
"scale": false, 95,
"nameLocation": "end", 82,
"nameGap": 15, 88
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
},
"data": [
"\u6d48\u6d48",
"\u806a\u806a",
"\u5c0f\u667a",
"\u6ce2\u5947"
] ]
} }
],
"yAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
}
}
]
}; };
chart_6ce4109c9c3f4750a6f7edb3fe199673.setOption(option_6ce4109c9c3f4750a6f7edb3fe199673); chart_7acb96dd69ea4dabac82d98583253795.setOption(option_7acb96dd69ea4dabac82d98583253795);
</script> </script>
</body> </body>
</html> </html>
...@@ -7,6 +7,7 @@ bar = Bar() ...@@ -7,6 +7,7 @@ bar = Bar()
bar.add_xaxis(subjects) bar.add_xaxis(subjects)
bar.add_yaxis("期中",scores1,bar_width=40) bar.add_yaxis("期中",scores1,bar_width=40)
bar.add_yaxis("期末",scores2,bar_width=40) bar.add_yaxis("期末",scores2,bar_width=40)
bar.render("123.html") bar.render("123.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