struct
Plot
pub struct Plot {
pub width: f32,
pub height: f32,
pub marks: Vec<Mark>,
pub hits: Vec<Hit>,
pub legend: Vec<LegendItem>,
pub selectable: bool,
pub responsive: bool,
pub zoomable: bool,
pub focusable: bool,
pub root_class: String,
pub plot_class: String,
pub legend_class: String,
pub notes: Vec<String>,
}One chart's drawing.
Fields
Methods
is_dense
pub fn is_dense(&self, limit: usize) -> boolWhether it has more than limit marks and hit targets, so it draws on a canvas rather than in SVG.