bar graph data realtime. TODO: a better data structure for data passed to D3, ng-switch to switch different views, look at different visualizations