sunjavagroups / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Line and Bars missing on initial load in IE8 #568

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Since updating to the .7 release I have noticed that when loading charts for 
the first time in IE8 the line and bars do not appear.

The rollover is showing correctly but grid and lines and bars are transparent 
or do not exist.

Any method used to update the chart or re-render will show all correct 
information.

If I backtrack to .6 release it loads correctly every time.

Any thoughts.  I do manipulation to the labels after render but this works in 
both .7 and .6. 

Original issue reported on code.google.com by drewbr...@gmail.com on 7 Jul 2011 at 7:43

GoogleCodeExporter commented 8 years ago
I had the same issue....Pie Chart works fine but lines or bars graphs doesn't 
work fine. I realized the rollover works, but it's over transparent points

Original comment by fernande...@gmail.com on 21 Sep 2011 at 12:05

GoogleCodeExporter commented 8 years ago
I have found a work around for this.  It appears that in another post and issue 
on here someone was having issues with jquery and document ready event.

So the work around is to onload or first run of the plot.  Just stall it for 1 
second.
This worked in my case so was easy to get around for now.  I really hope that 
someone actually fixes it or comments on a better approach.

var drawTimer = setTimeout(function() {
     var plot = $.plot($(divChartArea), data, options);       
}, 1000);

This will basically just load the chart 1 second later.  Allowing the 
document.ready issue to not affect it or everything else on the dom to be 
populated still not sure which but got me past the issue for now.

Original comment by drewbr...@gmail.com on 21 Sep 2011 at 3:42

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 9:39

GoogleCodeExporter commented 8 years ago
same problem was that I had initially set css rule: display: none,(for parent 
div) when document initiali loads) lines dont show.
Init plugin (Chart), on the same event where you triger <div to show up like:
(jQuery)
first:
divObject.show(); or slideDown() - that was hidden
after:
var plot = $.plot('#div_id

flot - .7 release
IE8

Original comment by son...@gmail.com on 4 Sep 2012 at 8:42