Selecting data points in the graph