getMaxVolume()
This commit is contained in:
1 parent
f12a84e85a
commit
177276ea16
2 files changed
+18
-1
No files matched your search
Binary file not shown.
+18
-1
@@ -388,7 +388,7 @@
|
||||
|
||||
let timePeriodRatio = ONE_DAY_IN_MILISECONDS / timePeriod;
|
||||
|
||||
maxValue.y = marketFile.maxVolume() / (timePeriodRatio / 10);
|
||||
maxValue.y = getMaxVolume() / (timePeriodRatio / 10);
|
||||
|
||||
plotArea.initializeY(
|
||||
minValue,
|
||||
@@ -402,6 +402,23 @@
|
||||
thisObject.container.frame.height
|
||||
);
|
||||
|
||||
function getMaxVolume() {
|
||||
|
||||
let maxValue = 0;
|
||||
|
||||
for (var i = 0; i < marketFile.length; i++) {
|
||||
|
||||
let currentMax = marketFile[i][0] + marketFile[i][1];
|
||||
|
||||
if (maxValue < currentMax) {
|
||||
maxValue = currentMax;
|
||||
}
|
||||
}
|
||||
|
||||
return maxValue;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function plotChart() {
|
||||
|
||||
Reference in new issue
Block a user