I wanna make chart area background color white.
And I implemented it like below.
surface.xAxes.defaultAxis()?.style.gridBandBrush.color = .white
surface.yAxes.defaultAxis()?.style.gridBandBrush.color = .white
Then, some part became white, but not whole area.
I wanna remove those black areas, so I used theme manager, and it worked.
SCIThemeManager.applyTheme(toThemeable: surface, withThemeKey: “SciChart_Bright_Spark”)
surface.xAxes.defaultAxis()?.style.gridBandBrush.color = .white
surface.yAxes.defaultAxis()?.style.gridBandBrush.color = .white
But, this is not reasonable. I use that theme, only to change background color.
Is there another way to acheive white background?
- Minsub Kim asked 5 years ago
- You must login to post comments
Weird squares (its asked a lot) are the Axis Bands which shows you which parts are which
Please have a look at the article Styling and Theming iOS Chart Parts
// Style the XAxis Bands (fill between axis gridlines)
xAxis.style.gridBandBrush = SCISolidBrushStyle(colorCode: 0x55ff6655)
Also you can set whether the bands draw or not with this code
yAxis.style.drawAxisBands = false
Best regards,
Andrew
- Andrew Burnett-Thompson answered 5 years ago
- You must login to post comments
Please login first to submit.