pub struct BasicChartSpec {
pub chart_type: String,
pub legend_position: Option<String>,
pub stacked_type: Option<String>,
pub header_count: Option<i64>,
pub axis: Vec<BasicChartAxis>,
pub domains: Vec<BasicChartDomain>,
pub series: Vec<BasicChartSeries>,
pub extra: BTreeMap<String, Value>,
}Expand description
BasicChartSpec — the COLUMN/BAR/LINE/AREA/SCATTER subset this crate
supports (issue #1797’s chosen v1 cut).
COMBO and STEPPED_AREA are also valid wire values for chartType,
and reading one back is tolerated (it lands here, not in extra, since
chartType is a named field) — but
embedded_object.rs::merge_chart_spec refuses to update one, since
COMBO needs a per-series type this crate doesn’t model.
Fields§
§chart_type: String"COLUMN", "BAR", "LINE", "AREA", "SCATTER" (this crate’s
supported set), or another wire value read back from an existing
chart this crate didn’t create. Defaulted defensively — see the
module doc on proto3 zero-value omission (issue #1929).
legend_position: Option<String>Where the legend is drawn, e.g. "BOTTOM_LEGEND", "NONE".
stacked_type: Option<String>"NOT_STACKED", "STACKED", or "PERCENT_STACKED".
header_count: Option<i64>How many leading rows/columns of the source range are headers rather than data.
axis: Vec<BasicChartAxis>The chart’s axes.
domains: Vec<BasicChartDomain>The domain (typically the x-axis / category column).
series: Vec<BasicChartSeries>The data series.
extra: BTreeMap<String, Value>Every other BasicChartSpec field this crate doesn’t model
(threeDimensional, interpolateNulls, lineSmoothing, …).
Trait Implementations§
Source§impl Clone for BasicChartSpec
impl Clone for BasicChartSpec
Source§impl Debug for BasicChartSpec
impl Debug for BasicChartSpec
Source§impl Default for BasicChartSpec
impl Default for BasicChartSpec
Source§impl<'de> Deserialize<'de> for BasicChartSpec
impl<'de> Deserialize<'de> for BasicChartSpec
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>,
impl Eq for BasicChartSpec
Source§impl PartialEq for BasicChartSpec
impl PartialEq for BasicChartSpec
Source§impl Serialize for BasicChartSpec
impl Serialize for BasicChartSpec
impl StructuralPartialEq for BasicChartSpec
Auto Trait Implementations§
impl Freeze for BasicChartSpec
impl RefUnwindSafe for BasicChartSpec
impl Send for BasicChartSpec
impl Sync for BasicChartSpec
impl Unpin for BasicChartSpec
impl UnsafeUnpin for BasicChartSpec
impl UnwindSafe for BasicChartSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more