I want to set multiple background colors in a chart view. A single color can be set in a background of the chart view but there is no way to set multiple colors.
Percentage-wise wants to add background color 0% to 20% - Red color, 21% to 60% - White and 61% to 100% in green color
I think you are looking for CAGradientLayer, it might help you.
The view is where you would like to apply the collors.
If you want more details: https://developer.apple.com/documentation/quartzcore/cagradientlayer