Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
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
ReactWeb5
wisdom-components
Commits
da94e314
Commit
da94e314
authored
Aug 21, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 发布历史曲线
parent
35781475
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
utils.js
packages/extend-components/EC_HistoryView/src/utils.js
+1
-5
No files found.
packages/extend-components/EC_HistoryView/src/utils.js
View file @
da94e314
...
...
@@ -576,14 +576,12 @@ const returnMaxOrMinNumber = (dataSource, type) => {
_obj = item
}
}
;
if (type === 'max') {
if (item.pv > _obj.pv) {
_obj = item
}
}
}
});
let _value = [moment(_obj.pt).valueOf(), _obj.pv];
let _img = type === 'max' ? maxIcon : minIcon;
...
...
@@ -596,10 +594,9 @@ const handleGrid = (dataSource, needUnit, leftNum, rightNum, chartType) => {
// 如果是单曲线,_grid的top需要一行的高度,用来放置最值最小值
let _base = 60;
let _topForUnit = needUnit ? 20 : 0;
let _topForValue = chartType && dataSource.length === 1 ? 50 : 0
let _topForValue = chartType && dataSource.length === 1 ? 50 : 0
;
return {
top: _base + _topForUnit + _topForValue,
// top: 200,
left: 30 + leftNum * AXIS_WIDTH,
right: rightNum === 0 ? 40 : rightNum * AXIS_WIDTH,
bottom: 60,
...
...
@@ -660,7 +657,6 @@ const returnCustomSeries = (dataSource) => {
type: 'custom',
renderItem: renderItem,
data: [_maxNumber, _minNumber],
// yAxisIndex:2
}
};
/**
...
...
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