I have a pie chart with dimensions 210*210 (see below). When I hide the legend the pie chart is not centered? Is this a bug? Is there any way to manually position the pie chart?
Thanks
<igCA:XamChart View3D="False" x:Name="chart" MinHeight="210" MinWidth="210"> <!-- Series --> <igCA:XamChart.Legend> <igCA:Legend Visible="False"/> </igCA:XamChart.Legend> <igCA:XamChart.Series> <igCA:Series ChartType="Pie"> <igCA:Series.DataPoints> <igCA:DataPoint Value="3" Fill="#FFD70005" Label="Italy"/> <igCA:DataPoint Value="5" Fill="#FF6CA224" Label="Spain"/> <igCA:DataPoint Value="4" Fill="#FF076CB0" Label="France"/> <igCA:DataPoint Value="7" Fill="#FFE6BE02" Label="China"/> <igCA:DataPoint Value="5" Fill="#FF543792" Label="Portugal"> </igCA:DataPoint> </igCA:Series.DataPoints> </igCA:Series> </igCA:XamChart.Series>
Hi,
To set the position for the Scene Margin and Margin type properties has to be used. This example shows how it could be done:
<igCA:XamChart.Scene> <igCA:Scene> <igCA:Scene.GridArea> <igCA:GridArea Margin="10,10,10,10" MarginType="Percent"/> </igCA:Scene.GridArea> </igCA:Scene> </igCA:XamChart.Scene> </igCA:XamChart>
Thanks,GoranS