Adapt graph to listed interval for month and year