fix year range issue of graph