Remove padding for chart's axies and series
I have a chart that is placed in my border. I want to configure the chart that way to remove unwanted padding of axies and series in the PlotArea.
My code:
<charts:SfPolarChart GridLineType="Circle" Margin="0">
<charts:SfPolarChart.PlotAreaBackgroundView>
<AbsoluteLayout Background="Blue" Padding="0" />
</charts:SfPolarChart.PlotAreaBackgroundView>
<charts:SfPolarChart.PrimaryAxis>
<charts:CategoryAxis Interval="1">
<charts:CategoryAxis.AxisLineStyle>
<charts:ChartLineStyle StrokeWidth="0.5" Stroke="White"/>
</charts:CategoryAxis.AxisLineStyle>
<charts:CategoryAxis.LabelStyle>
<charts:ChartAxisLabelStyle TextColor="White"/>
</charts:CategoryAxis.LabelStyle>
</charts:CategoryAxis>
</charts:SfPolarChart.PrimaryAxis>
<charts:SfPolarChart.SecondaryAxis>
<charts:NumericalAxis Minimum="0" Maximum="{Binding BestSkillsDataMaximum}">
<charts:CategoryAxis.AxisLineStyle>
<charts:ChartLineStyle StrokeWidth="0" Stroke="White"/>
</charts:CategoryAxis.AxisLineStyle>
<charts:NumericalAxis.LabelStyle>
<charts:ChartAxisLabelStyle TextColor="White"/>
</charts:NumericalAxis.LabelStyle>
</charts:NumericalAxis>
</charts:SfPolarChart.SecondaryAxis>
<charts:PolarAreaSeries
Label="Best Points"
ItemsSource="{Binding BestSkillsData}"
XBindingPath="Category"
YBindingPath="Value"
Fill="{x:Static Brush.DarkGray}"
Stroke="{x:Static Brush.LightGray}"
StrokeWidth="1"/>
<charts:PolarAreaSeries
Label="Current Points"
ItemsSource="{Binding CurrSkillsData}"
XBindingPath="Category"
YBindingPath="Value"
Fill="{x:Static Brush.Green}"
Stroke="{x:Static Brush.LightGreen}"
StrokeWidth="1"/>
</charts:SfPolarChart>
Please, help
Hi Andrey,
Thank you for reaching out to us. We would like to let you know that the polar chart axis radius will be calculated based on the largest axis label size, the padding you mentioned was the actual width of largest text would place. Currently, the .NET MAUI SfPolarChart does not support manually reducing the plot area size. We have already logged a feature request for this and plan to implement it in any of our upcoming releases. We will notify you as soon as this feature is available.
You can track the progress using the following feedback link: Provide Support for Resizing the Plotting Area in .NET MAUI SfPolarChart in .NET MAUI | Feedback Po…
We will prioritize the features in every release based on the demands, and we do not have an immediate plan to implement this since we are committed to already planned work. So, this feature will be available for any of our upcoming releases.
Please cast your vote to make it count, and if you have any more specifications or suggestions for the feature request, you can add them as a comment in the feedback portal.
Regards,
Vidyalakshmi M.
- 1 Reply
- 2 Participants
- Marked answer
-
AD Andrey Davidchyk
- Sep 10, 2025 10:04 AM UTC
- Sep 12, 2025 01:14 PM UTC