Class: Google::Apis::SheetsV4::ChartSourceRange
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::ChartSourceRange
- 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
Source ranges for a chart.
Instance Attribute Summary collapse
-
#sources ⇒ Array<Google::Apis::SheetsV4::GridRange>
The ranges of data for a series or domain.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChartSourceRange
constructor
A new instance of ChartSourceRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ChartSourceRange
Returns a new instance of ChartSourceRange
2556 2557 2558 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2556 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sources ⇒ Array<Google::Apis::SheetsV4::GridRange>
The ranges of data for a series or domain.
Exactly one dimension must have a length of 1,
and all sources in the list must have the same dimension
with length 1.
The domain (if it exists) & all series must have the same number
of source ranges. If using more than one source range, then the source
range at a given offset must be in order and contiguous across the domain
and series.
For example, these are valid configurations:
domain sources: A1:A5
series1 sources: B1:B5
series2 sources: D6:D10
domain sources: A1:A5, C10:C12
series1 sources: B1:B5, D10:D12
series2 sources: C1:C5, E10:E12
Corresponds to the JSON property sources
2554 2555 2556 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2554 def sources @sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2561 2562 2563 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 2561 def update!(**args) @sources = args[:sources] if args.key?(:sources) end |