Added stackLabels.format option analogous to dataLabels.format. Closes #1837.