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.21.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.21.1.pre.pr1476 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.21.1.pre.issue1450 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.21.1.pre.issue1444 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.20.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.19.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.18.1 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.18.1.pre.1.eagerloaddirs lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.18.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.17.1.pre.5.stackedlayout lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.17.1.pre.4.issue.1342 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.17.1.pre.3 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.17.1.pre.2.customauthorizationclients lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.17.1.pre.1.zeitwerk.eager.load.dir lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.17.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.16.1.pre.1.nativefields lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.16.0 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.15.3 lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.15.3.pre.1.data.attrs.to.sidebar.items lib/generators/avo/templates/cards/chartkick_card.tt
avo-2.15.2 lib/generators/avo/templates/cards/chartkick_card.tt