From 68ec9905e167e09986aa2352a8b36c5b10fe9794 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 31 Jan 2020 12:11:36 +0100 Subject: [PATCH] bug fixed --- ChartsSpace/CoordinateSystem.js | 1 - Plotter.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ChartsSpace/CoordinateSystem.js b/ChartsSpace/CoordinateSystem.js index a8757a1b7..6edfffcab 100644 --- a/ChartsSpace/CoordinateSystem.js +++ b/ChartsSpace/CoordinateSystem.js @@ -69,7 +69,6 @@ function newCoordinateSystem () { thisObject.scale.y = thisObject.maxHeight / (thisObject.max.y - thisObject.min.y) thisObject.eventHandler.raiseEvent('Scale Changed') - console.log('Scale Changed') } function initializeX (minValue, maxValue, maxWidth) { diff --git a/Plotter.js b/Plotter.js index d3797b9f7..8df54aa92 100644 --- a/Plotter.js +++ b/Plotter.js @@ -282,7 +282,7 @@ function newPlotter () { if ( (record.begin >= farLeftDate.valueOf() && record.end <= farRightDate.valueOf()) && - (record.begin >= coordinateSystem.min.x && record.end <= coordinateSystem.max.x) + (record.end >= coordinateSystem.min.x && record.begin <= coordinateSystem.max.x) ) { record.previous = previous jsonifiedArray.push(record)