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

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.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+