How to hide labels in ios-charts?
self.chartView.xAxis.drawGridLinesEnabled = falseself.chartView.leftAxis.drawLabelsEnabled = falseself.chartView.legend.enabled = false
will do the job
self.chartView.drawEntryLabelsEnabled = false
This will hide the label from PieChart
and shows only value. Also shows legend with label texts.
For only hide the top one:
graphCell.lineChartView.leftAxis.drawTopYLabelEntryEnabled = false