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
44bcfc18
authored
Sep 03, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
33549a1e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
121 deletions
123.html
my_analysis.py
123.html
View file @
44bcfc18
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
6ce4109c9c3f4750a6f7edb3fe199673
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
7acb96dd69ea4dabac82d98583253795
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
6ce4109c9c3f4750a6f7edb3fe199673
=
echarts
.
init
(
var
chart_
7acb96dd69ea4dabac82d98583253795
=
echarts
.
init
(
document
.
getElementById
(
'
6ce4109c9c3f4750a6f7edb3fe199673
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
7acb96dd69ea4dabac82d98583253795
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
6ce4109c9c3f4750a6f7edb3fe199673
=
{
var
option_
7acb96dd69ea4dabac82d98583253795
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -46,74 +46,11 @@
...
@@ -46,74 +46,11 @@
"#6950a1"
,
"#6950a1"
,
"#918597"
"#918597"
],
],
"series"
:
[
"series"
:
[],
{
"type"
:
"bar"
,
"name"
:
"\u671f\u4e2d"
,
"legendHoverLink"
:
true
,
"data"
:
[
92
,
95
,
82
,
88
],
"showBackground"
:
false
,
"barWidth"
:
40
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
"large"
:
false
,
"largeThreshold"
:
400
,
"seriesLayoutBy"
:
"column"
,
"datasetIndex"
:
0
,
"clip"
:
true
,
"zlevel"
:
0
,
"z"
:
2
,
"label"
:
{
"show"
:
true
,
"position"
:
"top"
,
"margin"
:
8
}
},
{
"type"
:
"bar"
,
"name"
:
"\u671f\u672b"
,
"legendHoverLink"
:
true
,
"data"
:
[
95
,
79
,
93
,
90
],
"showBackground"
:
false
,
"barWidth"
:
40
,
"barMinHeight"
:
0
,
"barCategoryGap"
:
"20%"
,
"barGap"
:
"30%"
,
"large"
:
false
,
"largeThreshold"
:
400
,
"seriesLayoutBy"
:
"column"
,
"datasetIndex"
:
0
,
"clip"
:
true
,
"zlevel"
:
0
,
"z"
:
2
,
"label"
:
{
"show"
:
true
,
"position"
:
"top"
,
"margin"
:
8
}
}
],
"legend"
:
[
"legend"
:
[
{
{
"data"
:
[
"data"
:
[],
"\u671f\u4e2d"
,
"selected"
:
{}
"\u671f\u672b"
],
"selected"
:
{
"\u671f\u4e2d"
:
true
,
"\u671f\u672b"
:
true
}
}
}
],
],
"tooltip"
:
{
"tooltip"
:
{
...
@@ -133,60 +70,16 @@
...
@@ -133,60 +70,16 @@
"borderWidth"
:
0
,
"borderWidth"
:
0
,
"padding"
:
5
"padding"
:
5
},
},
"xAxis"
:
[
"dataset"
:
{
{
"source"
:
[
"show"
:
true
,
92
,
"scale"
:
false
,
95
,
"nameLocation"
:
"end"
,
82
,
"nameGap"
:
15
,
88
"gridIndex"
:
0
,
"inverse"
:
false
,
"offset"
:
0
,
"splitNumber"
:
5
,
"minInterval"
:
0
,
"splitLine"
:
{
"show"
:
false
,
"lineStyle"
:
{
"show"
:
true
,
"width"
:
1
,
"opacity"
:
1
,
"curveness"
:
0
,
"type"
:
"solid"
}
},
"data"
:
[
"\u6d48\u6d48"
,
"\u806a\u806a"
,
"\u5c0f\u667a"
,
"\u6ce2\u5947"
]
]
}
}
],
"yAxis"
:
[
{
"show"
:
true
,
"scale"
:
false
,
"nameLocation"
:
"end"
,
"nameGap"
:
15
,
"gridIndex"
:
0
,
"inverse"
:
false
,
"offset"
:
0
,
"splitNumber"
:
5
,
"minInterval"
:
0
,
"splitLine"
:
{
"show"
:
false
,
"lineStyle"
:
{
"show"
:
true
,
"width"
:
1
,
"opacity"
:
1
,
"curveness"
:
0
,
"type"
:
"solid"
}
}
}
]
};
};
chart_
6ce4109c9c3f4750a6f7edb3fe199673
.
setOption
(
option_6ce4109c9c3f4750a6f7edb3fe199673
);
chart_
7acb96dd69ea4dabac82d98583253795
.
setOption
(
option_7acb96dd69ea4dabac82d98583253795
);
</script>
</script>
</body>
</body>
</html>
</html>
my_analysis.py
View file @
44bcfc18
...
@@ -7,6 +7,7 @@ bar = Bar()
...
@@ -7,6 +7,7 @@ bar = Bar()
bar
.
add_xaxis
(
subjects
)
bar
.
add_xaxis
(
subjects
)
bar
.
add_yaxis
(
"期中"
,
scores1
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期中"
,
scores1
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期末"
,
scores2
,
bar_width
=
40
)
bar
.
add_yaxis
(
"期末"
,
scores2
,
bar_width
=
40
)
bar
.
render
(
"123.html"
)
bar
.
render
(
"123.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