Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3DWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐来柯
3DWeb
Commits
2348a774
Commit
2348a774
authored
Jan 06, 2022
by
徐来柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a2a0c404
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
29 deletions
+51
-29
index.js
js/index.js
+51
-29
No files found.
js/index.js
View file @
2348a774
...
...
@@ -9,40 +9,59 @@
/* 右侧第二个 */
let
rightChart2
=
echarts
.
init
(
document
.
getElementById
(
'right2'
));
let
rightOption2
=
{
color
:
'#FC962C'
,
tooltip
:
{
trigger
:
'axis'
,
axisPointer
:
{
type
:
'
shadow
'
type
:
'
none
'
}
},
grid
:
{
left
:
'3%'
,
right
:
'4%'
,
bottom
:
'3%'
,
containLabel
:
true
},
xAxis
:
{
show
:
false
,
type
:
'value'
,
boundaryGap
:
[
0
,
0.01
]
},
yAxis
:
{
type
:
'category'
,
splitLine
:
{
show
:
false
},
axisLine
:
{
show
:
false
},
axisTick
:
{
show
:
false
},
axisLabel
:
{
color
:
'#fff'
,
yAxis
:
[
{
type
:
'category'
,
inverse
:
true
,
splitLine
:
{
show
:
false
},
axisLine
:
{
show
:
false
},
axisTick
:
{
show
:
false
},
axisLabel
:
{
color
:
'#fff'
,
},
data
:
[
'类型1'
,
'类型2'
,
'类型3'
,
'类型4'
,
'类型5'
,
'类型6'
]
},
data
:
[
'类型1'
,
'类型2'
,
'类型3'
,
'类型4'
,
'类型5'
,
'类型6'
]
},
{
type
:
'category'
,
axisLine
:
{
show
:
false
},
axisTick
:
{
show
:
false
},
axisLabel
:
{
show
:
true
,
inside
:
false
,
textStyle
:
{
color
:
'#F5BD5F'
,
},
},
splitArea
:
{
show
:
false
},
splitLine
:
{
show
:
false
},
data
:
[
18203
,
23489
,
29034
,
104970
,
131744
,
630230
]
}
],
grid
:
{
top
:
0
,
left
:
60
,
...
...
@@ -51,14 +70,17 @@ let rightOption2= {
},
series
:
[
{
name
:
'2011'
,
barWidth
:
6
,
barWidth
:
4
,
showBackground
:
true
,
type
:
'bar'
,
label
:
{
show
:
true
,
color
:
'#F5BD5F'
,
position
:
'outside'
itemStyle
:
{
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
1
,
0
,
[{
offset
:
0
,
color
:
'#F1912E'
},
{
offset
:
1
,
color
:
"#ECB85F"
}],
false
),
},
data
:
[
18203
,
23489
,
29034
,
104970
,
131744
,
630230
]
}
...
...
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