Skip to main content

chart_block

Function chart_block 

Source
pub fn chart_block(
    block: Uuid,
    spec: &str,
    caption: &str,
    height: i32,
    height_is_auto: bool,
    data_file_url: Option<&str>,
) -> GutenbergBlock
Expand description

A moocfi/chart. spec is the Vega-Lite JSON specification as a string; data is referenced by URL from within the spec (see the chart block editor). data_file_url is the uploaded file the spec reads from, or None for a chart without one.