Skip to content

module

viz

Charts: every one is a layout function (charts) in the same frame, which handles loading a src, errors, the legend, the tooltip, the source line and the table view.

Modules

  • charts

    Chart layouts: from a Dataset to a Plot.

  • data

    The data a chart draws: from src or data, whichever it was given, down to one x axis and some series.

  • plot

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

  • scale

    Scales: from data values to positions.

  • source

    Without the viz feature a component has no src, and none of the code for reading one comes along.

Structs

  • Source

    A component's src, without the sources feature: always absent.

Enums

  • Layout

    A chart's layout, from its props and data.

  • Status

    Where a component's src is: without the sources feature, there's never one.

Functions

all

pub fn all() -> Vec<Component>

Every chart and data component the enabled features include.

chart

pub fn chart(name: &'static str, default_title: &'static str, layout: Layout) -> Component

A chart component called name, drawn by layout. default_title names it when its data has no title.

needs_feature

pub fn needs_feature(name: &'static str, feature: &'static str) -> Component

Stands in for a chart its site didn't ask for: saying so on the page beats an unknown component, and leaves the download small.

Constants

FLOW

pub const FLOW: &[&str] = _;

The components behind the flow feature.

FULL

pub const FULL: &[&str] = _;

The charts behind the charts feature.

MAPS

pub const MAPS: &[&str] = _;

The components behind the maps feature.

STATS

pub const STATS: &[&str] = _;

The components behind the stats feature.

THREE_D

pub const THREE_D: &[&str] = _;

The components behind the charts3d feature.