Struct lc_render::chart::Chart [−][src]
pub struct Chart<'a> { /* fields omitted */ }
Expand description
Chart represents a single document with one or more views, axes and a title. It will also contain grid and legend in the future.
Implementations
impl<'a> Chart<'a>
[src]
impl<'a> Chart<'a>
[src]pub fn view_width(&self) -> i32
[src]
pub fn view_width(&self) -> i32
[src]Get chart width that can be used for views.
pub fn view_height(&self) -> i32
[src]
pub fn view_height(&self) -> i32
[src]Get chart height that can be used for views.
pub fn set_margin_top(self, margin_top: i32) -> Self
[src]
pub fn set_margin_top(self, margin_top: i32) -> Self
[src]Set chart top margin.
pub fn set_margin_bottom(self, margin_bottom: i32) -> Self
[src]
pub fn set_margin_bottom(self, margin_bottom: i32) -> Self
[src]Set chart bottom margin.
pub fn set_margin_left(self, margin_left: i32) -> Self
[src]
pub fn set_margin_left(self, margin_left: i32) -> Self
[src]Set chart left margin.
pub fn set_margin_right(self, margin_right: i32) -> Self
[src]
pub fn set_margin_right(self, margin_right: i32) -> Self
[src]Set chart right margin.
pub fn set_height(self, height: i32) -> Self
[src]
pub fn set_height(self, height: i32) -> Self
[src]Set chart height.
pub fn set_axis_top_band(self, scale: BandScale) -> Self
[src]
pub fn set_axis_top_band(self, scale: BandScale) -> Self
[src]Set BandScale for top axis.
pub fn set_axis_top_linear(self, scale: LinearScale) -> Self
[src]
pub fn set_axis_top_linear(self, scale: LinearScale) -> Self
[src]Set LinearScale for top axis.
pub fn set_axis_bottom_band(self, scale: BandScale) -> Self
[src]
pub fn set_axis_bottom_band(self, scale: BandScale) -> Self
[src]Set BandScale for bottom axis.
pub fn set_axis_bottom_linear(self, scale: LinearScale) -> Self
[src]
pub fn set_axis_bottom_linear(self, scale: LinearScale) -> Self
[src]Set LinearScale for bottom axis.
pub fn set_axis_left_band(self, scale: BandScale) -> Self
[src]
pub fn set_axis_left_band(self, scale: BandScale) -> Self
[src]Set BandScale for left axis.
pub fn set_axis_left_linear(self, scale: LinearScale) -> Self
[src]
pub fn set_axis_left_linear(self, scale: LinearScale) -> Self
[src]Set LinearScale for left axis.
pub fn set_axis_right_band(self, scale: BandScale) -> Self
[src]
pub fn set_axis_right_band(self, scale: BandScale) -> Self
[src]Set BandScale for right axis.
pub fn set_axis_right_linear(self, scale: LinearScale) -> Self
[src]
pub fn set_axis_right_linear(self, scale: LinearScale) -> Self
[src]Set LinearScale for right axis.
pub fn set_axis_top_label(self, label: &str) -> Self
[src]
pub fn set_axis_top_label(self, label: &str) -> Self
[src]Set label for top axis.
pub fn set_axis_bottom_label(self, label: &str) -> Self
[src]
pub fn set_axis_bottom_label(self, label: &str) -> Self
[src]Set label for bottom axis.
pub fn set_axis_left_label(self, label: &str) -> Self
[src]
pub fn set_axis_left_label(self, label: &str) -> Self
[src]Set label for left axis.
pub fn set_axis_right_label(self, label: &str) -> Self
[src]
pub fn set_axis_right_label(self, label: &str) -> Self
[src]Set label for right axis.