Struct zaplib_components::ChartConfig
source · [−]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: ChartType
labels: 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: ChartStyle
tooltip: ChartTooltipConfig
zoom_enabled: bool
pan_enabled: bool