added sort function to pie-chart
refactored bar-chart into directive
moved the css style from html into css
passed jslint