class Vega::Chart

Attributes

spec[R]

Public Class Methods

new() click to toggle source
Calls superclass method Vega::BaseChart::new
# File lib/vega/chart.rb, line 16
def initialize
  @schema = "https://vega.github.io/schema/vega/v5.json"
  super()
end

Public Instance Methods

data!(value) click to toggle source
# File lib/vega/chart.rb, line 21
def data!(value)
  (@spec[:data] ||= []) << data_value(value)
  self
end