Added the possibility to add margis to the chart.