Friday, 15 April 2011

Setting the interaction model of a Dygraph in Shiny for R -


I want to add custom interaction seen under the "custom interaction model" in my small web app.

As far as I understand it, it is necessary to attach some JS to the page and set the interaction model on the graph:

interactionModel: {'mousedown ': DownV3, however, interaction model / P>

> does not appear as a parameter on the dyOptions function on the R side

Is there any way to work on this?

Update:

dyOptions , it seems that options can be modified directly:

  G  

However, setting interactionModel does not work here.

Update:

You can actually set options by using:

  g $ x $ attrs $ option & lt; Note that this is "ethers", not "etter"  

It can be used to turn off interaction mode:

  Articles $ x $ attrs $ interactionModel & lt; - "{}"  

The remaining problem is going through the JS function references to the page via JSON.

You can use JS Function to pass JavaScript on the JSON client.

In the UI r:

  Tag $ head (tag $ script (src = "interaction.js"))  

server In. R:

  g  

No comments:

Post a Comment