From f5a2e394c86df31b6baf47cf22a1e3ac9194bd5c Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sat, 20 Feb 2016 08:44:25 -0500 Subject: [PATCH] Fix radius 0 --- src/elements/element.point.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/elements/element.point.js b/src/elements/element.point.js index 12d09f557..90a97ca7b 100644 --- a/src/elements/element.point.js +++ b/src/elements/element.point.js @@ -60,14 +60,14 @@ module.exports = function(Chart) { return; } - if (vm.radius > 0 || vm.borderWidth > 0) { + if (!isNaN(vm.radius) && vm.radius > 0) { ctx.strokeStyle = vm.borderColor || Chart.defaults.global.defaultColor; - ctx.lineWidth = vm.borderWidth || Chart.defaults.global.elements.point.borderWidth; + ctx.lineWidth = helpers.getValueOrDefault(vm.borderWidth, Chart.defaults.global.elements.point.borderWidth); ctx.fillStyle = vm.backgroundColor || Chart.defaults.global.defaultColor; - var radius = vm.radius || Chart.defaults.global.elements.point.radius; + var radius = vm.radius; var xOffset; var yOffset; -- 2.47.2