[BUG] Time scale line charts do render the data-set lines in Internet Explorer 10 and 11. The axis does however reflect the data-sets.
@mgsmith57 I don't have access to ie11 at the moment. Does http://www.chartjs.org/samples/master/scales/time/line.html work on IE11? That's the latest build from the master branch
Yes it does.
Awesome! I think the issue is that in 2.6 we used Number. MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER which have been fixed to fallback if they don't exist.
Adding these lines before you include Chart.js should be sufficient
Number.MAX_SAFE_INTEGER = Number. MAX_SAFE_INTEGER || 9007199254740991
Number.MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991
That did the trick. Thanks for the quick resolution.
Thanks
What about a PR ? I lost 1 hour to understand what was the problem
HI
Where should I add these lines exactly in .ts file.
Number.MAX_SAFE_INTEGER = Number. MAX_SAFE_INTEGER || 9007199254740991
Number.MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991
In Angular ts file I am getting this error on adding anywhere
Compilation Error: Cannot assign to 'MAX_SAFE_INTEGER' because it is a constant or a read-only property.
Thanks
@saharemanish make sure your dates are formatted correctly. IE (and Firefox) have issues with the format of your string in new Date(). Mine was working correctly in every browser except IE.
(https://stackoverflow.com/questions/13091523/javascript-invalid-date-error-in-internet-explorer)