dreamRs / apexcharter

:bar_chart: R Htmlwidget for ApexCharts.js
https://dreamrs.github.io/apexcharter
Other
138 stars 15 forks source link

Dynamic Series Update #28

Closed meersel closed 3 years ago

meersel commented 3 years ago

HI,

Does R Apexcharter support the Dynamic Series Update functionality (see example: https://github.com/apexcharts/apexcharts.js) ? If so, could you provide me with an example how to use this with the R apexcharter package functions ?

Thanks in advance.

Miguel

pvictor commented 3 years ago

Hello Miguel,

There's some possibilities in Shiny through proxy or auto-update method, and you can retrieve click on charts as inputs values.

Example of charts automatically updated: https://github.com/dreamRs/apexcharter/blob/master/examples/real-time.R

Examples for clicking chart can be launched with run_demo_input("click").

The example here from official documentation is a little more complex since it requires lot of custom JavaScript code.

Victor