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,
175.6,182.2,48.7,18.8,6.0,2.3]
line.add_xaxis(x)
line.add_yaxis("降水量",y1)
line.set_global_opts({"text":"年降水量","subtext":"单位:毫米"})
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] # 小杰
student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮
line = Line()
line.add_xaxis(test)
line.add_yaxis("student1",student1)
line.add_yaxis("student2",student2)
line.add_yaxis("student3",student3)
line.add_yaxis("聪聪",student1)
line.add_yaxis("小杰",student2)
line.add_yaxis("皮皮",student3)
line.render()
\ No newline at end of file
......@@ -7,11 +7,11 @@
</head>
<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>
var chart_97b48612e5c142eabcb83aef97d09bd9 = echarts.init(
document.getElementById('97b48612e5c142eabcb83aef97d09bd9'), 'white', {renderer: 'canvas'});
var option_97b48612e5c142eabcb83aef97d09bd9 = {
var chart_d0b24c7d3b9245c8be85e549d66a3124 = echarts.init(
document.getElementById('d0b24c7d3b9245c8be85e549d66a3124'), 'white', {renderer: 'canvas'});
var option_d0b24c7d3b9245c8be85e549d66a3124 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -133,7 +133,12 @@
],
"selected": {
"\u964d\u6c34\u91cf": true
}
},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
}
],
"tooltip": {
......@@ -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>
</body>
</html>
......@@ -7,11 +7,11 @@
</head>
<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>
var chart_955c2db251174535a998a4421da744ef = echarts.init(
document.getElementById('955c2db251174535a998a4421da744ef'), 'white', {renderer: 'canvas'});
var option_955c2db251174535a998a4421da744ef = {
var chart_08650cf04dec4bfcafd42a1a665a6ae6 = echarts.init(
document.getElementById('08650cf04dec4bfcafd42a1a665a6ae6'), 'white', {renderer: 'canvas'});
var option_08650cf04dec4bfcafd42a1a665a6ae6 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -49,7 +49,7 @@
"series": [
{
"type": "line",
"name": "student1",
"name": "\u806a\u806a",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
......@@ -119,7 +119,7 @@
},
{
"type": "line",
"name": "student2",
"name": "\u5c0f\u6770",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
......@@ -189,7 +189,7 @@
},
{
"type": "line",
"name": "student3",
"name": "\u76ae\u76ae",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
......@@ -261,14 +261,14 @@
"legend": [
{
"data": [
"student1",
"student2",
"student3"
"\u806a\u806a",
"\u5c0f\u6770",
"\u76ae\u76ae"
],
"selected": {
"student1": true,
"student2": true,
"student3": true
"\u806a\u806a": true,
"\u5c0f\u6770": true,
"\u76ae\u76ae": true
}
}
],
......@@ -348,7 +348,7 @@
}
]
};
chart_955c2db251174535a998a4421da744ef.setOption(option_955c2db251174535a998a4421da744ef);
chart_08650cf04dec4bfcafd42a1a665a6ae6.setOption(option_08650cf04dec4bfcafd42a1a665a6ae6);
</script>
</body>
</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