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
Post a Comment