Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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


rAmCharts4

Interface to the JavaScript Library 'amCharts 4'

v1.3.1
GPL-3
Authors
Stéphane Laurent [aut, cre], Antanas Marcelionis [ctb, cph] ('amCharts' library (https://www.amcharts.com/)), Terence Eden [ctb, cph] ('SuperTinyIcons' library (https://github.com/edent/SuperTinyIcons/)), Tom Alexander [ctb, cph] ('regression-js' library (https://github.com/Tom-Alexander/regression-js))
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.