Sha256: 716de3e77eb312e70eb1a7ea2cc1783166962d2e83d99de366d7c87c47d59d53
Contents?: true
Size: 292 Bytes
Versions: 14
Compression:
Stored size: 292 Bytes
Contents
class ChartCandy::Builder::Counter < ChartCandy::Builder::Base def initialize(id, options={}) super @chart.merge! nature: 'count', data: [] end def add_primary(id, value) @chart[:data] << { nature: :primary, label: t("data.#{id}.label"), id: id, value: value } end end
Version data entries
14 entries across 14 versions & 1 rubygems