Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
d79d1808
Commit
d79d1808
authored
Oct 27, 2024
by
lyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
echarts图表显示问题
parent
2fa1a9ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
21 deletions
+19
-21
HPBI003.jsp
src/main/webapp/HP/BI/HPBI003.jsp
+19
-21
No files found.
src/main/webapp/HP/BI/HPBI003.jsp
View file @
d79d1808
...
...
@@ -478,25 +478,25 @@
};
});
var
overallMax
=
-
Infinity
;
var
overallMin
=
Infinity
;
_this
.
queryZHCLInfoList
.
forEach
(
series
=>
{
series
.
data
.
forEach
(
value
=>
{
if
(
value
>
overallMax
)
{
overallMax
=
value
;
// 更新整体最大值
}
if
(
value
<
overallMin
)
{
overallMin
=
value
;
// 更新整体最小值
}
});
});
_this
.
extremes
=
{
max
:
overallMax
,
min
:
overallMin
};
console
.
log
(
'extremes'
,
_this
.
extremes
);
//
var overallMax = -Infinity;
//
var overallMin = Infinity;
//
//
_this.queryZHCLInfoList.forEach(series => {
//
series.data.forEach(value => {
//
if (value > overallMax) {
//
overallMax = value; // 更新整体最大值
//
}
//
if (value
<
overallMin
)
{
//
overallMin = value; // 更新整体最小值
//
}
//
});
//
});
//
_this.extremes = {
//
max: overallMax,
//
min: overallMin
//
};
//
//
console.log('extremes',_this.extremes);
console
.
log
(
'queryZHCLInfoArray'
,
_this
.
queryZHCLInfoList
)
_this
.
queryZHCLInfoArray
=
res
.
extAttr
.
name
;
console
.
log
(
'queryZHCLInfoArray'
,
_this
.
queryZHCLInfoArray
)
...
...
@@ -540,8 +540,6 @@
},
yAxis
:
{
type
:
'value'
,
max
:
this
.
extremes
.
max
+
1
,
min
:
this
.
extremes
.
min
,
axisLabel
:
{
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