Dataset Integration
Live binding between orbital_datatable::DataTable and crate::BarChart via orbital_datatable::ChartBinding context.
- Dashboard slots where a chart must redraw when table sort, filter, or grouping changes.
- Sibling chart panels placed inside the table subtree (context binding).
- Imperative one-shot reads via
orbital_datatable::DataTableHandle::get_processed_datasetwhen the chart lives outside the table.
- Enable
orbital_datatable::DataTableFeatures::CHARTS_INTEGRATIONonorbital_datatable::DataTable. - Render a chart child that calls
orbital_datatable::use_chart_bindingand readsbinding.dataset.get()reactively. - Build
orbital_data::ChartFieldBindingfrombinding.suggested_field_binding()or explicit keys. - For out-of-tree charts, capture the handle with
on_handleand callget_processed_dataset.
For static dataset binding without a live table, see the Bar Chart Dataset binding example. For the datatable-side API, see Charts Integration under Data Table docs.
Live table and chart binding
Enable CHARTS_INTEGRATION, then read the live processed orbital_data::Dataset from a chart child via orbital_datatable::use_chart_binding. Filter and sort updates propagate to the chart.
Alpha | 10 |
Beta | 30 |
Gamma | 50 |
Delta | 70 |
4