Open benrifkah opened 11 years ago
I can confirm this as well. External legend doesn't work in IE8, IE9, IE10 as documented.
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...
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.