Added the possibility to add margin to the chart.