Cleanup of the d3Bar Example

I tried to improve my moderate coding skills by attempting to make this
example clearer. -Andrew