Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
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
赵啸非
attendance-performance-platform
Commits
1d0db3ee
Commit
1d0db3ee
authored
Jul 05, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推
parent
7c1922b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
attendance-performance-manager-ui/admin/src/views/staff/perform/stat/components/BarCharts.vue
...min/src/views/staff/perform/stat/components/BarCharts.vue
+17
-0
attendance-performance-manager-ui/admin/src/views/staff/perform/stat/components/LineCharts.vue
...in/src/views/staff/perform/stat/components/LineCharts.vue
+1
-0
No files found.
attendance-performance-manager-ui/admin/src/views/staff/perform/stat/components/BarCharts.vue
View file @
1d0db3ee
...
@@ -71,6 +71,7 @@ export default {
...
@@ -71,6 +71,7 @@ export default {
bottom
:
"
2%
"
,
bottom
:
"
2%
"
,
containLabel
:
true
,
containLabel
:
true
,
},
},
// color:[ "#61a0a8",],
yAxis
:
{},
yAxis
:
{},
series
:
[
series
:
[
{
{
...
@@ -78,6 +79,22 @@ export default {
...
@@ -78,6 +79,22 @@ export default {
type
:
"
bar
"
,
type
:
"
bar
"
,
data
:
[
5
,
20
,
36
,
10
,
10
,
20
],
data
:
[
5
,
20
,
36
,
10
,
10
,
20
],
itemStyle
:
{
itemStyle
:
{
normal
:
{
//这里是重点
color
:
function
(
params
)
{
//注意,如果颜色太少的话,后面颜色不会自动循环,最好多定义几个颜色
var
colorList
=
[
"
#c23531
"
,
"
#2f4554
"
,
"
#61a0a8
"
,
"
#d48265
"
,
"
#91c7ae
"
,
"
#749f83
"
,
"
#ca8622
"
,
];
return
colorList
[
params
.
dataIndex
];
},
},
lineStyle
:
{
lineStyle
:
{
type
:
"
dotted
"
,
//'dotted'虚线 'solid'实线
type
:
"
dotted
"
,
//'dotted'虚线 'solid'实线
},
},
...
...
attendance-performance-manager-ui/admin/src/views/staff/perform/stat/components/LineCharts.vue
View file @
1d0db3ee
...
@@ -56,6 +56,7 @@ export default {
...
@@ -56,6 +56,7 @@ export default {
},
},
},
},
tooltip
:
{},
tooltip
:
{},
color
:[
"
#61a0a8
"
,],
xAxis
:
{
xAxis
:
{
type
:
"
category
"
,
type
:
"
category
"
,
data
:
[
"
部门1
"
,
"
部门2
"
,
"
部门3
"
,
"
部门4
"
,
"
部门5
"
,
"
部门6
"
],
data
:
[
"
部门1
"
,
"
部门2
"
,
"
部门3
"
,
"
部门4
"
,
"
部门5
"
,
"
部门6
"
],
...
...
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