Skip to main content

chart

Function chart 

Source
pub fn chart(cx: &Cx, chart: Chart) -> BoxView<'_>
Expand description

Draws chart in a card: its heading and description, the plot with its axes, a legend when it has more than one series, and a table of its values for screen readers. The plot reads “No data” when no value is finite.

tablo_core::chart(
    cx,
    Chart::line(["Mon", "Tue", "Wed"])
        .heading("Sign-ups")
        .series(Series::new("Sign-ups", [3.0, 8.0, 5.0])),
)