Module: QueryReport::ChartAdapterModule
- Included in:
- Report
- Defined in:
- lib/query_report/chart_adapter.rb
Defined Under Namespace
Classes: ChartAdapter
Instance Method Summary collapse
Instance Method Details
#chart(chart_type, chart_title, &block) ⇒ Object
9 10 11 12 13 |
# File 'lib/query_report/chart_adapter.rb', line 9 def chart(chart_type, chart_title, &block) chart_adapter = ChartAdapter.new(filtered_query, all_records, chart_type, chart_title) block.call(chart_adapter) @charts << chart_adapter.chart end |