Module: Vega

Defined in:
lib/vega.rb,
lib/vega/spec.rb,
lib/vega/chart.rb,
lib/vega/engine.rb,
lib/vega/helper.rb,
lib/vega/version.rb,
lib/vega/base_chart.rb,
lib/vega/lite_chart.rb,
lib/vega/method_helpers.rb

Defined Under Namespace

Modules: Helper, MethodHelpers Classes: BaseChart, Chart, Engine, LiteChart, Spec

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.display(spec) ⇒ Object



33
34
35
# File 'lib/vega.rb', line 33

def display(spec)
  IRuby.display(Spec.new(spec))
end

.liteObject



25
26
27
# File 'lib/vega.rb', line 25

def lite
  LiteChart.new
end

.render(spec, nonce: nil) ⇒ Object



29
30
31
# File 'lib/vega.rb', line 29

def render(spec, nonce: nil)
  Spec.new(spec).to_html(nonce: nonce)
end

.startObject

save chart method for now



21
22
23
# File 'lib/vega.rb', line 21

def start
  Chart.new
end