Commit a634ecf0 by BellCodeEditor

save project

parent 541757a8
Showing with 9 additions and 7 deletions
...@@ -6,8 +6,8 @@ s2 = [95, 79, 93, 90] # 期末成绩 ...@@ -6,8 +6,8 @@ s2 = [95, 79, 93, 90] # 期末成绩
bar = Bar() bar = Bar()
bar.add_xaxis(name) bar.add_xaxis(name)
bar.add_yaxis('七种成鸡',s1) bar.add_yaxis('七种成鸡',s1,bar_width=40)
bar.add_yaxis('七摸成鸡',s2) bar.add_yaxis('七摸成鸡',s2,bar_width=40)
bar.render() bar.render()
......
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="35db970e54cf453ab8cb539ce094f09a" class="chart-container" style="width:900px; height:500px;"></div> <div id="dcdea365b01a41d49ddc450866ee4015" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_35db970e54cf453ab8cb539ce094f09a = echarts.init( var chart_dcdea365b01a41d49ddc450866ee4015 = echarts.init(
document.getElementById('35db970e54cf453ab8cb539ce094f09a'), 'white', {renderer: 'canvas'}); document.getElementById('dcdea365b01a41d49ddc450866ee4015'), 'white', {renderer: 'canvas'});
var option_35db970e54cf453ab8cb539ce094f09a = { var option_dcdea365b01a41d49ddc450866ee4015 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
88 88
], ],
"showBackground": false, "showBackground": false,
"barWidth": 40,
"barMinHeight": 0, "barMinHeight": 0,
"barCategoryGap": "20%", "barCategoryGap": "20%",
"barGap": "30%", "barGap": "30%",
...@@ -85,6 +86,7 @@ ...@@ -85,6 +86,7 @@
90 90
], ],
"showBackground": false, "showBackground": false,
"barWidth": 40,
"barMinHeight": 0, "barMinHeight": 0,
"barCategoryGap": "20%", "barCategoryGap": "20%",
"barGap": "30%", "barGap": "30%",
...@@ -184,7 +186,7 @@ ...@@ -184,7 +186,7 @@
} }
] ]
}; };
chart_35db970e54cf453ab8cb539ce094f09a.setOption(option_35db970e54cf453ab8cb539ce094f09a); chart_dcdea365b01a41d49ddc450866ee4015.setOption(option_dcdea365b01a41d49ddc450866ee4015);
</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