Scale adjusted and initial starting date too.

This commit is contained in:
Luis Fernando Molina committed 2018-05-09 08:53:40 +02:00
1 parent 7a0a6f6c04
commit fc3e980ae3
3 files changed
+3 -3

No files matched your search

Binary file not shown.
+1 -1
View File
@@ -500,7 +500,7 @@
let fontSize = 10;
let label = ' ' + Math.round(j * 1000000) / 1000000;
let label = ' ' + Math.round(j * 1000000) / 1000000 / 4; // TODO This 4 is to be removed.
let labelPoint = {
x: viewPort.visibleArea.bottomRight.x + 1,
+2 -2
View File
@@ -128,7 +128,7 @@ const EARLIEST_DATE = new Date(2014, 0, 18, 4, 26, 8);
const FONT_ASPECT_RATIO = 0.60;
const CHART_ASPECT_RATIO = 1 / 10;
const INITIAL_ZOOM_LEVEL = 0; // This is the zoom level at the view port in which the APP starts.
const INITIAL_ZOOM_LEVEL = -22; // This is the zoom level at the view port in which the APP starts.
const INITIAL_TIME_PERIOD = recalculatePeriod(INITIAL_ZOOM_LEVEL);
var viewPort = newViewPort();
@@ -157,7 +157,7 @@ var newDate = new Date();
newDate.setMilliseconds(0);
newDate.setDate(newDate.getDate() - 90);
const INITIAL_DATE = new Date(2017,11,17,14,18,0,0);
const INITIAL_DATE = new Date();
var maxDate = new Date();
maxDate.setMilliseconds(0);