Nothing
#' @description
#' Generate a plotly object including Javascript,
#' which passes the relayout information to \code{Shiny}
plotly_with_relayout = function(){
js <- "
function(el, x){
var id = el.getAttribute('id');
document.getElementById(id).on('plotly_relayout', function(ev){
console.log(ev);
ev['outputId'] = id;
Shiny.setInputValue(id + '_relayout', ev);
})
}
"
self$figure %>%
htmlwidgets::onRender(js)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.