fetch_data <- function(indicator, group_name) {
data_service_name <- get_indicator_parameter("data_service", indicator, group_name)
method <- JSON_OPTIONS$get_data_service_function(data_service_name)
return(method(indicator, group_name))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.