diff --git a/HISTORY.md b/HISTORY.md index ec0cc1bb..7d77917e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -11,6 +11,8 @@ http://visjs.org ### Graph2d - Fixed #1630: method `getDataRange` was wrongly called `getItemRange` in docs. +- Fixed #1655: use parseFloat instead of Number.parseFloat, as the latter is + not supported in IE. Thanks @ttjoseph. ### Graph3d diff --git a/bower.json b/bower.json index 7da02ad8..2b709948 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "vis", - "main": ["dist/vis.min.js", "dist/vis.min.css"], + "main": ["dist/vis.js", "dist/vis.css"], "description": "A dynamic, browser-based visualization library.", "homepage": "http://visjs.org/", "license": ["Apache-2.0", "MIT"], 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} } };