updating chart and axes