diff --git a/src/game/lib/chart.js b/src/game/lib/chart.js index 49410fb..de034cb 100644 --- a/src/game/lib/chart.js +++ b/src/game/lib/chart.js @@ -23,7 +23,7 @@ Chart.prototype.drawRecordGraph = function(index, date, bestRecord, min, max) { this.drawText( posX, posY - Chart.CHART_HEIGHT - Chart.CHART_RECORD_OFFSET_Y, - StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID), + StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID) ); // chart diff --git a/src/game/lib/history_record_manager.js b/src/game/lib/history_record_manager.js index ccc313d..a583881 100644 --- a/src/game/lib/history_record_manager.js +++ b/src/game/lib/history_record_manager.js @@ -72,7 +72,11 @@ HistoryRecordManager.prototype.upperValueForGraph = function() { HistoryRecordManager.prototype.getBestRecordArray = function() { var numberArray = []; - for(var data of this.historyRecords) { + // for(var data of this.historyRecords) { + // numberArray.push(data.bestRecord); + // } + for(var i = 0; i < this.historyRecords.count; i++) { + var data = this.historyRecords[i]; numberArray.push(data.bestRecord); } return numberArray;