visa / visa-chart-components

Visa Chart Components (VCC) is an accessibility focused, framework agnostic set of data experience design systems components for the web. VCC attempts to provide a toolset to enable developers to build equal data experiences for everyone, everywhere.
https://visa.github.io/visa-chart-components/
MIT License
146 stars 27 forks source link

Self-Contained HTML File #49

Open brichard1638 opened 2 years ago

brichard1638 commented 2 years ago

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.

chris-demartini commented 2 years ago

@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.

brichard1638 commented 2 years ago

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: @.***>