Changeset 82669
- Timestamp:
- 08/17/11 13:59:13 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gsoc11-statistics/stats-server/app/controllers/chart_controller.rb
r82154 r82669 9 9 set_chart_attribute chart_name, :populate, populate_code 10 10 end 11 11 12 12 # Set the chart's title 13 13 def set_chart_title(chart, title) … … 26 26 end 27 27 28 # Get the dataset associate with this chart 28 29 def chart_dataset(chart_name) 29 30 @charts[chart_name][:data] 30 31 end 31 32 33 # Check if the chart's dataset is empty 34 def dataset_empty?(chart_name) 35 dataset = chart_dataset(chart_name) 36 return dataset.empty? 37 end 38 39 # Get the title associate with this chart 32 40 def chart_title(chart_name) 33 41 @charts[chart_name][:title] 34 42 end 35 43 44 # Get the type of this chart (eg: PieChart, LineChart, etc...) 36 45 def chart_type(chart_name) 37 46 @charts[chart_name][:type] … … 51 60 @charts[chart] = attrs 52 61 end 53 54 62 end
Note: See TracChangeset
for help on using the changeset viewer.

