Skip to main content

Module ratatui

Module ratatui 

Source
Expand description

Ratatui renderer. Returns a RatatuiChart wrapper that owns the axis strings and f64 datasets that ratatui::widgets::{Chart, BarChart} borrow. The CLI draws it by calling RatatuiChart::draw(&mut frame, area) on its report screen.

Chart kinds map to ratatui widgets as follows:

  • ChartKind::LineChart with one Dataset per series.
  • ChartKind::BarBarChart, one BarGroup per x-slot.
  • ChartKind::StackedBar → same as Bar; ratatui’s BarChart does not stack natively. Documented in plan §Risk 2.

Structs§

RatatuiChart
Owning wrapper around the ratatui chart widgets’ borrowed state. Construct with render_ratatui(&spec); draw with .draw(frame, area) from the CLI render loop.

Functions§

render_ratatui