Module: Vega

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

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.2.3"

Class Method Summary collapse

Class Method Details

.display(spec) ⇒ Object


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

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

.liteObject


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

def lite
  LiteChart.new
end

.render(spec) ⇒ Object


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

def render(spec)
  Spec.new(spec).to_s
end

.startObject

save chart method for now


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

def start
  Chart.new
end