To create year on year comparisons, create a new chart or edit an existing one and go to Chart Name & Settings.

In Chart Name & Settings, turn the “Comparison period” toggle to on.

Select the period for comparison.
Choose month, quarter, quarter to date, full year, or year to date.

Select number of prior and future periods for each Chart Series.