Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
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
front-end-dev
techbook
Commits
de8b2893
Commit
de8b2893
authored
Dec 01, 2019
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业第二屏
parent
3c6feb8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
8 deletions
+64
-8
busSecondScreen.vue
src/views/report/busSecondScreen.vue
+64
-8
No files found.
src/views/report/busSecondScreen.vue
View file @
de8b2893
...
@@ -98,12 +98,24 @@
...
@@ -98,12 +98,24 @@
data
:
[
1232
,
400
],
data
:
[
1232
,
400
],
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
color
:
'#FFB822'
,
//设置柱子颜色
color
:
function
(
params
)
{
let
colorList
=
[
"#FFB822"
,
"#0ABB87"
,
];
return
colorList
[
params
.
dataIndex
];
//设置柱子颜色
},
label
:
{
label
:
{
show
:
true
,
//柱子上显示值
show
:
true
,
//柱子上显示值
position
:
'right'
,
//值在柱子上方显示
position
:
'right'
,
//值在柱子上方显示
textStyle
:
{
textStyle
:
{
color
:
'#FFB822'
//值得颜色
color
:
function
(
params
)
{
let
colorList
=
[
"#FFB822"
,
"#0ABB87"
,
];
return
colorList
[
params
.
dataIndex
];
//设置柱子颜色
},
}
}
},
},
barBorderRadius
:[
0
,
10
,
10
,
0
],
// 设置柱状图圆角
barBorderRadius
:[
0
,
10
,
10
,
0
],
// 设置柱状图圆角
...
@@ -118,12 +130,28 @@
...
@@ -118,12 +130,28 @@
data
:
[
1632
,
2842
,
1432
,
2012
],
data
:
[
1632
,
2842
,
1432
,
2012
],
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
color
:
'#FFB822'
,
//设置柱子颜色
color
:
function
(
params
)
{
let
colorList
=
[
"#FFB822"
,
"#5D78FF"
,
"#0ABB87"
,
"#FD387A"
];
return
colorList
[
params
.
dataIndex
];
//设置柱子颜色
},
//设置柱子颜色
label
:
{
label
:
{
show
:
true
,
//柱子上显示值
show
:
true
,
//柱子上显示值
position
:
'right'
,
//值在柱子上方显示
position
:
'right'
,
//值在柱子上方显示
textStyle
:
{
textStyle
:
{
color
:
'#FFB822'
//值得颜色
color
:
function
(
params
)
{
let
colorList
=
[
"#FFB822"
,
"#5D78FF"
,
"#0ABB87"
,
"#FD387A"
];
return
colorList
[
params
.
dataIndex
];
//设置柱子颜色
},
//设置柱子颜色
}
}
},
},
barBorderRadius
:[
0
,
10
,
10
,
0
],
// 设置柱状图圆角
barBorderRadius
:[
0
,
10
,
10
,
0
],
// 设置柱状图圆角
...
@@ -138,12 +166,26 @@
...
@@ -138,12 +166,26 @@
data
:
[
2352
,
1222
,
872
],
data
:
[
2352
,
1222
,
872
],
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
color
:
'#FFB822'
,
//设置柱子颜色
color
:
function
(
params
)
{
let
colorList
=
[
"#FFB822"
,
"#5D78FF"
,
"#0ABB87"
,
];
return
colorList
[
params
.
dataIndex
];
//设置柱子颜色
},
//设置柱子颜色
label
:
{
label
:
{
show
:
true
,
//柱子上显示值
show
:
true
,
//柱子上显示值
position
:
'right'
,
//值在柱子上方显示
position
:
'right'
,
//值在柱子上方显示
textStyle
:
{
textStyle
:
{
color
:
'#FFB822'
//值得颜色
color
:
function
(
params
)
{
let
colorList
=
[
"#FFB822"
,
"#5D78FF"
,
"#0ABB87"
,
];
return
colorList
[
params
.
dataIndex
];
//设置柱子颜色
},
//设置柱子颜色
}
}
},
},
barBorderRadius
:[
0
,
10
,
10
,
0
],
// 设置柱状图圆角
barBorderRadius
:[
0
,
10
,
10
,
0
],
// 设置柱状图圆角
...
@@ -158,12 +200,26 @@
...
@@ -158,12 +200,26 @@
data
:
[
18743
,
9923
,
12549
],
data
:
[
18743
,
9923
,
12549
],
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
color
:
'#FFB822'
,
//设置柱子颜色
color
:
function
(
params
)
{
let
colorList
=
[
"#FFB822"
,
"#5D78FF"
,
"#0ABB87"
,
];
return
colorList
[
params
.
dataIndex
];
//设置柱子颜色
},
//设置柱子颜色
label
:
{
label
:
{
show
:
true
,
//柱子上显示值
show
:
true
,
//柱子上显示值
position
:
'right'
,
//值在柱子上方显示
position
:
'right'
,
//值在柱子上方显示
textStyle
:
{
textStyle
:
{
color
:
'#FFB822'
//值得颜色
color
:
function
(
params
)
{
let
colorList
=
[
"#FFB822"
,
"#5D78FF"
,
"#0ABB87"
,
];
return
colorList
[
params
.
dataIndex
];
//设置柱子颜色
},
//设置柱子颜色
}
}
},
},
barBorderRadius
:[
0
,
10
,
10
,
0
],
// 设置柱状图圆角
barBorderRadius
:[
0
,
10
,
10
,
0
],
// 设置柱状图圆角
...
...
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