barChartView.backgroundColor refers to a UIView from which your BarChartView is a preview. You need to turn to the base class of BarChart itself to change the properties of bars or grids behind bars. To change the color of the space behind the bars, try:
barChartView.gridBackgroundColor = UIColor.redcolor()
Japes source
share