JQplot: empty plot when printing IE

Hi I have some problems using Jqplot with IE. All the graphics I'm trying to print are empty. When I click "print preview", the graph displays correctly. But when I really print the graph, the graph does not print. Sometimes I can see some numbers on the left or right borders of the chart, for example, if there was a white div above the chart, but there is no chart.

I have the same problem with any version of IE (6.7 or 8). I have no problem with Firefox.

I have a problem even with sample files. It can be downloaded at: http://bitbucket.org/cleonello/jqplot/downloads/jquery.jqplot.0.9.7r635.zip

Then go to the "examples" directory, then select the .html file, for example, "test2.html".

One strange thing: when I try to print charts from the jqplot website, I don't have this problem ...

Does anyone already have this problem? Can you help me?

+3
source share
1 answer

Here is the solution.

https://bitbucket.org/cleonello/jqplot/issue/268/blank-chart-when-print-ie

Comment these lines in excanvas.js.

// var overlayEl = el.cloneNode (false); // Use an opaque background. //overlayEl.style.backgroundColor = 'red'; //overlayEl.style.filter = 'alpha (opacity = 0)'; //canvasElement.appendChild(overlayEl);

+3
source

Source: https://habr.com/ru/post/1773641/


All Articles