Skip to content

module

plot

What a chart draws, independent of how: SVG normally, a canvas when there are too many marks for the DOM.

Structs

  • Hit

    The area that answers to a datum: bigger than its mark, labelled for screen readers.

  • LegendItem

    An entry in a chart's legend.

  • Plot

    One chart's drawing.

Enums

  • Mark

    A shape a chart draws.

Functions

series_color

pub fn series_color(i: usize) -> String

The colour of series i.

Constants

DENSE

pub const DENSE: usize = 5000;

How many marks go through the DOM before a chart switches to a canvas.

LIGHT

pub const LIGHT: [&str; 8] = _;

Series colours, in order. The order keeps neighbours distinct under colour-blindness; the values are set for each scheme in the base CSS.

MAX_SERIES

pub const MAX_SERIES: usize = _;

Most series a chart gives their own colour.