Fix to eliminate wonky graph lines when data points are irregularly placed.