D3 single-line graph rendering