Closed sneumann closed 5 years ago
Confirmed with
phantomjs .../github/webshot/inst/webshot.js '[{"url":"file:///.../vn.html","file":"vn-phantomjs.png"}]'
Also no difference between node attributes color
and the color.background
used above.
@sneumann Can you try out https://github.com/rstudio/webshot2 and see if it works for you?
Thanks Winston, that worked. Yours, Steffen
Hi, I have a graph with
visNetwork
that looks great as HTML in Browser, but very poor as PNG afterwebshot
, colors and transparency are gone, see pictures at the end. The code isThis is particularly annoying as in more crowded networks the text labels are underneath the nodes, and not readable without transparency. The colors work nicely if there is no transparency:
rgb(0, 200, 0, max = 255)
.1) How to get color + transparency into webshot PNGs ? 2) How to get the labels atop of the nodes in case of overlap ?
Thanks in advance, yours, Steffen