Struct google_sheets4::api::BasicChartSpec [−][src]
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
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for BasicChartSpec
impl Send for BasicChartSpec
impl Sync for BasicChartSpec
impl Unpin for BasicChartSpec
impl UnwindSafe for BasicChartSpec
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more