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: 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