updateEchartr() updates an echartr instance within a Shiny application.
Usage
updateEchartr(
session = shiny::getDefaultReactiveDomain(),
outputId,
option = NULL,
on = NULL,
off = NULL,
dispatch = NULL,
listen = NULL
)Arguments
- session
The Shiny session object. Defaults to the current Shiny session.
- outputId
The Shiny output ID of the
echartrinstance.- option
list-tree representation of echart option argument, see https://echarts.apache.org/en/option.html
- on
list of event listeners to register, see https://echarts.apache.org/en/api.html#echartsInstance.on
- off
list of event listeners to de-register, see https://echarts.apache.org/en/api.html#echartsInstance.off
- dispatch
list of actions to immediately dispatch, see https://echarts.apache.org/en/api.html#echartsInstance.dispatchAction
- listen
character vector of events to include in Shiny input, any of https://echarts.apache.org/en/api.html#events
Event output is available as
input$<outputId>_<event>. For mouse events, event data is limited.listenwill only add new listeners - to deregister existing listeners, useoff.Intention is to support all functions under https://echarts.apache.org/en/api.html#echartsInstance
