Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 738effea
authored
May 06, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.60.0' into 'master'
上线合并 See merge request
!47
2 parents
79dd7494
1f9f7aa2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletions
src/pages/monitor/LineCharts.vue
src/pages/monitor/LineCharts.vue
View file @
738effe
...
@@ -39,11 +39,33 @@ export default {
...
@@ -39,11 +39,33 @@ export default {
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
barLineDom
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
barLineDom
)
},
},
methods
:
{
methods
:
{
getLeft
(
list
)
{
const
maxNum
=
Math
.
max
(...
list
)
let
left
=
6
switch
(
true
){
case
maxNum
<
10
:
left
=
6
break
;
case
maxNum
<
100
:
left
=
9
break
;
case
maxNum
<
1000
:
left
=
12
break
;
case
maxNum
<
10000
:
left
=
15
break
;
default
:
left
=
18
break
;
}
return
`
${
left
}
%`
},
drawBarLine
()
{
drawBarLine
()
{
this
.
barLineOptions
=
{
this
.
barLineOptions
=
{
grid
:
{
grid
:
{
right
:
'5%'
,
right
:
'5%'
,
left
:
`
${
this
.
linetype
==
1
?
'13%'
:
'5%'
}
`
left
:
this
.
getLeft
(
this
.
dataList
||
[
0
])
},
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
...
...
Write
Preview
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