Reworking the chart element scaffold to make the margins an explicit group element. Additionally, I extracted the axis elements out of the chartArea group since they are supposed to frame the chart area not be enclosed by it.