Creating and binding Pie Chart in C#

Hello,

I am writing an application in UWP. I would like to manipulate the 3D Pie chart in C#.

I have gone through quite some examples but all create and bind the chart in XAML.

Is there a way to create and bind the 3D piechart in C#?

Thank you.

2 Replies

DS Durgadevi Selvaraj Syncfusion Team November 20, 2017 10:23 AM UTC

Hi Lovelesh, 
 
Thanks for contacting Syncfusion Support. 
 
We can achieve your requirement of creating pie chart  in C# by using the following code, 
 
C# 
//Initialize the chart 
 
SfChart3D chart3D = new SfChart3D(){Header= "Fruit Preferences"}; 
 
 
//Initialize the series 
PieSeries3D pie3D = new PieSeries3D() 
{ 
       ItemsSource = new ViewModel().Collection, 
       XBindingPath = "XValue", 
       YBindingPath ="YValue", 
}; 
           
//Adding series to the chart series collection 
chart3D.Series.Add(pie3D); 
 
//Setting chart as a content of MainPage 
this.Content = chart3D; 
 
 
Please find the output screenshot, 
 
 
We have prepared a sample for your reference and it can be downloaded from the below link, 
Sample: SfChart_Sample
 
 
Regards,  
Durgadevi S 



PK Phil Kiba replied to Lovelesh Beeharry March 13, 2019 12:02 PM UTC

Hello,

I am writing an application in UWP. I would like to manipulate the 3D Pie chart in C#.

I have gone through quite some examples but all create and bind the chart in XAML.

Is there a way to create and bind the 3D piechart in C#?

Thank you.

ZetExcel is an excellent excel SDK for.Net framework. This is very useful for developing high-performance applications to create, edit, convert or print excel spreadsheet file formats without requiring Microsoft. I have used this Excel Spreadsheet Programming API from (https://zetexcel.com/). you can try

Loader.
Up arrow icon