How to remove the value label above each bar in bar chart for ios-charts

Viewed 12065

Each bar has a value above it, but whenever I get too many data entries graphed, these values are spilling over into each other and making themselves unreadable. The only way to edit these that I could find was setting them to either above or below each bar. However I would like to hide them completely. How do I do this in swift?

6 Answers

This does the trick for Swift 4

yourChartDataSet.drawValuesEnabled = false

In swift3 following line can do the job:

chartDataSet.valueTextColor = UIColor.clear
Related