Module: QueryReport::PieChartModule
- Included in:
- Report
- Defined in:
- lib/query_report/chart/pie_chart.rb
Instance Method Summary collapse
Instance Method Details
#pie_chart(title, &block) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/query_report/chart/pie_chart.rb', line 6 def pie_chart(title, &block) chart = QueryReport::Chart::PieChart.new(title, self.filtered_query) chart.instance_eval &block if block_given? @charts ||= [] @charts << chart end |