如何将 svg 写入 Highcharts.Renderer 对象?
我使用 highcharts 来绘制图表,我喜欢它。我有一个页面,上面有 4 个图表。我想使用 Highcharts.Renderer 将所有 4 个图表合并到一个 Renderer 对象中,以打印它们和/或将它们导出为一张图像。我可以看到如何将 svg 图像从磁盘添加到 Highcharts.Renderer,但编写 svg 然后再次读取它似乎是一个浪费的步骤,因为我的文档中已经有 svg。有办法做到这一点吗?
I'm using highcharts for charting and I love it. I have a page that has 4 charts on it. I'd like to use the Highcharts.Renderer to combine all 4 charts into one Renderer object to print them and/or export them as one image. I can see how to add a svg image from disk to the Highcharts.Renderer, but it seems like a wasted step to write the svg and then read it again, since I already have the svg in my doc. Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将所有 4 个图表合并为一个对象,以将它们打印或导出为一张图像
以下网址演示了一个完美的解决方案 http://jsfiddle.net/highcharts/gd7bB/1/
To combine all 4 charts into one object to print or export them as one image
the following URL demonstrates a perfect solution http://jsfiddle.net/highcharts/gd7bB/1/