Add period selection method for chart