We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Positioning the Pie Series

Thread ID:

Created:

Updated:

Platform:

Replies:

119570 Jul 9,2015 10:44 AM Jul 13,2015 03:37 AM WPF 3
loading
Tags: SfChart
Krishna Kumar Nanjundaprasad
Asked On July 9, 2015 10:44 AM

Hi,

Can you please let me know on how to re-position the PieSeries and override it's default padding in the chart area? Because I don't want it to be centered and padded always!

Please refer to the attached images and the red lines are drawn to help you understand my concerns.

Best regards,
Krishna Kumar

Attachment: PieSeries_6f0ffc6f.zip

Rachel A [Syncfusion]
Replied On July 10, 2015 05:45 AM

Hi Krishna,

Thank you for contacting Syncfusion support.

We can achieve your requirement by setting Margin for the pie series as shown in the below code snippet.

[XAML]

        <chart:PieSeries   x:Name="series" Palette="Metro"   Margin="-50,-50,10,-50"   XBindingPath="Category"  YBindingPath="Year2014" ItemsSource="{Binding SalesCollection}">
            </chart:PieSeries>


If you want to re-position the legend, the you can use LegendPosition property in ChartLegend as shown in the below code snippet.

[XAML]

<chart:SfChart.Legend>

       <chart:ChartLegend LegendPosition="Inside"  DockPosition="Right" />                  </chart:SfChart.Legend>


Please let us know if you need any further assistance.

Thanks,
Rachel. A

Krishna Kumar Nanjundaprasad
Replied On July 10, 2015 06:41 AM

Hi Rachel,

Thank you very much for your quick response. To be frank, I knew negative margins would work and it worked indeed. It solved my problem for the Proof of Concept that I am working on but the requirements will always not be like this. There might be a situation wherein we can't blindly set the negative margins to adjust the position of the chart series. 

If I am not asking too much, can you please treat the positioning of a chart series as a change request and implement it? I feel that the Chart Area is padded and centered so that it's content will also inherit this style. It would be helpful if we have some control to set such values for ChartArea in SfChart.

I wish you a pleasant day and a wonderful weekend.

Best regards,
Krishna Kumar

Rachel A [Syncfusion]
Replied On July 13, 2015 03:37 AM

Hi Krishna,

We have created a support incident under your account to track the status of this reported query.
 
Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Thanks,
Rachel. A

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;