[NOT COMPLETE] Refactor the nvd3 graphs into standard js objects