Have SQL doing more work.  Line graph shows data but has the wrong range.