pub struct ChartConfig<'a> {
    pub chart_type: ChartType,
    pub labels: Vec<String>,
    pub datasets: Vec<ChartDataset<'a>>,
    pub scales: HashMap<String, ChartScale>,
    pub style: ChartStyle,
    pub tooltip: ChartTooltipConfig,
    pub zoom_enabled: bool,
    pub pan_enabled: bool,
}
Expand description

These options are based on the ones provided by ChartJS

Fields

chart_type: ChartTypelabels: Vec<String>

If the `ChartConfig::labels property of the main data property is used, it has to contain the same amount of elements as the dataset with the most values.

datasets: Vec<ChartDataset<'a>>scales: HashMap<String, ChartScale>style: ChartStyletooltip: ChartTooltipConfigzoom_enabled: boolpan_enabled: bool

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.