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.

Customizing spacing between Multiple Pie Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

116949 Jul 8,2014 12:40 PM Jul 16,2014 01:46 AM WPF 7
loading
Tags: SfChart
Dario Quispe
Asked On July 8, 2014 12:40 PM

Hi,

when I create multiple pie chart, how can I set the spacing between each pie ?
(see image or run demo in in zip file )

thanks

Dario

Attachment: PieChartDemo_e38e5559.zip

Suresh S [Syncfusion]
Replied On July 9, 2014 08:43 AM

Hi Dario,


Thanks for using Syncfusion products.


We have analyzed the reported requirement. By setting margin property for each series we can manage spacing between multiple pie series. Also, we have modified your sample based on the requirement. Please download it from the given below location.


Please let us know if you require further assistance on this.


Regards,

Suresh S 


Attachment: PieChartDemo_e38e5559_fbe51be3.zip

Dario Quispe
Replied On July 10, 2014 09:52 AM

Thanks, it's work but I don't understand de logic of margin values and how it's calculated.

I created a better example using SeriesCollectionI created 6 pie charts and I have -2300 to -160 in margin value.
I found the values ​​by guessing...

Help me understanding the margin values effect please.




Attachment: WPFMultiplePieChart_253bab92.zip

Suresh S [Syncfusion]
Replied On July 11, 2014 08:28 AM

Hi Dario,


Thanks for your response. For pie series, while using multiple series by default uniform spacing is done. However, by setting margin property this spacing can be modified. While setting margin property the viewport height, width will be changed. Based on their values only the center point, radius were calculated accordingly. So, the spacing is also adjusted automatically based on given margin value.


Please let us know if you require further assistance on this.


Regards,

Suresh S


Dario Quispe
Replied On July 11, 2014 10:00 AM

ok, it's more complicated than I thought.
The spacing by default is too big...

What is the best solution that I can take for not having margin or minimizing it between each pie ?

Thanks,


Suresh S [Syncfusion]
Replied On July 14, 2014 08:19 AM

Hi Domenico,


Thanks for your response. As another approach PieCoefficient property can be used to customize series spacing. But the series radius will be altered. We have attached a sample demonstrating the use of PieCoefficient. Please download it from the given below location.


Please let us know if you require further assistance on this.


Regards,

Suresh S


Attachment: Pie_Chart_Demo_fa29681e.zip

Dario Quispe
Replied On July 14, 2014 08:49 AM

It's better PieCoefficient than Margin because it consider the window resize.

But how do I calculate the coefficient depending on the number of pie?

I will create pies chart dynamically using a SeriesCollection.

Thanks. 


Suresh S [Syncfusion]
Replied On July 16, 2014 01:46 AM

Hi Dario,


Thanks for your response. We have prepared sample with multiple pie series and spacing adjust depends upon its count. While adding more number of pie series, all the series have to adapt within the size of the window so inner series will be collide each other.


Please let us know if you require further assistance on this.


Regards,

Suresh S


Attachment: Pie_Chart_Demo_9ac2e05.zip

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.

;