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

Class PieChartOptions

src/options.rs:727–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727pub struct PieChartOptions<'a> {
728 /// If between 0 and 1, displays a donut chart. The hole will have a
729 /// radius equal to this value times the radius of the chart.
730 pub pie_hole: f64,
731
732 /// An object that controls the channel.
733 pub channel: PieChartSeriesOptions<'a>,
734
735 /// An object that controls the animation.
736 pub animation: AnimationOptions,
737
738 /// The background color of the chart.
739 pub background: Color,
740
741 /// The color list used to render the channel. If there are more channel than
742 /// colors, the colors will be reused.
743 pub colors: Vec<Color>,
744
745 /// An object that controls the legend.
746 pub legend: LegendOptions<'a>,
747
748 /// An object that controls the chart title.
749 pub title: TitleOptions<'a>,
750
751 /// An object that controls the tooltip.
752 pub tooltip: TooltipOptions<'a>,
753}
754
755impl<'a> BaseOption<'a> for PieChartOptions<'a> {
756 fn animation(&self) -> &AnimationOptions {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected