Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
950baf62
Commit
950baf62
authored
Jul 28, 2020
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
环图样式
parent
3ee34dd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
41 deletions
+73
-41
src/components/e-charts/single_circle.vue
src/components/e-charts/single_circle.vue
+73
-41
No files found.
src/components/e-charts/single_circle.vue
View file @
950baf62
...
@@ -40,6 +40,7 @@ export default {
...
@@ -40,6 +40,7 @@ export default {
methods
:
{
methods
:
{
init_health
(
num
,
color
,
text
)
{
init_health
(
num
,
color
,
text
)
{
var
options
=
{
var
options
=
{
color
:[
color
,
'
#c9cedd
'
],
title
:
{
title
:
{
text
:
num
+
"
%
"
,
text
:
num
+
"
%
"
,
textStyle
:
{
textStyle
:
{
...
@@ -96,48 +97,79 @@ export default {
...
@@ -96,48 +97,79 @@ export default {
},
},
series
:
[
series
:
[
{
{
type
:
"
bar
"
,
type
:
'
pie
'
,
silent
:
true
,
z
:
5
,
data
:
[
center
:[
'
50%
'
,
'
50%
'
],
{
radius
:[
'
68%
'
,
'
72%
'
],
name
:
"
作文得分
"
,
silent
:
true
,
value
:
num
,
label
:
{
itemStyle
:
{
normal
:
{
normal
:
{
show
:
false
color
:
color
,
},
shadowColor
:
"
rgba(0, 0, 0, 0.2)
"
,
emphasis
:
{
shadowBlur
:
20
show
:
false
}
}
}
},
}
labelLine
:
{
],
normal
:
{
coordinateSystem
:
"
polar
"
,
show
:
false
roundCap
:
true
,
},
barWidth
:
8
,
emphasis
:
{
barGap
:
"
-100%
"
,
// 两环重叠
show
:
false
}
z
:
2
},
},
tooltip
:
{
show
:
false
},
data
:[{
name
:
''
,
value
:
num
},{
name
:
''
,
value
:
100
-
num
}]
},
{
{
// 灰色环
type
:
'
pie
'
,
type
:
"
bar
"
,
z
:
4
,
silent
:
true
,
center
:[
'
50%
'
,
'
50%
'
],
data
:
[
radius
:[
'
60%
'
,
'
80%
'
],
{
hoverAnimation
:
false
,
value
:
100
,
avoidLabelOverlap
:
false
,
itemStyle
:
{
label
:
{
color
:
"
#c9cedd
"
,
normal
:
{
shadowColor
:
"
rgba(0, 0, 0, 0.2)
"
,
show
:
false
shadowBlur
:
20
},
}
emphasis
:
{
}
show
:
false
],
}
coordinateSystem
:
"
polar
"
,
},
roundCap
:
true
,
labelLine
:
{
barWidth
:
8
,
normal
:
{
barGap
:
"
-100%
"
,
// 两环重叠
show
:
false
z
:
1
},
}
emphasis
:
{
show
:
false
}
},
tooltip
:
{
show
:
false
},
itemStyle
:
{
normal
:
{
color
:
'
#f6f7fc
'
}
},
emphasis
:{
show
:
false
,
itemStyle
:{
color
:
'
#f6f7fc
'
}
},
data
:
[{
value
:
1
,
}],
}
]
]
};
};
window
[
this
.
health
]
=
echarts
.
init
(
document
.
getElementById
(
this
.
health
));
window
[
this
.
health
]
=
echarts
.
init
(
document
.
getElementById
(
this
.
health
));
...
...
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