Sha256: 3ba1dc3fd43d29d7269bbaad33b8c741d3b14ac991d4936ade14d697471b00c4
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
module Vega class Chart < BaseChart # https://vega.github.io/vega/docs/specification/ scalar_methods \ :description, :background, :width, :height, :padding, :autosize, :title, :encode hash_methods \ :config, :usermeta array_methods \ :signals, :scales, :projections, :axes, :legends, :marks def initialize @schema = "https://vega.github.io/schema/vega/v5.json" super() end def data!(value) (@spec[:data] ||= []) << data_value(value) self end immutable_method :data end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vega-0.1.0 | lib/vega/chart.rb |