limit the number of points on a chart