Function ratatui_chart_dataset

Source
#[no_mangle]
pub extern "C" fn ratatui_chart_dataset(
    handle: *mut c_void,
    name: *const c_char,
    marker: u8,
    r: u8,
    g: u8,
    b: u8,
    data: *const f64,
    point_count: u32,
)
Expand description

Adds a Dataset to the pending chart.

§Parameters

  • name: dataset legend label.
  • marker: 0 Dot, 1 Braille, 2 HalfBlock, 3 Block.
  • r, g, b: dataset color.
  • data: pointer to point_count * 2 f64 values, interleaved as [x0, y0, x1, y1, …].
  • point_count: number of (x, y) pairs.

Does nothing if no chart builder is active or data is null.