Sha256: 2a740bcbbaa6820f7e10b9b9b1f25a80db1fa5e6a55543babbebb0004ce0f344

Contents?: true

Size: 370 Bytes

Versions: 160

Compression:

Stored size: 370 Bytes

Contents

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

  def query
    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

160 entries across 160 versions & 1 rubygems

Version Path
avo-2.53.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.52.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.49.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.48.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.47.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.46.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.45.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.44.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.43.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.42.2 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.42.1 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.42.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.41.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.40.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.39.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.38.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.37.2 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.37.1 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.37.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.36.3 lib/generators/avo/templates/cards/chartkick_card.tt