Fix: show minus record for start
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user