Decoupled glance-group piechart from directives.js