Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-system
Project
Overview
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
姜雷
dcxy-system
Commits
d03e36fb
Commit
d03e36fb
authored
May 09, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据首页饼图样式
parent
b8e5399d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
CampusRankChart.vue
src/containers/Dashboard/CampusRank/CampusRankChart.vue
+1
-13
SeviceRatioChart.vue
src/containers/Dashboard/SeviceRatio/SeviceRatioChart.vue
+16
-4
No files found.
src/containers/Dashboard/CampusRank/CampusRankChart.vue
View file @
d03e36fb
...
...
@@ -38,7 +38,7 @@ export default {
container
:
'CampusRank'
,
forceFit
:
true
,
height
:
this
.
height
-
30
,
padding
:
[
20
,
249
,
2
0
,
0
],
padding
:
[
0
,
249
,
0
,
0
],
});
this
.
chart
.
source
(
this
.
data
);
this
.
chart
.
coord
(
'theta'
,
{
...
...
@@ -81,18 +81,10 @@ export default {
width
:
'244px'
,
'max-width'
:
'244px'
,
'max-height'
:
this
.
height
-
30
+
'px'
,
right
:
0
,
},
'g2-legend-list-item'
:
{
color
:
'#333'
,
},
'g2-legend-text'
:
{
display
:
'inline-block'
,
width
:
'100px'
,
overflow
:
'hidden'
,
'text-overflow'
:
'ellipsis'
,
'white-space'
:
'nowrap'
,
},
'g2-legend-marker'
:
{
width
:
'10px'
,
height
:
'5px'
,
...
...
@@ -198,10 +190,6 @@ export default {
top
:
50%
;
right
:
0
;
}
.g2-legend
{
max-height
:
270px
;
overflow-y
:
auto
;
}
.g2-legend-text
{
display
:
inline-block
;
width
:
100px
;
...
...
src/containers/Dashboard/SeviceRatio/SeviceRatioChart.vue
View file @
d03e36fb
...
...
@@ -33,7 +33,7 @@ export default {
container
:
'SeviceRatio'
,
forceFit
:
true
,
height
:
this
.
height
-
30
,
padding
:
[
0
,
2
05
,
0
,
0
],
padding
:
[
0
,
2
20
,
0
,
0
],
});
this
.
chart
.
source
(
this
.
data
);
this
.
chart
.
coord
(
'theta'
,
{
...
...
@@ -73,7 +73,8 @@ export default {
`
;
},
'g2-legend'
:
{
width
:
'200px'
,
width
:
'215px'
,
'max-width'
:
'215px'
,
// left: '-20px',
},
'g2-legend-list-item'
:
{
...
...
@@ -89,7 +90,18 @@ export default {
this
.
chartGeom
=
this
.
chart
.
intervalStack
()
.
position
(
'count'
)
.
color
(
'serviceName'
,
[
'#4e82fb'
,
'#fb774e'
,
'#ffc934'
,
'#41bf52'
]);
.
color
(
'serviceName'
,
[
'#4e82fb'
,
'#fb774e'
,
'#ffc934'
,
'#41bf52'
,
'#9b50ff'
,
'#94de70'
,
'#b5593d'
,
'#fe8787'
,
'#254eae'
,
'#2f4554'
,
]);
// 辅助元素
this
.
chart
.
guide
().
html
({
...
...
@@ -162,7 +174,7 @@ export default {
}
.g2-legend-price
{
display
:
inline-block
;
width
:
72
px
;
width
:
86
px
;
text-align
:
right
;
}
}
...
...
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