Struct charts::PieChart [−][src]
pub struct PieChart<C, M, D> where
C: CanvasContext,
M: Display,
D: Display + Copy, { /* fields omitted */ }
Implementations
impl<C, M, D> PieChart<C, M, D> where
C: CanvasContext,
M: Display,
D: Display + Copy + Into<f64> + Ord + Default,
[src]
impl<C, M, D> PieChart<C, M, D> where
C: CanvasContext,
M: Display,
D: Display + Copy + Into<f64> + Ord + Default,
[src]pub fn new(options: PieChartOptions) -> Self
[src]
pub fn get_legend_labels(&self) -> Vec<String>
[src]
Trait Implementations
impl<C, M, D> Chart<C, M, D, PieEntity<D>> for PieChart<C, M, D> where
C: CanvasContext,
M: Display,
D: Display + Copy + Into<f64> + Ord + Default,
[src]
impl<C, M, D> Chart<C, M, D, PieEntity<D>> for PieChart<C, M, D> where
C: CanvasContext,
M: Display,
D: Display + Copy + Into<f64> + Ord + Default,
[src]fn calculate_drawing_sizes(&self, ctx: &C)
[src]
fn set_stream(&mut self, stream: DataStream<M, D>)
[src]
fn draw(&self, ctx: &C)
[src]
fn resize(&self, w: f64, h: f64)
[src]
fn draw_axes_and_grid(&self, ctx: &C)
[src]
Draws the axes and the grid.
fn draw_frame(&self, ctx: &C, time: Option<i64>)
[src]
Draws the current animation frame.
If [time] is null
, draws the last frame (i.e. no animation).
fn draw_channels(&self, ctx: &C, percent: f64) -> bool
[src]
fn update_channel(&self, _: usize)
[src]
fn create_entity(
&self,
channel_index: usize,
entity_index: usize,
value: Option<D>,
color: Fill,
highlight_color: Fill
) -> PieEntity<D>
[src]
&self,
channel_index: usize,
entity_index: usize,
value: Option<D>,
color: Fill,
highlight_color: Fill
) -> PieEntity<D>
fn create_channels(&self, start: usize, end: usize)
[src]
fn create_entities(
&self,
channel_index: usize,
start: usize,
end: usize,
color: Fill,
highlight: Fill
) -> Vec<PieEntity<D>>
[src]
&self,
channel_index: usize,
start: usize,
end: usize,
color: Fill,
highlight: Fill
) -> Vec<PieEntity<D>>
fn get_tooltip_position(
&self,
tooltip_width: f64,
tooltip_height: f64
) -> Point<f64>
[src]
&self,
tooltip_width: f64,
tooltip_height: f64
) -> Point<f64>
Auto Trait Implementations
impl<C, M, D> !RefUnwindSafe for PieChart<C, M, D>
impl<C, M, D> !RefUnwindSafe for PieChart<C, M, D>
impl<C, M, D> UnwindSafe for PieChart<C, M, D> where
C: UnwindSafe,
D: UnwindSafe,
M: UnwindSafe,
impl<C, M, D> UnwindSafe for PieChart<C, M, D> where
C: UnwindSafe,
D: UnwindSafe,
M: UnwindSafe,