tdhock / animint

animated and interactive web graphics
146 stars 37 forks source link

HTML Widget bindings #50

Open srvanderplas opened 9 years ago

srvanderplas commented 9 years ago

http://www.htmlwidgets.org/develop_intro.html

We should seriously consider getting HTMLWidget bindings for animint; this might allow us to zoom, etc. and interact with other JS libraries.

There are also some really handy functions that may be useful for us: http://www.htmlwidgets.org/develop_advanced.html#dataframetod3

We may be able to simplify the rendering/conversion by using dataframetod3() instead of writing a bunch of json files.

cpsievert commented 9 years ago

The resize method does look particularly nice, but I'm not sure that gives us zooming capabilities...

timelyportfolio commented 9 years ago

Resize does not zoom. It just provided a hook to handle resize event. Happy to help in converting if you decide to do it.

cpsievert commented 9 years ago

Good to know, thanks @timelyportfolio. By any chance, can you think of other benefits of converting (we already have shiny bindings)? I might be inclined to wait a few months since we might have 2 google summer of code students and there is already lots going on on the JS side...

tdhock commented 8 years ago

at useR 2016 I discussed with @cpsievert and we decided it would probably be a good idea to make animint work with htmlwidgets, which seems to be a de facto standard.

tdhock commented 8 years ago

@faizan-khan-iit like I said during the skype today, it would be a nice contribution for the R community if you have time to get animint to work with htmlwidgets... not sure how hard that will be though. ask @cpsievert, he has some experience with that I think.

cpsievert commented 8 years ago

Creating a new htmlwidget is fairly straightforward. Here is a nice overview of how to create one -- http://www.htmlwidgets.org/develop_intro.html

faizan-khan-iit commented 8 years ago

@tdhock Sounds nice. I will try and get familiar with it in the next few days. @cpsievert Thanks!