I am displaying a chart which has 10 points on the X axis and 10 points on the Y axis. I have an update function which adds a value to the X axis and Y axis each 1 second. I am removing values from the beginning of the array (using shift) for each new value added. I want the chart to plot 10 X vs Y values in the screen each time but the values keep on increasing and the chart looks cluttered. Can you please help me fix this problem?