Change graph legend position and default period length