Calculate the margin offset initially and then we don't need to worry about subtracting it over and over again when drawing the chart.