Sha256: 61062165621ec49c6f20daaf8455bfe61685a046aea13adea4d5d4de244653d3

Contents?: true

Size: 549 Bytes

Versions: 10

Compression:

Stored size: 549 Bytes

Contents

# stdlib
require "erb"
require "json"
require "securerandom"

# modules
require "vega/method_helpers"
require "vega/base_chart"
require "vega/chart"
require "vega/lite_chart"
require "vega/spec"
require "vega/version"

# integrations
require "vega/engine" if defined?(Rails)

module Vega
  class << self
    # save chart method for now
    def start
      Chart.new
    end

    def lite
      LiteChart.new
    end

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vega-0.2.5 lib/vega.rb
vega-0.2.4 lib/vega.rb
vega-0.2.3 lib/vega.rb
vega-0.2.2 lib/vega.rb
vega-0.2.1 lib/vega.rb
vega-0.2.0 lib/vega.rb
vega-0.1.3 lib/vega.rb
vega-0.1.2 lib/vega.rb
vega-0.1.1 lib/vega.rb
vega-0.1.0 lib/vega.rb