class Avo::Cards::<%= class_name.camelize %> < AvoDashboards::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