Class: Plotly::Plot
- Includes:
- Exportable, Offline::Exportable
- Defined in:
- lib/plotly/plot.rb
Instance Attribute Summary collapse
-
#data ⇒ Array
List of Plotly::Data objects.
-
#layout ⇒ Object
Returns the value of attribute layout.
Instance Method Summary collapse
-
#initialize(data: [], layout: {}) ⇒ Plot
constructor
A new instance of Plot.
Methods included from Offline::Exportable
#generate_html, #show, #to_html
Methods included from Exportable
Constructor Details
Instance Attribute Details
#data ⇒ Array
Returns list of Plotly::Data objects.
15 16 17 |
# File 'lib/plotly/plot.rb', line 15 def data @data end |
#layout ⇒ Object
Returns the value of attribute layout.
15 |
# File 'lib/plotly/plot.rb', line 15 attr_reader :data, :layout |