Updating chart to auto refresh