SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

I am using SCIStackedMountainRenderableSeries in my iOS application, I am always getting chart background as black grids, I want to make it clear or white background. How can I do that?

I have tried

sciChartSurface?.backgroundColor = UIColor.white
sciChartSurface?.applyThemeProvider(nil)

That did not worked, Please help.

Version
2.5.0
  • You must to post comments
0
0

Hello Vikas,

First of all, you might want to apply one of our light themes like so:

SCIThemeManager.applyTheme(toThemeable: surface, withThemeKey: SCIChart_ExpressionLightStyleKey)

Light Theme

If you want to have fully clear white background, just remove grid lines, bands and other parts – more information is available in our Axis Styling Documentation

    SCIThemeManager.applyTheme(toThemeable: surface, withThemeKey: SCIChart_ExpressionLightStyleKey)
    surface.backgroundColor = .white
    surface.renderableSeriesAreaFill = SCISolidBrushStyle(color: .white)
    xAxis.style.drawMajorBands = false
    xAxis.style.drawMajorGridLines = false
    xAxis.style.drawMinorGridLines = false
    yAxis.style.drawMajorBands = false
    yAxis.style.drawMajorGridLines = false
    yAxis.style.drawMinorGridLines = false

White Background

Hope that helps.

Best Regards,
Nazar R.
SciChart Developer

Images
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.