pub struct Chart {Show 17 fields
pub id: u32,
pub kind: ChartKind,
pub anchor: Anchor,
pub title: Option<String>,
pub series: Vec<Series>,
pub legend: LegendPos,
pub data_labels: bool,
pub data_table: Option<ChartDataTable>,
pub gridlines: bool,
pub style: u32,
pub hole_size: u8,
pub first_slice_angle: u16,
pub x_title: Option<String>,
pub y_title: Option<String>,
pub source: Option<String>,
pub by_rows: bool,
pub pivot: Option<String>,
}Fields§
§id: u32§kind: ChartKind§anchor: Anchor§title: Option<String>§series: Vec<Series>§legend: LegendPos§data_labels: bool§data_table: Option<ChartDataTable>§gridlines: bool§style: u32§hole_size: u8Doughnut hole size as a percentage of the plot radius (Excel’s 10–90 range). New charts and XLSX imports use Excel’s 75; a document saved before this field existed reads as 50.
first_slice_angle: u16Pie/doughnut first slice angle in degrees clockwise from 12 o’clock (0–359).
x_title: Option<String>§y_title: Option<String>§source: Option<String>Source range when created from a selection (for Switch Row/Column).
by_rows: bool§pivot: Option<String>A PivotChart’s PivotTable (Sheet2!PivotTable1): its series are rebuilt from the report
whenever the PivotTable is refreshed or its layout changes.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chart
impl<'de> Deserialize<'de> for Chart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Chart
Auto Trait Implementations§
impl Freeze for Chart
impl RefUnwindSafe for Chart
impl Send for Chart
impl Sync for Chart
impl Unpin for Chart
impl UnsafeUnpin for Chart
impl UnwindSafe for Chart
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