transition line graph and set right labels