Class: Google::Apis::SheetsV4::ChartData
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ChartData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb
Overview
The data included in a domain or series.
Instance Attribute Summary collapse
-
#aggregate_type ⇒ String
The aggregation type for the series of a data source chart.
-
#column_reference ⇒ Google::Apis::SheetsV4::DataSourceColumnReference
An unique identifier that references a data source column.
-
#group_rule ⇒ Google::Apis::SheetsV4::ChartGroupRule
An optional setting on the ChartData of the domain of a data source chart that defines buckets for the values in the domain rather than breaking out each individual value.
-
#source_range ⇒ Google::Apis::SheetsV4::ChartSourceRange
Source ranges for a chart.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChartData
constructor
A new instance of ChartData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChartData
Returns a new instance of ChartData.
2777 2778 2779 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2777 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregate_type ⇒ String
The aggregation type for the series of a data source chart. Not supported for
regular charts.
Corresponds to the JSON property aggregateType
2755 2756 2757 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2755 def aggregate_type @aggregate_type end |
#column_reference ⇒ Google::Apis::SheetsV4::DataSourceColumnReference
An unique identifier that references a data source column.
Corresponds to the JSON property columnReference
2760 2761 2762 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2760 def column_reference @column_reference end |
#group_rule ⇒ Google::Apis::SheetsV4::ChartGroupRule
An optional setting on the ChartData of the domain of a data source chart that
defines buckets for the values in the domain rather than breaking out each
individual value. For example, when plotting a data source chart, you can
specify a histogram rule on the domain (it should only contain numeric values),
grouping its values into buckets. Any values of a chart series that fall into
the same bucket are aggregated based on the aggregate_type.
Corresponds to the JSON property groupRule
2770 2771 2772 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2770 def group_rule @group_rule end |
#source_range ⇒ Google::Apis::SheetsV4::ChartSourceRange
Source ranges for a chart.
Corresponds to the JSON property sourceRange
2775 2776 2777 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2775 def source_range @source_range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2782 2783 2784 2785 2786 2787 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2782 def update!(**args) @aggregate_type = args[:aggregate_type] if args.key?(:aggregate_type) @column_reference = args[:column_reference] if args.key?(:column_reference) @group_rule = args[:group_rule] if args.key?(:group_rule) @source_range = args[:source_range] if args.key?(:source_range) end |