Commit 58fcd372 by BellCodeEditor

save project

parent dd37cb2d
Showing with 36 additions and 24 deletions
...@@ -6,4 +6,5 @@ y1 = [2.6,5.9,9.0,26.4,28.7,76.7, ...@@ -6,4 +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.render("rain.html") line.render("rain.html")
\ No newline at end of file
...@@ -6,7 +6,7 @@ student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰 ...@@ -6,7 +6,7 @@ student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰
student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮 student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮
line = Line() line = Line()
line.add_xaxis(test) line.add_xaxis(test)
line.add_yaxis("student1",student1) line.add_yaxis("聪聪",student1)
line.add_yaxis("student2",student2) line.add_yaxis("小杰",student2)
line.add_yaxis("student3",student3) line.add_yaxis("皮皮",student3)
line.render() line.render()
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="97b48612e5c142eabcb83aef97d09bd9" class="chart-container" style="width:900px; height:500px;"></div> <div id="d0b24c7d3b9245c8be85e549d66a3124" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_97b48612e5c142eabcb83aef97d09bd9 = echarts.init( var chart_d0b24c7d3b9245c8be85e549d66a3124 = echarts.init(
document.getElementById('97b48612e5c142eabcb83aef97d09bd9'), 'white', {renderer: 'canvas'}); document.getElementById('d0b24c7d3b9245c8be85e549d66a3124'), 'white', {renderer: 'canvas'});
var option_97b48612e5c142eabcb83aef97d09bd9 = { var option_d0b24c7d3b9245c8be85e549d66a3124 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -133,7 +133,12 @@ ...@@ -133,7 +133,12 @@
], ],
"selected": { "selected": {
"\u964d\u6c34\u91cf": true "\u964d\u6c34\u91cf": true
} },
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
} }
], ],
"tooltip": { "tooltip": {
...@@ -212,9 +217,13 @@ ...@@ -212,9 +217,13 @@
} }
} }
} }
] ],
"title": {
"text": "\u5e74\u964d\u6c34\u91cf",
"subtext": "\u5355\u4f4d\uff1a\u6beb\u7c73"
}
}; };
chart_97b48612e5c142eabcb83aef97d09bd9.setOption(option_97b48612e5c142eabcb83aef97d09bd9); chart_d0b24c7d3b9245c8be85e549d66a3124.setOption(option_d0b24c7d3b9245c8be85e549d66a3124);
</script> </script>
</body> </body>
</html> </html>
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="955c2db251174535a998a4421da744ef" class="chart-container" style="width:900px; height:500px;"></div> <div id="08650cf04dec4bfcafd42a1a665a6ae6" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_955c2db251174535a998a4421da744ef = echarts.init( var chart_08650cf04dec4bfcafd42a1a665a6ae6 = echarts.init(
document.getElementById('955c2db251174535a998a4421da744ef'), 'white', {renderer: 'canvas'}); document.getElementById('08650cf04dec4bfcafd42a1a665a6ae6'), 'white', {renderer: 'canvas'});
var option_955c2db251174535a998a4421da744ef = { var option_08650cf04dec4bfcafd42a1a665a6ae6 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"series": [ "series": [
{ {
"type": "line", "type": "line",
"name": "student1", "name": "\u806a\u806a",
"connectNulls": false, "connectNulls": false,
"symbolSize": 4, "symbolSize": 4,
"showSymbol": true, "showSymbol": true,
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
}, },
{ {
"type": "line", "type": "line",
"name": "student2", "name": "\u5c0f\u6770",
"connectNulls": false, "connectNulls": false,
"symbolSize": 4, "symbolSize": 4,
"showSymbol": true, "showSymbol": true,
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
}, },
{ {
"type": "line", "type": "line",
"name": "student3", "name": "\u76ae\u76ae",
"connectNulls": false, "connectNulls": false,
"symbolSize": 4, "symbolSize": 4,
"showSymbol": true, "showSymbol": true,
...@@ -261,14 +261,14 @@ ...@@ -261,14 +261,14 @@
"legend": [ "legend": [
{ {
"data": [ "data": [
"student1", "\u806a\u806a",
"student2", "\u5c0f\u6770",
"student3" "\u76ae\u76ae"
], ],
"selected": { "selected": {
"student1": true, "\u806a\u806a": true,
"student2": true, "\u5c0f\u6770": true,
"student3": true "\u76ae\u76ae": true
} }
} }
], ],
...@@ -348,7 +348,7 @@ ...@@ -348,7 +348,7 @@
} }
] ]
}; };
chart_955c2db251174535a998a4421da744ef.setOption(option_955c2db251174535a998a4421da744ef); chart_08650cf04dec4bfcafd42a1a665a6ae6.setOption(option_08650cf04dec4bfcafd42a1a665a6ae6);
</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