Class: Charty::RenderContext

Inherits:
Object
  • Object
show all
Defined in:
lib/charty/backends/plotlyjs.rb

Instance Method Summary collapse

Instance Method Details

#dataObject



3
4
5
# File 'lib/charty/backends/plotlyjs.rb', line 3

def data
  @plotter_adapter.data(self)[0]
end

#to_jsonObject



7
8
9
# File 'lib/charty/backends/plotlyjs.rb', line 7

def to_json
  @plotter_adapter.to_json(self)
end