Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
86410533
authored
Aug 22, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
23ee8542
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
my_analysis.py
render.html
my_analysis.py
View file @
86410533
...
@@ -2,4 +2,5 @@ from pyecharts.charts import Bar
...
@@ -2,4 +2,5 @@ from pyecharts.charts import Bar
bar
=
Bar
()
bar
=
Bar
()
bar
.
add_xaxis
([
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
])
bar
.
add_xaxis
([
"语文"
,
"数学"
,
"英语"
,
"地理"
,
"历史"
,
"政治"
,
"生物"
,
"化学"
,
"物理"
])
bar
.
add_yaxis
(
'成绩'
,[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
])
bar
.
add_yaxis
(
'成绩'
,[
88
,
95
,
96
,
94
,
62
,
66
,
64
,
93
,
89
])
bar
.
set_global_opts
(
title_opts
=
{
'text'
:
"各科成绩图"
,
'subtext'
:
"分数"
})
bar
.
render
()
bar
.
render
()
\ No newline at end of file
render.html
View file @
86410533
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
e29c286d211c47a69796512af2ad81f3
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
6eb8fa7fb7eb4878b33182a62111df15
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
e29c286d211c47a69796512af2ad81f3
=
echarts
.
init
(
var
chart_
6eb8fa7fb7eb4878b33182a62111df15
=
echarts
.
init
(
document
.
getElementById
(
'
e29c286d211c47a69796512af2ad81f3
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
6eb8fa7fb7eb4878b33182a62111df15
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
e29c286d211c47a69796512af2ad81f3
=
{
var
option_
6eb8fa7fb7eb4878b33182a62111df15
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -87,7 +87,12 @@
...
@@ -87,7 +87,12 @@
],
],
"selected"
:
{
"selected"
:
{
"\u6210\u7ee9"
:
true
"\u6210\u7ee9"
:
true
}
},
"show"
:
true
,
"padding"
:
5
,
"itemGap"
:
10
,
"itemWidth"
:
25
,
"itemHeight"
:
14
}
}
],
],
"tooltip"
:
{
"tooltip"
:
{
...
@@ -163,9 +168,13 @@
...
@@ -163,9 +168,13 @@
}
}
}
}
}
}
]
],
"title"
:
{
"text"
:
"\u5404\u79d1\u6210\u7ee9\u56fe"
,
"subtext"
:
"\u5206\u6570"
}
};
};
chart_
e29c286d211c47a69796512af2ad81f3
.
setOption
(
option_e29c286d211c47a69796512af2ad81f3
);
chart_
6eb8fa7fb7eb4878b33182a62111df15
.
setOption
(
option_6eb8fa7fb7eb4878b33182a62111df15
);
</script>
</script>
</body>
</body>
</html>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment