Commit 82f2e12f by BellCodeEditor

save project

parent 58fcd372
Showing with 25 additions and 13 deletions
...@@ -6,5 +6,5 @@ y1 = [2.6,5.9,9.0,26.4,28.7,76.7, ...@@ -6,5 +6,5 @@ y1 = [2.6,5.9,9.0,26.4,28.7,76.7,
175.6,182.2,48.7,18.8,6.0,2.3] 175.6,182.2,48.7,18.8,6.0,2.3]
line.add_xaxis(x) line.add_xaxis(x)
line.add_yaxis("降水量",y1) line.add_yaxis("降水量",y1)
line.set_global_opts({"text":"年降水量","subtext":"单位:毫米"}) line.set_global_opts(title_opts = {"text":"年降水量","subtext":"单位:毫米"})
line.render("rain.html") line.render("rain.html")
\ No newline at end of file
...@@ -9,4 +9,5 @@ line.add_xaxis(test) ...@@ -9,4 +9,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={"text":"成绩走势图","subtext":"高254班数学成绩"})
line.render() line.render()
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="d0b24c7d3b9245c8be85e549d66a3124" class="chart-container" style="width:900px; height:500px;"></div> <div id="d5d586a3bd184937be284e5fff7143e2" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_d0b24c7d3b9245c8be85e549d66a3124 = echarts.init( var chart_d5d586a3bd184937be284e5fff7143e2 = echarts.init(
document.getElementById('d0b24c7d3b9245c8be85e549d66a3124'), 'white', {renderer: 'canvas'}); document.getElementById('d5d586a3bd184937be284e5fff7143e2'), 'white', {renderer: 'canvas'});
var option_d0b24c7d3b9245c8be85e549d66a3124 = { var option_d5d586a3bd184937be284e5fff7143e2 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
"subtext": "\u5355\u4f4d\uff1a\u6beb\u7c73" "subtext": "\u5355\u4f4d\uff1a\u6beb\u7c73"
} }
}; };
chart_d0b24c7d3b9245c8be85e549d66a3124.setOption(option_d0b24c7d3b9245c8be85e549d66a3124); chart_d5d586a3bd184937be284e5fff7143e2.setOption(option_d5d586a3bd184937be284e5fff7143e2);
</script> </script>
</body> </body>
</html> </html>
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="08650cf04dec4bfcafd42a1a665a6ae6" class="chart-container" style="width:900px; height:500px;"></div> <div id="5b2562a5535d41b3a5b4a75c5b197624" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_08650cf04dec4bfcafd42a1a665a6ae6 = echarts.init( var chart_5b2562a5535d41b3a5b4a75c5b197624 = echarts.init(
document.getElementById('08650cf04dec4bfcafd42a1a665a6ae6'), 'white', {renderer: 'canvas'}); document.getElementById('5b2562a5535d41b3a5b4a75c5b197624'), 'white', {renderer: 'canvas'});
var option_08650cf04dec4bfcafd42a1a665a6ae6 = { var option_5b2562a5535d41b3a5b4a75c5b197624 = {
"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": "\u6210\u7ee9\u8d70\u52bf\u56fe",
"subtext": "\u9ad8254\u73ed\u6570\u5b66\u6210\u7ee9"
}
}; };
chart_08650cf04dec4bfcafd42a1a665a6ae6.setOption(option_08650cf04dec4bfcafd42a1a665a6ae6); chart_5b2562a5535d41b3a5b4a75c5b197624.setOption(option_5b2562a5535d41b3a5b4a75c5b197624);
</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