How to hide labels in ios-charts?

前端 未结 3 1918
伪装坚强ぢ
伪装坚强ぢ 2020-12-15 16:34

I need disable some elements from my chart.

I used the iOS-charts library in (Swift 2), however I can\'t understand how to disable the following:

  1. H

3条回答
  •  时光说笑
    2020-12-15 16:59

    self.chartView.xAxis.drawGridLinesEnabled = false
    self.chartView.leftAxis.drawLabelsEnabled = false
    self.chartView.legend.enabled = false
    

    will do the job

提交回复
热议问题