pub struct BasicChartSpec {
pub axis: Option<Vec<BasicChartAxis>>,
pub chart_type: Option<String>,
pub compare_mode: Option<String>,
pub domains: Option<Vec<BasicChartDomain>>,
pub header_count: Option<i32>,
pub interpolate_nulls: Option<bool>,
pub legend_position: Option<String>,
pub line_smoothing: Option<bool>,
pub series: Option<Vec<BasicChartSeries>>,
pub stacked_type: Option<String>,
pub three_dimensional: Option<bool>,
pub total_data_label: Option<DataLabel>,
}
Expand description
The specification for a basic chart. See BasicChartType for the list of charts this supports.
This type is not used in any activity, and only used as part of another schema.
Fields§
§axis: Option<Vec<BasicChartAxis>>
The axis on the chart.
chart_type: Option<String>
The type of the chart.
compare_mode: Option<String>
The behavior of tooltips and data highlighting when hovering on data and chart area.
domains: Option<Vec<BasicChartDomain>>
The domain of data this is charting. Only a single domain is supported.
header_count: Option<i32>
The number of rows or columns in the data that are “headers”. If not set, Google Sheets will guess how many rows are headers based on the data. (Note that BasicChartAxis.title may override the axis title inferred from the header values.)
interpolate_nulls: Option<bool>
If some values in a series are missing, gaps may appear in the chart (e.g, segments of lines in a line chart will be missing). To eliminate these gaps set this to true. Applies to Line, Area, and Combo charts.
legend_position: Option<String>
The position of the chart legend.
line_smoothing: Option<bool>
Gets whether all lines should be rendered smooth or straight by default. Applies to Line charts.
series: Option<Vec<BasicChartSeries>>
The data this chart is visualizing.
stacked_type: Option<String>
The stacked type for charts that support vertical stacking. Applies to Area, Bar, Column, Combo, and Stepped Area charts.
three_dimensional: Option<bool>
True to make the chart 3D. Applies to Bar and Column charts.
total_data_label: Option<DataLabel>
Controls whether to display additional data labels on stacked charts which sum the total value of all stacked values at each value along the domain axis. These data labels can only be set when chart_type is one of AREA, BAR, COLUMN, COMBO or STEPPED_AREA and stacked_type is either STACKED or PERCENT_STACKED. In addition, for COMBO, this will only be supported if there is only one type of stackable series type or one type has more series than the others and each of the other types have no more than one series. For example, if a chart has two stacked bar series and one area series, the total data labels will be supported. If it has three bar series and two area series, total data labels are not allowed. Neither CUSTOM nor placement can be set on the total_data_label.
Trait Implementations§
Source§impl Clone for BasicChartSpec
impl Clone for BasicChartSpec
Source§fn clone(&self) -> BasicChartSpec
fn clone(&self) -> BasicChartSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BasicChartSpec
impl Debug for BasicChartSpec
Source§impl Default for BasicChartSpec
impl Default for BasicChartSpec
Source§fn default() -> BasicChartSpec
fn default() -> 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>,
Source§impl Serialize for BasicChartSpec
impl Serialize for BasicChartSpec
impl Part 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 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,
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