nvd3 serialize