Prevented datapoints out of range of the graph from being added to the svg.