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
a634ecf0
authored
Mar 26, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
541757a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
my_analysis.py
render.html
my_analysis.py
View file @
a634ecf0
...
@@ -6,8 +6,8 @@ s2 = [95, 79, 93, 90] # 期末成绩
...
@@ -6,8 +6,8 @@ s2 = [95, 79, 93, 90] # 期末成绩
bar
=
Bar
()
bar
=
Bar
()
bar
.
add_xaxis
(
name
)
bar
.
add_xaxis
(
name
)
bar
.
add_yaxis
(
'七种成鸡'
,
s1
)
bar
.
add_yaxis
(
'七种成鸡'
,
s1
,
bar_width
=
40
)
bar
.
add_yaxis
(
'七摸成鸡'
,
s2
)
bar
.
add_yaxis
(
'七摸成鸡'
,
s2
,
bar_width
=
40
)
bar
.
render
()
bar
.
render
()
...
...
render.html
View file @
a634ecf0
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
35db970e54cf453ab8cb539ce094f09a
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
dcdea365b01a41d49ddc450866ee4015
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
35db970e54cf453ab8cb539ce094f09a
=
echarts
.
init
(
var
chart_
dcdea365b01a41d49ddc450866ee4015
=
echarts
.
init
(
document
.
getElementById
(
'
35db970e54cf453ab8cb539ce094f09a
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
dcdea365b01a41d49ddc450866ee4015
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
35db970e54cf453ab8cb539ce094f09a
=
{
var
option_
dcdea365b01a41d49ddc450866ee4015
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
88
88
],
],
"showBackground"
:
false
,
"showBackground"
:
false
,
"barWidth"
:
40
,
"barMinHeight"
:
0
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
"barGap"
:
"30%"
,
...
@@ -85,6 +86,7 @@
...
@@ -85,6 +86,7 @@
90
90
],
],
"showBackground"
:
false
,
"showBackground"
:
false
,
"barWidth"
:
40
,
"barMinHeight"
:
0
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
"barGap"
:
"30%"
,
...
@@ -184,7 +186,7 @@
...
@@ -184,7 +186,7 @@
}
}
]
]
};
};
chart_
35db970e54cf453ab8cb539ce094f09a
.
setOption
(
option_35db970e54cf453ab8cb539ce094f09a
);
chart_
dcdea365b01a41d49ddc450866ee4015
.
setOption
(
option_dcdea365b01a41d49ddc450866ee4015
);
</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