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. Image for the cookie policy date
close icon

Customizing spacing between Multiple Pie Chart

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

7 Replies

SS Suresh S Syncfusion Team July 9, 2014 12:43 PM UTC

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


DQ Dario Quispe July 10, 2014 01:52 PM UTC

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


SS Suresh S Syncfusion Team July 11, 2014 12:28 PM UTC

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



DQ Dario Quispe July 11, 2014 02:00 PM UTC

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,



SS Suresh S Syncfusion Team July 14, 2014 12:19 PM UTC

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


DQ Dario Quispe July 14, 2014 12:49 PM UTC

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. 



SS Suresh S Syncfusion Team July 16, 2014 05:46 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon