From 3885da09732bbfbe9eb1ab66994a33db9d064c49 Mon Sep 17 00:00:00 2001 From: apoorvasrinivasan Date: Thu, 11 May 2017 01:32:36 +0530 Subject: [PATCH 1/2] issue #4216 --- src/core/core.scale.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 596ccb0ea3b..4529d6ff35b 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -693,9 +693,12 @@ module.exports = function(Chart) { // apply same lineSpacing as calculated @ L#320 y += (tickFont.size * 1.5); } - } else { + } else if (!isNaN(itemToDraw.tx1)) { context.fillText(label, 0, 0); } + else { + context.fillText('', 0, 0); + } context.restore(); } }); From 5b5e6abcb2624fc657cb78058ee88fb3fd7433ed Mon Sep 17 00:00:00 2001 From: apoorvasrinivasan Date: Thu, 11 May 2017 01:41:43 +0530 Subject: [PATCH 2/2] {} fix --- src/core/core.scale.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 4529d6ff35b..ef13890e020 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -695,8 +695,7 @@ module.exports = function(Chart) { } } else if (!isNaN(itemToDraw.tx1)) { context.fillText(label, 0, 0); - } - else { + } else { context.fillText('', 0, 0); } context.restore();