Responsive graph
added year in function