HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 528 forks source link

External Legend doesn't work in IE #240

Open benrifkah opened 11 years ago

benrifkah commented 11 years ago

I'm having problems getting an external legend to work in IE. I'm getting no legend at all when I test in IE 10 in Browser Modes 7 - 10.

Here is a jsfiddle that uses an external legend and is based on the basic legend example.

I think it may have to do with IE security zones as mentioned in this article.

s33k3r commented 10 years ago

I can confirm this as well. External legend doesn't work in IE8, IE9, IE10 as documented.

francois-m commented 10 years ago

Dive into flotr2.js and comment line in function Flotr.DOM.node() like this: Flotr.DOM = { ... node: function(html) { var div = Flotr.DOM.create('div'), n; div.innerHTML = html; n = div.children[0]; //div.innerHTML = ''; // issue with IE return n; } It does not seem to break correct behaviour with other browsers...