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_dataset when the chart lives outside the table.
  • Enable orbital_datatable::DataTableFeatures::CHARTS_INTEGRATION on orbital_datatable::DataTable.
  • Render a chart child that calls orbital_datatable::use_chart_binding and reads binding.dataset.get() reactively.
  • Build orbital_data::ChartFieldBinding from binding.suggested_field_binding() or explicit keys.
  • For out-of-tree charts, capture the handle with on_handle and call get_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
20406080AlphaBetaGammaDelta