Sha256: de37b44d1023714936168919be6983760bee596a4561dc9b0d3fd56be8821704

Contents?: true

Size: 369 Bytes

Versions: 25

Compression:

Stored size: 369 Bytes

Contents

class <%= class_name.camelize %> < Avo::Dashboards::ChartkickCard
  self.id = "<%= name.underscore %>"
  self.label = "<%= name.underscore.humanize %>"
  self.chart_type = :area_chart

  query do
    data = 3.times.map do |index|
      {
        name: "Batch #{index}",
        data: 17.times.map { |i| [i, Random.rand(32)] }
      }
    end

    result data
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
avo-2.5.2.pre.7 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.5.2.pre.6 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.5.2.pre.5 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.5.2.pre.4 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.5.2.pre.3 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.5.2.pre.2 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.5.1 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.5.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.4.1 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.4.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.3.1.pre.6 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.3.1.pre.5 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.3.1.pre.4 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.3.1.pre.3 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.3.1.pre.2 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.3.1.pre.1 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.3.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.2.2 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.2.1 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.2.0 lib/generators/avo/templates/cards/chartkick_card.tt