add functionality to xAxisLabels switch