pub struct Bar3DChart {
pub direction: BarDirection,
pub grouping: Option<BarGrouping>,
pub vary_colors: Option<bool>,
pub series: Vec<BarSeries>,
pub gap_width_percent: Option<i32>,
pub gap_depth_percent: Option<i32>,
pub shape: Option<Bar3DShape>,
pub category_axis_id: u32,
pub value_axis_id: u32,
pub series_axis_id: Option<u32>,
}Expand description
A 3D bar/column chart (<c:bar3DChart>, CT_Bar3DChart) — reuses EG_BarChartShared exactly
like BarChart (same BarSeries, direction/grouping/vary_colors/series), plus
depth-specific fields. Unlike BarChart, a third axis id (the series/depth axis) is genuinely
optional here (axId minOccurs="2" maxOccurs="3"), modeled as series_axis_id: Option<u32> —
this is cardinality, not a schema default being masked (an axis id has no default value at all).
Not modeled: dLbls.
Fields§
§direction: BarDirection§grouping: Option<BarGrouping>§vary_colors: Option<bool>§series: Vec<BarSeries>§gap_width_percent: Option<i32><c:gapWidth val="..%"/> — 0.=500, schema default 150.
gap_depth_percent: Option<i32><c:gapDepth val="..%"/> — 0.=500, schema default 150.
shape: Option<Bar3DShape><c:shape val=".."/> — schema default "box".
category_axis_id: u32§value_axis_id: u32§series_axis_id: Option<u32>The optional third (series/depth) axis id — see the struct’s own doc comment for why this is
genuinely Option.
Implementations§
Source§impl Bar3DChart
impl Bar3DChart
pub fn new( direction: BarDirection, category_axis_id: u32, value_axis_id: u32, ) -> Bar3DChart
pub fn with_grouping(self, grouping: BarGrouping) -> Bar3DChart
pub fn with_vary_colors(self, vary: bool) -> Bar3DChart
pub fn with_series(self, series: BarSeries) -> Bar3DChart
pub fn with_gap_width_percent(self, percent: i32) -> Bar3DChart
pub fn with_gap_depth_percent(self, percent: i32) -> Bar3DChart
pub fn with_shape(self, shape: Bar3DShape) -> Bar3DChart
pub fn with_series_axis_id(self, id: u32) -> Bar3DChart
Trait Implementations§
Source§impl Clone for Bar3DChart
impl Clone for Bar3DChart
Source§fn clone(&self) -> Bar3DChart
fn clone(&self) -> Bar3DChart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Bar3DChart
impl Debug for Bar3DChart
Source§impl PartialEq for Bar3DChart
impl PartialEq for Bar3DChart
impl StructuralPartialEq for Bar3DChart
Auto Trait Implementations§
impl Freeze for Bar3DChart
impl RefUnwindSafe for Bar3DChart
impl Send for Bar3DChart
impl Sync for Bar3DChart
impl Unpin for Bar3DChart
impl UnsafeUnpin for Bar3DChart
impl UnwindSafe for Bar3DChart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more