Made years in graphs dynamic.