Pre loader

Cannnot remove weird square areas

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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?

Version
2.2.1.2265
Images
  • You must to post comments
1
0

Weird squares (its asked a lot) are the Axis Bands which shows you which parts are which

enter image description here

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies