swift - ios-charts background color -


hi change background color of ios-chart.

i tried:

barchartview.backgroundcolor = uicolor.redcolor() 

but changed color around bargraph, not color inside, ie. behind vertical bars.

any idea?

barchartview.backgroundcolor references uiview of barchartview subview. need reference base class of barchart change properties of bars or grid behind bars. change color of space behind bars try:

barchartview.gridbackgroundcolor = uicolor.redcolor() 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -