Replace the getPeriodsHeight by the getPeriodsConfiguration function and add the createPeriod function.
Allow a better positioning of the periods label in the graph.