Hello all,
I'm trying to set the background color of my line chart (RadCartesianChart). This is the code that i'm using:
```
var chart = new RadCartesianChart
{
BackgroundColor = Color.Black,
VerticalOptions = LayoutOptions.FillAndExpand,
HorizontalOptions = LayoutOptions.Fill,
HeightRequest = Device.RuntimePlatform == Device.Android ? 200 : 250,
HorizontalAxis = new CategoricalAxis
{
LabelTextColor = AppResources.Get<Color>("TextColor"),
LabelFontSize = 10,
LabelFitMode = AxisLabelFitMode.Rotate,
LabelFormatter = new HorizontalAxisLabelFormatter()
},
VerticalAxis = new NumericalAxis
{
LabelTextColor = AppResources.Get<Color>("TextColor"),
LabelFontSize = 10,
LabelFormatter = new VerticalAxisLabelFormatter()
},
};
```
However, when i run this in the iOS simulator, the result is as follows (see attachment).
The background color stays white. The labels do go white, but the chart itself does not.
When i try to do this with a bar chart, it does work. On Android the chart also has a black background color.
Does anybody know what I am missing?
Thanks in advance,
Reense