Struct charts_rs::MultiChart
source · pub struct MultiChart {
pub charts: Vec<ChildChart>,
pub gap: f32,
pub margin: Box,
pub background_color: Option<Color>,
}Fields§
§charts: Vec<ChildChart>§gap: f32§margin: Box§background_color: Option<Color>Implementations§
source§impl MultiChart
impl MultiChart
sourcepub fn from_json(data: &str) -> Result<MultiChart>
pub fn from_json(data: &str) -> Result<MultiChart>
Creates a multi chart from json.
sourcepub fn new() -> MultiChart
pub fn new() -> MultiChart
Creates a multi chart.
sourcepub fn add(&mut self, c: ChildChart)
pub fn add(&mut self, c: ChildChart)
Adds a child chart to multi chart.
sourcepub fn svg(&mut self) -> CanvasResult<String>
pub fn svg(&mut self) -> CanvasResult<String>
Converts the chart to svg.
Trait Implementations§
source§impl Default for MultiChart
impl Default for MultiChart
source§fn default() -> MultiChart
fn default() -> MultiChart
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MultiChart
impl Send for MultiChart
impl Sync for MultiChart
impl Unpin for MultiChart
impl UnwindSafe for MultiChart
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more