This is a migrated thread and some comments may be shown as answers.

Create 3D Pie chart

5 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ravindran Siva Sankar
Top achievements
Rank 1
Ravindran Siva Sankar asked on 20 Mar 2013, 05:41 AM
Hi we want to make a 3D Pie Chart in Telerik Reporting Report.

Can you guide me to get the 3D Pie Chart.

My Code Is below:

chartCS_HW_Quontity.IntelligentLabelsEnabled =

 

false;

 

chartCS_HW_Quontity.ChartTitle.TextBlock.Text = "Title Text";

 

reportAccess.getTotHWMachine(loc, dept, projid).ToString();

 

chartCS_HW_Quontity.PlotArea.Appearance.Border.Width = 0F;

chartCS_HW_Quontity.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.

 

Color.Transparent;

 

chartCS_HW_Quontity.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.

 

Color.Transparent;

 

chartCS_HW_Quontity.Legend.Appearance.Border.Visible =

 

false;ChartSeries serie = new ChartSeries();

 

serie.Type =

 

ChartSeriesType.Pie;

 

serie.Clear();

serie.Appearance.LegendDisplayMode = Telerik.Reporting.Charting.

 

ChartSeriesLegendDisplayMode.ItemLabels;

 

 

 

DataTable dt = new DataTable();

 

dt = reportModel.getQuontityOfHW(loc, dept, projid);

 

 

for (int i = 0; i < dt.Rows.Count ; i++)

 

{

 

 

ChartSeriesItem item = new ChartSeriesItem();

 

item.YValue =

 

Convert.ToDouble(dt.Rows[i]["count"].ToString());

 

item.Name = dt.Rows[i][

 

"papersize"].ToString();

 

item.Appearance.Exploded =

 

true;

 

item.Label.TextBlock.Text =

 

/*dt.Rows[i]["papersize"].ToString() +*/ "#%";

 

item.Appearance.FillStyle.FillType =

 

FillType.Solid;

 

 

 

if (i==0)

 

item.Appearance.FillStyle.MainColor =

 

Color.FromArgb(79,129,189);// Color.Blue;

 

 

 

if (i == 1)

 

item.Appearance.FillStyle.MainColor =

 

Color.FromArgb(192, 80, 77);

 

 

 

if (i == 2)

 

item.Appearance.FillStyle.MainColor =

 

Color.FromArgb(155, 187, 89);

 

 

 

if (i == 3)

 

item.Appearance.FillStyle.MainColor =

 

Color.FromArgb(128, 100, 162);

 

item.Label.TextBlock.Appearance.TextProperties.Color =

 

Color.Black;

 

serie.Items.Add(item);

}

 

chartCS_HW_Quontity.Series.Add(serie);

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Mar 2013, 02:41 PM
Hi Siva,

The report Chart does not support 3D charts. However if you're using another control that supports 3D charts and has an API to save the chart as an image, you can display the generated chart in a Telerik Report via the PictureBox item. You can see such an example in the Use asp:chart in Telerik Reports code library.

Generally check out the RadChart for WPF. This control supports 3D charts and you can export it to image. If you are interested check out the following help articles:

Regards,
Peter
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

0
Ravindran Siva Sankar
Top achievements
Rank 1
answered on 21 Mar 2013, 06:06 PM
Actually we Purchased DevTools.

I cannot understand that another controls that supports 3D Chart means what is this?

Now We are using Web Application with MVC3 Razor.

In this, how we can use another controls except Telerik Reporting PieChart.

Please Guide me to achieve my Expected Results.
0
Peter
Telerik team
answered on 26 Mar 2013, 01:30 PM
Hello Siva,

You can use any control that renders an image in Telerik Reporting PictureBox. Just set the PictureBox.Value to an user function that returns the desired image as shown in the following code snippet:

public static Image GetControlImage()
{
     var control = new SomeControlCapableToRenderImage();
 
     //setup the control
 
     //invoke the control image rendering method
     return control.RenderImage();  
}

Kind regards,
Peter
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

0
J
Top achievements
Rank 1
answered on 30 Nov 2017, 08:53 AM

Does the report chart support 3D charts already? I would need a 3D Pie chart.

Thanks.

0
Ivan Hristov
Telerik team
answered on 04 Dec 2017, 12:33 PM
Hello,

Supporting a 3D pie chart is not in our immediate plans. We do not believe this feature will add significant value to our data presentation possibilities, but quite the opposite - when misused, it can deliver incomprehensible or even misleading view over the presented data.

You can review this article that gives more details about using the 3D-effects in charts and reports, along with some recommended practices and approaches for creating readable and understandable reports. We hope you will find the provided information useful.

Regards,
Ivan Hristov
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ravindran Siva Sankar
Top achievements
Rank 1
Answers by
Peter
Telerik team
Ravindran Siva Sankar
Top achievements
Rank 1
J
Top achievements
Rank 1
Ivan Hristov
Telerik team
Share this question
or