added scale rules for bar charts
Refactored stats controller to use chart partial