Update variables in graph title upon value change