nvd3 plot working and pulling from the db