create_data_generic <- function(schema) {
make_function( "#/definitions/Data",
schema,
"add_data",
".add_data",
description = "Add data to a vega-lite spec")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.