removed unnecessary variable in tests
add comment to Chart.calculateLabelMargin