Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
Project
Project
Details
Activity
Releases
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
张伯涛
cust_web
Commits
af48574d
Commit
af48574d
authored
Feb 15, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改样式
parent
158e4040
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
24 deletions
+40
-24
control.vue
src/views/controlPlatform/control.vue
+40
-24
No files found.
src/views/controlPlatform/control.vue
View file @
af48574d
...
...
@@ -512,12 +512,9 @@ export default {
x
:
'center'
,
y
:
'bottom'
,
data
:
[
'通过数'
,
'未通过数'
],
// 图例之间的间距
itemGap
:
20
,
// 图标高度
itemHeight
:
12
,
textStyle
:
{
// 字体大小
fontSize
:
13
}
},
...
...
@@ -528,16 +525,28 @@ export default {
yAxis
:
{
type
:
'value'
},
series
:
[{
series
:
[
{
name
:
'通过数'
,
data
:
this
.
commitLists
.
map
(
item
=>
item
.
data
),
type
:
'line'
type
:
'line'
,
label
:
{
show
:
true
,
// 显示标签
position
:
'top'
,
// 标签位置
formatter
:
'{c}'
// 显示数据值
}
},
{
name
:
'未通过数'
,
data
:
this
.
passLists
.
map
(
item
=>
item
.
data
),
type
:
'line'
}]
type
:
'line'
,
label
:
{
show
:
true
,
// 显示标签
position
:
'top'
,
// 标签位置
formatter
:
'{c}'
// 显示数据值
}
}
]
}
myChartRegistrationTime
.
setOption
(
optionRegistrationTime
)
},
...
...
@@ -555,7 +564,7 @@ export default {
const
myChartAverage
=
echarts
.
init
(
document
.
getElementById
(
'dataCharts_leaveMessage'
))
const
optionAverage
=
{
tooltip
:
{
trigger
:
'item'
// 设置为 'item' 以便每个点都能触发
提示框
show
:
false
// 关闭
提示框
},
legend
:
{
left
:
'center'
,
...
...
@@ -576,7 +585,7 @@ export default {
name
:
{
textStyle
:
{
color
:
'#333'
,
fontSize
:
'1
4
px'
fontSize
:
'1
2
px'
}
}
},
...
...
@@ -587,6 +596,14 @@ export default {
color
:
'rgba(69, 188, 243, 0.8)'
,
// 蓝色填充,带透明度
opacity
:
0.8
// 也可以直接设置opacity属性来控制透明度
},
label
:
{
show
:
true
,
// 显示标签
formatter
:
function
(
params
)
{
return
params
.
value
// 在端点处显示数值
},
color
:
'#333'
,
// 标签文字颜色
fontSize
:
12
// 标签文字大小
},
data
:
[
// 只有一个系列,因此只需要一个数据项
{
value
:
activityData
.
map
(
item
=>
item
.
value
),
// 仅传递数值
...
...
@@ -613,9 +630,6 @@ export default {
// 配置项
const
optionEnter
=
{
tooltip
:
{
trigger
:
'item'
},
color
:
colors
,
// 提供颜色数组
legend
:
{
left
:
'center'
,
...
...
@@ -631,12 +645,14 @@ export default {
type
:
'pie'
,
radius
:
'50%'
,
data
:
visitCount
,
emphasis
:
{
itemStyle
:
{
shadowBlur
:
10
,
shadowOffsetX
:
0
,
shadowColor
:
'rgba(0, 0, 0, 0.5)'
}
label
:
{
show
:
true
,
// 显示标签
position
:
'inside'
,
// 标签位置为内部
formatter
:
'{c}'
,
// 格式化标签内容,显示名称、值
fontSize
:
14
// 字体大小
},
labelLine
:
{
show
:
false
// 不显示连接线
}
}
]
...
...
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