Method: QueryReport::ColumnChartModule#column_chart
- Defined in:
- lib/query_report/chart/column_chart.rb
#column_chart(title, &block) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/query_report/chart/column_chart.rb', line 6 def column_chart(title, &block) chart = QueryReport::Chart::ColumnChart.new(title, self.filtered_query) chart.instance_eval &block if block_given? @charts ||= [] @charts << chart end |