Toggle buttons accurately update the chart