MCPcopy Create free account
hub / github.com/angular-rust/ux-charts / PieEntity

Class PieEntity

src/pie.rs:20–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18/// A pie in a pie chart.
19#[derive(Default, Clone)]
20pub 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
42impl<D> PieEntity<D> {
43 pub fn is_empty(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected