Skip to contents

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 echartr instance.

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.

listen will only add new listeners - to deregister existing listeners, use off.

Intention is to support all functions under https://echarts.apache.org/en/api.html#echartsInstance