bar chart using nvd3 working