Learn R Programming

rAmCharts4 (version 1.6.0)

updateAmPieChart: Update the data of a pie chart

Description

Update the data of a pie chart in a Shiny app.

Usage

updateAmPieChart(session, outputId, data)

Arguments

session

the Shiny session object

outputId

the output id passed on to amChart4Output

data

new data; if it is not valid, then nothing will happen (in order to be valid it must have the same structure as the data passed on to amPieChart); in this case check the JavaScript console, it will report the encountered issue