Skip to main content

Reactive Charts

SQL Frames is lazy and reactive. Hence, any changes to a DataFrame are automatically propagated and any models and views referring the DataFrame either directly or indirectly are also refreshed if needed. This makes it easy to focus on the end state of the UI and not worry about writing all the wiring code to make the UI reactive.

Using the chart.refresh() API, it is possible to trigger refresh UI based on any chart object. In the example below, chart is refreshed when the chart type is updated by the end user.

note

Think of chart.refresh() calling as setState({}) in React.

note

There are some bugs in eCharts that result in incorrect behavior when changing chart types. Avoid using this if you run into any such issues.

Loading...

Reactive static grid charts

Loading...

Reactive dynamic grid charts

Loading...