문제

I have an issue with generating PDF using wkhtmltopdf. It's very similar to the case described here, except first few charts are rendered fine, but after page break, each next is rendered without strokes - no axis, no ticks, no legend borders, etc. Then third page with the rest of the charts is rendered fine.

Also -webkit-border-radius: 1px, described here didn't work:

Does anyone knows how to resolve this?

도움이 되었습니까?

해결책

After two days I found the problem :

Demo with my case :

HTML :

<div class="graph">
 <div id="chart" style="width: 535px; height:275px;"><!-- chart render here --></div>
</div>

and CSS :

.graph {
    position: relative;
}

Do not put the css position to "relative" and the chart will be correct on your pdf. Check on your code if the parent div is not on "relative".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top