RadCartesianChart background color defaults to White on iOS rather than Transparent

1 Answer 37 Views
Chart
Steve
Top achievements
Rank 1
Iron
Steve asked on 19 Jul 2023, 11:21 PM
The chart background color defaults to white on ios, rather than transparent as it does on Android / Windows.  Work around by setting the Background to your color of choice.

1 Answer, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 20 Jul 2023, 12:38 PM

Hi Steve,

Yes, this is correct and is expected behavior due to the native platform differences as the Chart control is not a pure MAUI-only element. Instead they are three separate native chart controls, raised up to .NET MAUI through compatibility handlers.

So, in the case of iOS, the default background is indeed white, thus if you want it to be transparent, you can override it bey setting the BackgroundColor="Transparent":

<telerik:RadCartesianChart x:Name="MyChart" BackgroundColor="Transparent">
   ...
</telerik:RadCartesianChart>

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Chart
Asked by
Steve
Top achievements
Rank 1
Iron
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or