class Vega::LiteChart
Public Class Methods
new()
click to toggle source
Calls superclass method
Vega::BaseChart::new
# File lib/vega/lite_chart.rb, line 13 def initialize @schema = "https://vega.github.io/schema/vega-lite/v4.json" super() end
Public Instance Methods
data!(value)
click to toggle source
# File lib/vega/lite_chart.rb, line 18 def data!(value) @spec[:data] = data_value(value) self end
spec(*args)
click to toggle source
# File lib/vega/lite_chart.rb, line 25 def spec(*args) if args.empty? @spec else dup.spec!(*args) end end