Hi Carlos,
Greetings from Syncfusion.
We have analyzed your query and your sample, and we found that the margin applied for SfChart. You can resolve this problem by setting margin SfChart’s container instead of setting the value to SfChart as per the below code snippet.
Code snippet
<Grid Margin="25,25,25,22" Grid.Row="1">
<chart:SfChart Header="{Binding Path=ChartTitle}" Name="linechart"
Background="White" VerticalAlignment="Bottom" AreaBorderThickness="0,1,1,1">
..
<chart:SfChart.PrimaryAxis>
<chart:CategoryAxis EdgeLabelsDrawingMode="Fit"
PlotOffset="10"
HeaderTemplate="{StaticResource xheadertemplate}"
/>
</chart:SfChart.PrimaryAxis>
..
</Grid>
|
Also, we suggest to set EdgeLabelsDrawingMode as Fit to view edge labels clearly in exported image. We have modified your sample based on above explanation, please find the sample from the following location.
Please let us know if you have any other queries.
Thanks,
Muneesh Kumar G.