We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7024adc commit 1cd49ecCopy full SHA for 1cd49ec
1 file changed
plotters/src/element/pie.rs
@@ -69,7 +69,8 @@ impl<'a, Label: Display> Pie<'a, (i32, i32), Label> {
69
/// Default is set to start at 0, which is aligned on the x axis.
70
/// ```
71
/// use plotters::prelude::*;
72
- /// let mut pie = Pie::new(&(50,50), &10.0, &[50.0, 25.25, 20.0, 5.5], &[RED.to_rgba(), BLUE.to_rgba(), GREEN.to_rgba(), WHITE.to_rgba()], &["Red", "Blue", "Green", "White"]);
+ /// let colors = [RED.to_rgba(), BLUE.to_rgba(), GREEN.to_rgba(), WHITE.to_rgba()];
73
+ /// let mut pie = Pie::new(&(50,50), &10.0, &[50.0, 25.25, 20.0, 5.5], &colors, &["Red", "Blue", "Green", "White"]);
74
/// pie.start_angle(-90.0); // retract to a right angle, so it starts aligned to a vertical Y axis.
75
76
pub fn start_angle(&mut self, start_angle: f64) {
0 commit comments