View Source GoogleApi.Sheets.V4.Model.BasicChartSpec (google_api_sheets v0.34.0)

The specification for a basic chart. See BasicChartType for the list of charts this supports.

Attributes

  • axis (type: list(GoogleApi.Sheets.V4.Model.BasicChartAxis.t), default: nil) - The axis on the chart.
  • chartType (type: String.t, default: nil) - The type of the chart.
  • compareMode (type: String.t, default: nil) - The behavior of tooltips and data highlighting when hovering on data and chart area.
  • domains (type: list(GoogleApi.Sheets.V4.Model.BasicChartDomain.t), default: nil) - The domain of data this is charting. Only a single domain is supported.
  • headerCount (type: integer(), default: nil) - 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.)
  • interpolateNulls (type: boolean(), default: nil) - 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.
  • legendPosition (type: String.t, default: nil) - The position of the chart legend.
  • lineSmoothing (type: boolean(), default: nil) - Gets whether all lines should be rendered smooth or straight by default. Applies to Line charts.
  • series (type: list(GoogleApi.Sheets.V4.Model.BasicChartSeries.t), default: nil) - The data this chart is visualizing.
  • stackedType (type: String.t, default: nil) - The stacked type for charts that support vertical stacking. Applies to Area, Bar, Column, Combo, and Stepped Area charts.
  • threeDimensional (type: boolean(), default: nil) - True to make the chart 3D. Applies to Bar and Column charts.
  • totalDataLabel (type: GoogleApi.Sheets.V4.Model.DataLabel.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Sheets.V4.Model.BasicChartSpec{
  axis: [GoogleApi.Sheets.V4.Model.BasicChartAxis.t()] | nil,
  chartType: String.t() | nil,
  compareMode: String.t() | nil,
  domains: [GoogleApi.Sheets.V4.Model.BasicChartDomain.t()] | nil,
  headerCount: integer() | nil,
  interpolateNulls: boolean() | nil,
  legendPosition: String.t() | nil,
  lineSmoothing: boolean() | nil,
  series: [GoogleApi.Sheets.V4.Model.BasicChartSeries.t()] | nil,
  stackedType: String.t() | nil,
  threeDimensional: boolean() | nil,
  totalDataLabel: GoogleApi.Sheets.V4.Model.DataLabel.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.