fixed loop by years, removed empty data intervals on the plot