pub enum ChartType {
Column,
Bar,
Line,
Pie,
Scatter,
Area,
Radar,
Bubble,
}Expand description
图表类型。
Variants§
Column
簇状柱形图(barChart with barDir="col")。
Bar
簇状条形图(barChart with barDir="bar")。
Line
折线图(lineChart)。
Pie
饼图(pieChart)。
Scatter
散点图(scatterChart)。系列需提供 x_values,使用两个 valAx。
Area
面积图(areaChart)。
Radar
雷达图(radarChart)。每个类别一个辐射轴,多系列叠加。
Bubble
气泡图(bubbleChart)。系列需提供 x_values + bubble_sizes,使用两个 valAx。
Implementations§
Source§impl ChartType
impl ChartType
Sourcepub fn chart_element(self) -> &'static str
pub fn chart_element(self) -> &'static str
返回 OOXML <c:chartSpace> 内 plotArea 下的图表元素名(如 c:barChart)。
Sourcepub fn is_scatter(self) -> bool
pub fn is_scatter(self) -> bool
是否为散点图(特殊处理:使用 c:xVal/c:yVal + 两个 valAx)。
Sourcepub fn is_xy_chart(self) -> bool
pub fn is_xy_chart(self) -> bool
是否为 X-Y 坐标图(散点图或气泡图)。
这两类都使用 c:xVal / c:yVal + 两个 valAx,区别仅在于气泡图额外有 c:bubbleSize。
Trait Implementations§
impl Copy for ChartType
impl Eq for ChartType
impl StructuralPartialEq for ChartType
Auto Trait Implementations§
impl Freeze for ChartType
impl RefUnwindSafe for ChartType
impl Send for ChartType
impl Sync for ChartType
impl Unpin for ChartType
impl UnsafeUnpin for ChartType
impl UnwindSafe for ChartType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.