changed nvd3 to use new to_json

all tests in examples.R passed

nvd3 likes
orient="records"

@ramnathv had to scrap the digits option;