问题
I am drawing pie charts for each node as shown in the image below. For the base map (i.e nodes and their connected edge), I am using SVG image and overlaying the pie on the top of the SVG image.
Previously, I was putting the code for SVG Image in HTML and was putting the pie charts on top of that using js and d3. Now, I need to create the HTMLWidgets so that I can use it anywhere. Here, I am not able to figure out that how can I use my svg image within HTMLWidget so that I can make the exact replica. ANy leads would be appreciated. TIA
来源:https://stackoverflow.com/questions/60736116/using-svg-image-in-htmlwidget