I would like to display interactive figures generated by R package htmlwidgets into Tiddlywiki.
Following the tutorial, I can create a Widget to reproduce all html and load the required the js libraries, but still cannot display the figure.
I create a minimal example here to show my problem. Hope I can explain what I want to do.
After downloading all files from Github repo, I plan to reproduce the figure in the temp.html file into htmlwidgets.html.
Not sure how htmlwidgets
is working in javascript level. My guess is javascript is called according to div class echarts4r html-widget
.
I start to develop the widget using Gatha in the single html file htmlwidgets.html
.
The new widget htmlwidgets
is called in the tiddler GettingStarted
and test
In GettingStarted
, I get an error
Uncaught ReferenceError: echarts is not defined`
In test
, there are no figures to display.
I have no idea how to solve it now.
Thanks for any suggestions.