updating chart axes as well