You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
wkhtmltopdf version(s) affected: 0.12.6
OS information
Win 10
Description
I use wkhtmltopdf to render a chart.js page, there is chart rendered, but not correct, just like the example
Web's correct chart
Pdf's wrong chart:
the line is in wrong place, don't know why
is there any setting i missed?
here is my html code
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script>
<div style="width: 1000px;"> <canvas id="canvas" style="width: 1000px;"></canvas> </div>
`<script type="text/javascript">
(function (setLineDash) {
CanvasRenderingContext2D.prototype.setLineDash = function () {
if (!arguments[0].length) {
arguments[0] = [1, 0];
}
// Now, call the original method
return setLineDash.apply(this, arguments);
};
})(CanvasRenderingContext2D.prototype.setLineDash);
Function.prototype.bind = Function.prototype.bind || function (thisp) {
var fn = this;
return function () {
return fn.apply(thisp, arguments);
};
};
The text was updated successfully, but these errors were encountered: