The googleVis package is not installed by default. The recommended way to install it is to use a code environment

• For a regular R environment, you need to install the googleVis package
• If you are using a Conda environment, you can also choose instead to install in the Conda section the r-googlevis package.

## Displaying charts in a Jupyter notebook¶

googleVis charts will not work properly if you only use the plot() method in a Jupyter R notebook.

Instead, use the dkuDisplayGooglevis method.

For example; to display the first example in the googleVis documentation:

    library(googleVis)

# Make some data
df=data.frame(country=c("US", "GB", "BR"),
val1=c(10,13,14),
val2=c(23,12,32))

# Prepare the chart
Line <- gvisLineChart(df)

# And display it


## Displaying charts on a dashboard¶

googleVis charts generated using R code can be shared on a DSS dashboard using the “static insights” system.

Each chart can become a single insight in the dashboard.

To do so, create static insights

# Prepare thje chart
Line <- gvisLineChart(df)

# Save it as an insight

From the Dashboard, you can then add a new “Static” insight, select the my-googlevis-plot insight
This call to dkuSaveGooglevisInsight code can be: