Module: QueryReport::ColumnChartModule
- Included in:
- Report
- Defined in:
- lib/query_report/chart/column_chart.rb
Instance Method Summary collapse
Instance Method Details
#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 |