Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dangan_dataV
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e6a6dcf4
authored
2025-07-17 17:04:29 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
看版
1 parent
4ec6ed16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
9 deletions
src/viewsPc/vip/centerPage.vue
src/viewsPc/vip/centerPage.vue
View file @
e6a6dcf
...
...
@@ -1198,13 +1198,14 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => {
<span style="margin-right: 20px;">DSO</span>
${row[0]?.data?.value
}
</div>
<div style="color: #fff;font-size: 12px;">
<span style="background:${row[0].data.itemStyle.borderColor
}
;display: inline-block;width: 10px;height: 10px;border-radius: 50%;"></span>
<span style="margin-right: 20px;">天数</span>
${row[0]?.data?.day
}
</div>
`
}
// <div style="color: #fff;font-size: 12px;">
// <span style="background:$
{
row
[
0
].
data
.
itemStyle
.
borderColor
}
;
display
:
inline
-
block
;
width
:
10
px
;
height
:
10
px
;
border
-
radius
:
50
%
;
"></span>
// <span style="
margin
-
right
:
20
px
;
"
>
天数
<
/span
>
// $
{
row
[
0
]?.
data
?.
day
}
// </div>
}
,
legend
:
{
textStyle
:
{
...
...
@@ -1308,7 +1309,7 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => {
lineStyle
:
{
width
:
1
}
,
showSymbol
:
fals
e
,
showSymbol
:
tru
e
,
areaStyle
:
{
opacity
:
0.2
,
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
...
...
@@ -1325,7 +1326,20 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => {
emphasis
:
{
focus
:
'series'
}
,
data
:
arr1
data
:
arr1
,
label
:
{
show
:
true
,
position
:
'left'
,
// 起始点标签放在左侧
formatter
:
function
(
params
)
{
// 仅当为第一个数据点时显示数值
if
(
params
.
dataIndex
===
0
)
{
return
params
.
value
;
// 显示数值
}
return
''
;
// 其他点不显示
}
,
fontSize
:
12
,
color
:
'rgb(1, 191, 236)'
,
}
}
,
{
type
:
'line'
,
...
...
@@ -1334,7 +1348,7 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => {
lineStyle
:
{
width
:
1
}
,
showSymbol
:
fals
e
,
showSymbol
:
tru
e
,
areaStyle
:
{
opacity
:
0.2
,
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
...
...
@@ -1351,7 +1365,20 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => {
emphasis
:
{
focus
:
'series'
}
,
data
:
arr2
data
:
arr2
,
label
:
{
show
:
true
,
position
:
'right'
,
// 起始点标签放在左侧
formatter
:
function
(
params
)
{
// 仅当为第一个数据点时显示数值
if
(
params
.
dataIndex
===
arr2
.
length
-
2
)
{
return
params
.
value
;
// 显示数值
}
return
''
;
// 其他点不显示
}
,
fontSize
:
12
,
color
:
'rgba(21, 219, 203, 1)'
,
}
}
,
]
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment