2

I'm using the library Charts for Swift and by default it has a black background.

I just updated to version 3.0.2 and still have a default black background behind my chart. I added a UIView in Storyboard and set the class to LineChartView, modules Charts, what do I have to do to remove that black background?

I also have tried doing this:

self.lineChart.backgroundColor = .clear

DevB2F
  • 4,674
  • 4
  • 36
  • 60
Eury Pérez Beltré
  • 2,017
  • 20
  • 28

1 Answers1

1

Add this line in the viewDidLoad function:

self.view.backgroundColor = UIColor.white
Anh Pham
  • 2,108
  • 9
  • 18
  • 29
Yiyun Tan
  • 21
  • 2