Highcharts不适用于wicked_pdf [英] Highcharts does not work with wicked_pdf

查看:86
本文介绍了Highcharts不适用于wicked_pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Wicked_pdf gem和Highcharts生成PDF报告. 我已经尝试将animationenableMouseTrackingshadow设置为false. 但是,当wkhtmltopdf尝试生成PDF文件时,出现了错误.

I'm trying to generate a PDF report using the Wicked_pdf gem and Highcharts. I've already tried to set animation, enableMouseTracking and shadow false. But when wkhtmltopdf tries to generated the PDF files I got an error.

我真的不做什么,因为当我对HTML执行相同的过程时,Highcharts可以完美呈现.

I really don't not what to do, because when I do the same procedure for an HTML, Highcharts renders perfectly.

推荐答案

我通过设置以下选项对其进行了修复:

I fixed it by setting this options:

plotOptions:
  line:
    animation: false
    enableMouseTracking: false
    shadow: false

此外,别忘了包含JQuery并内联样式和脚本

Also, don't forget to include JQuery and inline your styles and scripts

这篇关于Highcharts不适用于wicked_pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆