refactor code for restructuring data for nvd3 histogram chart
Merge pull request #407 from dimagi/viz

refactor code for restructuring data for nvd3 histogram chart