| 18 | /// A pie in a pie chart. |
| 19 | #[derive(Default, Clone)] |
| 20 | pub struct PieEntity<D> { |
| 21 | // Chart chart, |
| 22 | color: Color, |
| 23 | highlight_color: Color, |
| 24 | formatted_value: String, |
| 25 | index: usize, |
| 26 | old_value: Option<D>, |
| 27 | value: Option<D>, |
| 28 | |
| 29 | old_start_angle: f64, |
| 30 | old_end_angle: f64, |
| 31 | start_angle: f64, |
| 32 | end_angle: f64, |
| 33 | |
| 34 | center: Point<f64>, |
| 35 | inner_radius: f64, |
| 36 | outer_radius: f64, |
| 37 | |
| 38 | // [Series] field. |
| 39 | name: String, |
| 40 | } |
| 41 | |
| 42 | impl<D> PieEntity<D> { |
| 43 | pub fn is_empty(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected