Changed 'connected' lineMode to support thresholds

This resolves an issue where lineMode=connected doesn't draw a
constant line across the graph when there is only 1 datapoint.