echarts4r comes with proxies (functions ending on _p) as well as the ability access selected data. You will find a demo of shiny working with echarts4r here.

Shiny Demo

Get data from shiny with the following:

  • elementId + _brush
  • elementId + _legend_change
  • elementId + _clicked_data
  • elementId + _clicked_data_value
  • elementId + _clicked_row
  • elementId + _clicked_serie
  • elementId + _mouseover_data
  • elementId + _mouseover_data_value
  • elementId + _mouseover_row
  • elementId + _mouseover_serie

See the example below and the various proxies documentation.

You can also show a spinner while shiny recalculates.

Without loading, chart redraws with neat animation.

With loading.