Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy2
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
78669d5e
authored
Aug 10, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
bdb79da6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
demo.html
my_analysis.py
demo.html
View file @
78669d5e
...
...
@@ -7,11 +7,11 @@
</head>
<body>
<div
id=
"e
c63cb98ff2e451c879b51122ac947de
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"e
f07165cd1704eb79c0bb19c9bc42f97
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
var
chart_e
c63cb98ff2e451c879b51122ac947de
=
echarts
.
init
(
document
.
getElementById
(
'e
c63cb98ff2e451c879b51122ac947de
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_e
c63cb98ff2e451c879b51122ac947de
=
{
var
chart_e
f07165cd1704eb79c0bb19c9bc42f97
=
echarts
.
init
(
document
.
getElementById
(
'e
f07165cd1704eb79c0bb19c9bc42f97
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_e
f07165cd1704eb79c0bb19c9bc42f97
=
{
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
...
...
@@ -21,6 +21,7 @@
"animationEasingUpdate"
:
"cubicOut"
,
"animationDelayUpdate"
:
0
,
"color"
:
[
"pink"
,
"#c23531"
,
"#2f4554"
,
"#61a0a8"
,
...
...
@@ -58,6 +59,7 @@
88
],
"showBackground"
:
false
,
"barWidth"
:
40
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
...
...
@@ -184,7 +186,7 @@
}
]
};
chart_e
c63cb98ff2e451c879b51122ac947de
.
setOption
(
option_ec63cb98ff2e451c879b51122ac947de
);
chart_e
f07165cd1704eb79c0bb19c9bc42f97
.
setOption
(
option_ef07165cd1704eb79c0bb19c9bc42f97
);
</script>
</body>
</html>
my_analysis.py
View file @
78669d5e
...
...
@@ -8,7 +8,7 @@ bar=Bar()
bar
.
add_xaxis
(
subjects
)
bar
.
add_yaxis
(
"期中"
,
scores1
)
bar
.
add_yaxis
(
"期末"
,
scores2
)
bar
.
add_yaxis
(
"期中"
,
scores1
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期末"
,
scores2
,
color
=
"pink"
)
bar
.
render
(
"demo.html"
)
\ No newline at end of file
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