Sha256: b7b5d11f357458527f20486bfe441f61605f7cfb040402eb89b8394d3ab72f76
Contents?: true
Size: 432 Bytes
Versions: 4
Compression:
Stored size: 432 Bytes
Contents
class Highcharts class Series < Base def to_json @options[:data] = if options[:data].first.is_a?(Array) || options[:data].first.is_a?(Hash) options[:data].collect do |d| if d.is_a?(Array) [d.first, d.last.to_f] else d[:y] = d[:y].to_f d end end else options[:data].collect(&:to_f) end super end end end
Version data entries
4 entries across 4 versions & 1 rubygems