Class: Google::Apis::SheetsV4::BasicChartSeries
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::BasicChartSeries
- 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
A single series of data in a chart. For example, if charting stock prices over time, multiple series may exist, one for the "Open Price", "High Price", "Low Price" and "Close Price".
Instance Attribute Summary collapse
-
#line_style ⇒ Google::Apis::SheetsV4::LineStyle
Properties that describe the style of a line.
-
#series ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
-
#target_axis ⇒ String
The minor axis that will specify the range of values for this series.
-
#type ⇒ String
The type of this series.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicChartSeries
constructor
A new instance of BasicChartSeries.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BasicChartSeries
Returns a new instance of BasicChartSeries
1083 1084 1085 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1083 def initialize(**args) update!(**args) end |
Instance Attribute Details
#line_style ⇒ Google::Apis::SheetsV4::LineStyle
Properties that describe the style of a line.
Corresponds to the JSON property lineStyle
1055 1056 1057 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1055 def line_style @line_style end |
#series ⇒ Google::Apis::SheetsV4::ChartData
The data included in a domain or series.
Corresponds to the JSON property series
1060 1061 1062 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1060 def series @series end |
#target_axis ⇒ String
The minor axis that will specify the range of values for this series.
For example, if charting stocks over time, the "Volume" series
may want to be pinned to the right with the prices pinned to the left,
because the scale of trading volume is different than the scale of
prices.
It is an error to specify an axis that isn't a valid minor axis
for the chart's type.
Corresponds to the JSON property targetAxis
1071 1072 1073 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1071 def target_axis @target_axis end |
#type ⇒ String
The type of this series. Valid only if the
chartType is
COMBO.
Different types will change the way the series is visualized.
Only LINE, AREA,
and COLUMN are supported.
Corresponds to the JSON property type
1081 1082 1083 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1081 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1088 1089 1090 1091 1092 1093 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 1088 def update!(**args) @line_style = args[:line_style] if args.key?(:line_style) @series = args[:series] if args.key?(:series) @target_axis = args[:target_axis] if args.key?(:target_axis) @type = args[:type] if args.key?(:type) end |