Struct google_sheets4::api::BasicChartSpec [−][src]
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
impl Clone for BasicChartSpec[src]
fn clone(&self) -> BasicChartSpec[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for BasicChartSpec[src]
impl Default for BasicChartSpec[src]
fn default() -> BasicChartSpec[src]
impl<'de> Deserialize<'de> for BasicChartSpec[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for BasicChartSpec[src]
impl Serialize for BasicChartSpec[src]
Auto Trait Implementations
impl RefUnwindSafe for BasicChartSpec[src]
impl Send for BasicChartSpec[src]
impl Sync for BasicChartSpec[src]
impl Unpin for BasicChartSpec[src]
impl UnwindSafe for BasicChartSpec[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,