Hi everyone
Does anyone know the best way to increase the size of the pie chart, and for that matter other charts. I dont mean the legend I just want the actual chart itself to take up available space?
Thanks in advance
Hello,
You can do this by setting your Scene and GridArea's Margin properties to take up percentage area of the control like so:
<igCA:XamChart Name="xamChart1" >
<igCA:XamChart.Scene>
<igCA:Scene MarginType="Percent" Margin="0" >
<igCA:Scene.GridArea>
<igCA:GridArea MarginType="Percent" Margin="0" />
</igCA:Scene.GridArea>
</igCA:Scene>
</igCA:XamChart.Scene>
...
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hi Petar
Thats almost perfect thanks for your prompt reply. That is perfect with the pie chart. I was just wondering what you would do with a bar chart, say with these settings the legend overlays the chart?
Interested to know how you would best make use of the space without compromising the components of the scene?
Thanks for you help so far
Thank you kindly Petar from your support on this matter. You have helped greatly
Hi ,
You can do the same for your Legend like so:
<igCA:XamChart.Legend>
<igCA:Legend MarginType="Percent" Margin="20, 80, 20, 0" />
</igCA:XamChart.Legend>
Just make sure that the combined margins of the Legend and Scene don’t exceed 100% and also those of the margins as well - like Top Bottom.
Hope this is what you needed. Let me know if you need any further assistance with this.