Add labelFormat attribute to CategoryAxisBase and CategoryAxis.

Fixes #1632.