Export to GitHub

flotr - issue #202

NPE in IE9


Posted on Aug 18, 2011 by Massive Lion

I've script which draws pie chart. It worked in almost all browsers (checked in: FF>=3, Google Chrome, IE9 (in compatible mode)) except IE9 (9.0.8112.16421, Windows 7, 32-bits). In JavaScript console window I saw following error message:

SCRIPT5007: Unable to get value of the property 'initElement': object is null or undefined flotr-0.2.0-alpha.js, line 2 character 7657

It seems that IE9 supports native canvas object so code should be fixed. I've made this fix. Fixed version is in attachment.

Attachments

Comment #1

Posted on Sep 5, 2011 by Quick Cat

This fix works for me- thanks dmitry. However on IE9 zoom does not work- I do not know yet what is the reason.

Status: New

Labels:
Type-Defect Priority-Medium