added chart_data method to the application_controller that will handle date range queries for multiple models