From bc90ffecc8b483dcf53bf90d7442bc66ad808dbf Mon Sep 17 00:00:00 2001 From: Tom Joseph Date: Sat, 13 Feb 2016 21:51:15 -0500 Subject: [PATCH] Use parseFloat instead of Number.parseFloat Internet Explorer does not support the ES6 Number.parseFloat (see http://caniuse.com/#feat=es6-number). Instead, substitute the regular parseFloat method. --- lib/timeline/component/DataAxis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/timeline/component/DataAxis.js b/lib/timeline/component/DataAxis.js index 0f3ec598..61055666 100644 --- a/lib/timeline/component/DataAxis.js +++ b/lib/timeline/component/DataAxis.js @@ -29,12 +29,12 @@ function DataAxis (body, options, svg, linegraphOptions) { alignZeros: true, left:{ range: {min:undefined,max:undefined}, - format: function (value) {return ''+Number.parseFloat(value.toPrecision(3));}, + format: function (value) {return ''+parseFloat(value.toPrecision(3));}, title: {text:undefined,style:undefined} }, right:{ range: {min:undefined,max:undefined}, - format: function (value) {return ''+Number.parseFloat(value.toPrecision(3));}, + format: function (value) {return ''+parseFloat(value.toPrecision(3));}, title: {text:undefined,style:undefined} } };