Sha256: 70e420c38d60119e3c7c1c9f0dc6064da0d8f56d487391a4aa4fedf846f72391
Contents?: true
Size: 767 Bytes
Versions: 2
Compression:
Stored size: 767 Bytes
Contents
module Vega class LiteChart < BaseChart # https://vega.github.io/vega-lite/docs/spec.html scalar_methods \ :background, :padding, :autosize, :title, :name, :description, :width, :height, :mark, :spec, :repeat hash_methods \ :config, :usermeta, :projection, :datasets, :encoding, :facet, :resolve, :selection, :view array_methods \ :transform, :layer, :hconcat, :vconcat, :concat def initialize @schema = "https://vega.github.io/schema/vega-lite/v5.json" super() end def data!(value) @spec[:data] = data_value(value) self end immutable_method :data undef spec def spec(*args) if args.empty? @spec else dup.spec!(*args) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vega-0.2.1 | lib/vega/lite_chart.rb |
vega-0.2.0 | lib/vega/lite_chart.rb |