How to change attributes (for example, font size, text color, etc.) of text above a specific panel in BarChart?

In this example, I want "- $ 5,000.00" in red and increase the font size for each text above the columns.
Here is the code:
@IBOutlet weak var barChartView: BarChartView! // init barChartView -------------------------------------- barChartView.descriptionText = "" barChartView.legend.enabled = false // grid lines barChartView.xAxis.drawAxisLineEnabled = false barChartView.xAxis.drawGridLinesEnabled = false barChartView.leftAxis.drawAxisLineEnabled = false barChartView.leftAxis.drawGridLinesEnabled = false barChartView.rightAxis.drawAxisLineEnabled = false barChartView.rightAxis.drawGridLinesEnabled = false // X-axis line barChartView.xAxis.drawAxisLineEnabled = true barChartView.xAxis.axisLineColor = axisGridsAndLabelsColor // X-axis labels barChartView.xAxis.labelTextColor = axisGridsAndLabelsColor barChartView.xAxis.labelPosition = .Bottom // Y-axis labels accountsBarChartView.leftAxis.labelTextColor = axisGridsAndLabelsColor accountsBarChartView.rightAxis.drawLabelsEnabled = false //--------------------------------------------------------- // bar chart data var dataPoints = [String]() var values = [Double]() var colors = [UIColor]() // build bar chart data... // dataEntries and barChartDataSet var dataEntries = [ChartDataEntry]() for i in 0..<dataPoints.count { let dataEntry = BarChartDataEntry(value: values[i], xIndex: i) dataEntries.append(dataEntry) } let barChartDataSet = BarChartDataSet(yVals: dataEntries, label: "") barChartDataSet.colors = colors // valueFormatter let currencyNumberFormatter = NSNumberFormatter() currencyNumberFormatter.numberStyle = .CurrencyStyle currencyNumberFormatter.minimumFractionDigits = 2 currencyNumberFormatter.maximumFractionDigits = 2 barChartDataSet.valueFormatter = currencyNumberFormatter // barChartData let barChartData = BarChartData(xVals: dataPoints, dataSet: barChartDataSet) barChartView.data = barChartData
source share