Commit 546a73ea by BellCodeEditor

save project

parent b5b1c224
Showing with 14 additions and 5 deletions
......@@ -7,11 +7,11 @@
</head>
<body>
<div id="bee0012d84524671b214aa6db77ea0f4" class="chart-container" style="width:900px; height:500px;"></div>
<div id="da6566ad7830459e9b84941b4a743083" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_bee0012d84524671b214aa6db77ea0f4 = echarts.init(
document.getElementById('bee0012d84524671b214aa6db77ea0f4'), 'white', {renderer: 'canvas'});
var option_bee0012d84524671b214aa6db77ea0f4 = {
var chart_da6566ad7830459e9b84941b4a743083 = echarts.init(
document.getElementById('da6566ad7830459e9b84941b4a743083'), 'white', {renderer: 'canvas'});
var option_da6566ad7830459e9b84941b4a743083 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -357,7 +357,7 @@
"subtext": "\u5355\u4f4d\uff1a\u5206"
}
};
chart_bee0012d84524671b214aa6db77ea0f4.setOption(option_bee0012d84524671b214aa6db77ea0f4);
chart_da6566ad7830459e9b84941b4a743083.setOption(option_da6566ad7830459e9b84941b4a743083);
</script>
</body>
</html>
from pyecharts.charts import Pie
add1 = [("氮气",78),("氧气",21),("其他气体",1)]
pie = Pie()
pie.add('',add1)
pie.render("PIE.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