Struct google_sheets4::ChartSpec
source · pub struct ChartSpec {Show 19 fields
pub font_name: Option<String>,
pub alt_text: Option<String>,
pub subtitle: Option<String>,
pub subtitle_text_format: Option<TextFormat>,
pub title_text_format: Option<TextFormat>,
pub title_text_position: Option<TextPosition>,
pub waterfall_chart: Option<WaterfallChartSpec>,
pub pie_chart: Option<PieChartSpec>,
pub histogram_chart: Option<HistogramChartSpec>,
pub bubble_chart: Option<BubbleChartSpec>,
pub basic_chart: Option<BasicChartSpec>,
pub title: Option<String>,
pub treemap_chart: Option<TreemapChartSpec>,
pub candlestick_chart: Option<CandlestickChartSpec>,
pub subtitle_text_position: Option<TextPosition>,
pub background_color: Option<Color>,
pub maximized: Option<bool>,
pub hidden_dimension_strategy: Option<String>,
pub org_chart: Option<OrgChartSpec>,
}Expand description
The specifications of a chart.
This type is not used in any activity, and only used as part of another schema.
Fields§
§font_name: Option<String>The name of the font to use by default for all chart text (e.g. title, axis labels, legend). If a font is specified for a specific part of the chart it will override this font name.
alt_text: Option<String>The alternative text that describes the chart. This is often used for accessibility.
subtitle: Option<String>The subtitle of the chart.
subtitle_text_format: Option<TextFormat>The subtitle text format. Strikethrough and underline are not supported.
title_text_format: Option<TextFormat>The title text format. Strikethrough and underline are not supported.
title_text_position: Option<TextPosition>The title text position. This field is optional.
waterfall_chart: Option<WaterfallChartSpec>A waterfall chart specification.
pie_chart: Option<PieChartSpec>A pie chart specification.
histogram_chart: Option<HistogramChartSpec>A histogram chart specification.
bubble_chart: Option<BubbleChartSpec>A bubble chart specification.
basic_chart: Option<BasicChartSpec>A basic chart specification, can be one of many kinds of charts. See BasicChartType for the list of all charts this supports.
title: Option<String>The title of the chart.
treemap_chart: Option<TreemapChartSpec>A treemap chart specification.
candlestick_chart: Option<CandlestickChartSpec>A candlestick chart specification.
subtitle_text_position: Option<TextPosition>The subtitle text position. This field is optional.
background_color: Option<Color>The background color of the entire chart. Not applicable to Org charts.
maximized: Option<bool>True to make a chart fill the entire space in which it’s rendered with minimum padding. False to use the default padding. (Not applicable to Geo and Org charts.)
Determines how the charts will use hidden rows or columns.
org_chart: Option<OrgChartSpec>An org chart specification.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChartSpec
impl<'de> Deserialize<'de> for ChartSpec
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 Part for ChartSpec
Auto Trait Implementations§
impl Freeze for ChartSpec
impl RefUnwindSafe for ChartSpec
impl Send for ChartSpec
impl Sync for ChartSpec
impl Unpin for ChartSpec
impl UnwindSafe for ChartSpec
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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