yonicd / slickR

slick carousel htmlwidget for R
https://yonicd.github.io/slickR/
Other
159 stars 14 forks source link

can this be used to drive a png from visNetwork #8

Closed dockstreet closed 6 years ago

dockstreet commented 6 years ago

Hi - can images be stored and made clickable, perhaps using crosstalk to change a visNetwork graph in R? http://datastorm-open.github.io/visNetwork/nodes.html

i.e. a small graph stored in some sort of store such as rredis and then the carosel used as a history . Then the carosel could be used to drive previous plots of the network graph?

yonicd commented 6 years ago

Not quite following, but images in carousel are read from disk (be it persistent or tempfile).

what do you mean by clickable?

What you may mean is having the carousel observable in shiny?

dockstreet commented 6 years ago

Thanks for the quick response! I was wondering if the carousel could read a blob/raw image from a data frame for display.

Then perhaps be able to click on the image to drive another shiny control such as used as input to a visNetwork graph to serve as running history, maybe using https://rstudio.github.io/crosstalk/ or make it observable? In other words - slickR would be used to present a thumbnail running history of plots sourced from a data frame then the user could click on previous plot to redraw it by calling the other htmlwidget, in this case visNetwork

yonicd commented 6 years ago

the first part is already possible, see the plots section of the rendered examples.

The second part I can add some observers for shiny to pick up.

yonicd commented 6 years ago

i added an observer for shiny to show the current active slider and the index of the active object in it. you can see how to use it in this example

dockstreet commented 6 years ago

Great work! looks promising for what I want to try out, does it only work in Chrome? I couldn't get it work in IE, not sure if IE has an SVG limitation or not.

yonicd commented 6 years ago

no problem. i just pushed another update to add more observers. that should give you more than enough info to use the slider as a reactive object.

I havent tested this on IE, but no one has raised an issue for it as of yet.

dockstreet commented 6 years ago

so the more observers seems to work, I think there is an issue in IE however? I'll close this and raise it there; thanks again!!!!