簡體   English   中英

將 Highcharts 圖表添加到 draw2d canvas

[英]Adding Highcharts chart to draw2d canvas

我想知道是否有辦法將用Highcharts制作的圖表添加到draw2d canvas 中。 I tried to use the class made to import external SVG SVGFigure , but it seems like the SVG is too complex to be used with this class according to this and my test .

draw2d.SVGFigure;

謝謝你的建議:)

我想出了一個解決方案,將 svg 轉換為圖像並使用draw2d中的 SetFigure class將其插入 canvas 中。

draw2d.SetFigure;

您可以在此處找到使用 canvg 或使用 vanilla js 的實現示例。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM