是否可以在 wicked_pdf 中使用 jQuery 来渲染图表?
我想在 wicked_pdf 生成的 PDF 中渲染由使用 jQuery 的 HighCharts 创建的图表。我查看了插件网站,似乎有办法做到这一点,但我做不到弄清楚。我的图表在常规 html 视图中运行良好。也许这是不可能的?
I want to render graphs created by HighCharts, which used jQuery, in the PDF that wicked_pdf generates. I've looked at the plugin website and it seems like there is a way to do it, I just can't figure it out. My charts work fine in the regular html view. Maybe it's not possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也必须调整视图中的宽度,它在我的 html 视图中看起来很好,但由于某种原因,pdf 中的宽度非常小。一旦我将视图和动画中的宽度设置为 false,它就像一个魅力。
I had to adjust the width in the view too, it looked fine in my html view but for some reason the width was very small in the pdf. Once I set the width in the view and animation to false it worked like a charm.