Fix: show minus record for start

This commit is contained in:
2019-09-26 18:20:48 +09:00
parent 76481a4caa
commit 301a057099
3 changed files with 58 additions and 16 deletions
+9 -6
View File
@@ -168,6 +168,8 @@ var Start = {
var underValue = historyRecordManager.underValueForGraph();
var upperValue = historyRecordManager.upperValueForGraph();
console.log("underValue : " + underValue);
console.log("upperValue : " + upperValue);
var minValue = underValue - (upperValue - underValue) / 10;
var maxValue = upperValue;// + (upperValue - underValue) / 10;
@@ -178,12 +180,13 @@ var Start = {
// break;
var historyRecord = historyRecordManager.getAt(i);
this.chart.drawRecordGraph(
i,
historyRecord === undefined ? "-" : historyRecord.date,
historyRecord === undefined ? "" : historyRecord.bestRecord,
minValue, maxValue
);
var dateText = historyRecord === undefined ? "-" : historyRecord.date;
var record = historyRecord === undefined ? "" : historyRecord.bestRecord;
// console.log("record : " + record);
// console.log("minValue : " + minValue);
// console.log("maxValue : " + maxValue);
this.chart.drawRecordGraph(i, dateText, record, minValue, maxValue);
}
this.chart.printChartBaseLine();