Sha256: 2c75c5bc9f9597be64779078d36ddc376ed8726f8f6eac9bab86b582b0464c1c
Contents?: true
Size: 494 Bytes
Versions: 13
Compression:
Stored size: 494 Bytes
Contents
module CurationConcerns module ChartsHelper # @example A chart with a drilldown # { # "First" => { # "Second" => 3, # "Third" => 3 # } # } # @example A chart without a drilldown # { # "First" => 3, # "Second" => 4 # } def hash_to_chart(data) data = ::CurationConcerns::ChartData.new(data) { drilldown: { series: data.drilldown }, series: data.series } end end end
Version data entries
13 entries across 13 versions & 1 rubygems