refactor out threee day graph