visa-chart-components icon indicating copy to clipboard operation
visa-chart-components copied to clipboard

Self-Contained HTML File

Open brichard1638 opened this issue 3 years ago • 2 comments

You cannot save an object of class visaNodeLinkChart as a self-contained html file using the saveWidget function from the htmltools pkg; is there a reason for this? I know there are several js-based files that drive the creation of the plot, but it would really be nice if there was a way to save an object of class visaNodeLinkChart as a self-contained html file.

brichard1638 avatar Feb 09 '22 14:02 brichard1638

@brichard1638 - I think this is due to the use of the htmlwidgets package in R. I will look into this further to see if there is anything new we can do. If you can provide a simple repro of what you are trying to do and the setting (I think it is selfcontained) you are trying to leverage that would help us debug on our side as well.

chris-demartini avatar Feb 10 '22 16:02 chris-demartini

Chris::::

The general coding algorithm used in an attempt to convert an object of class visaNodeLinkChart to a self-contained HTML file is provided below. Upon executing the code, an html file is created, but when it is opened nothing appears.

library(htmlwidgets) saveWidget(widget = vnlcObj, file = "c:/linkchart.htm", selfcontained = TRUE, title = "Alluvial Chart")

Warm regards,

Brice


From: Chris DeMartini @.> Sent: Thursday, February 10, 2022 11:27 AM To: visa/visa-chart-components @.> Cc: brichard1638 @.>; Mention @.> Subject: Re: [visa/visa-chart-components] Self-Contained HTML File (Issue #49)

@brichard1638https://github.com/brichard1638 - I think this is due to the use of the htmlwidgets package in R. I will look into this further to see if there is anything new we can do. If you can provide a simple repro of what you are trying to do and the setting (I think it is selfcontained) you are trying to leverage that would help us debug on our side as well.

— Reply to this email directly, view it on GitHubhttps://github.com/visa/visa-chart-components/issues/49#issuecomment-1035126878, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASLI5UJACJPIU2BRD3OTAB3U2PRQNANCNFSM5N5TWDYA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

brichard1638 avatar Feb 10 '22 23:02 brichard1638