Collecting data for chart
- Retrieve filtered data from database
- Push data to template