Fix nvd3 chart bugs