locked
MSchart 3D piechart RRS feed

  • Question

  • I created a 3D pie chart using MS chart. The Pie is rendered as a full circle. I want the pie to look like an eclipse or oval. I can't find any property in the Series or Area3D properties. Is there a property that defined the depth of the pie chart to look like an eclipse. Any input is appreciated.

    Thanks

    Wednesday, May 18, 2011 1:37 AM

Answers

  • Use Area3DStyle.Inclination. A value of 0 will render a 2D looking circle, anything closer to -90 or 90 will make it more oval.

    The Area3DStyle.PointDepth property defines the thickness of the pie.

    Wednesday, May 18, 2011 8:29 AM
    Moderator

All replies

  • Use Area3DStyle.Inclination. A value of 0 will render a 2D looking circle, anything closer to -90 or 90 will make it more oval.

    The Area3DStyle.PointDepth property defines the thickness of the pie.

    Wednesday, May 18, 2011 8:29 AM
    Moderator
  • It worked. Thanks for the help. One more question.

    The piechart width and height are set to (360,250).  I want to increase the size of the plotted pie. Is there a property to specify/increase the size/width of the pie.

    Thanks

    pieChart.ChartAreas[

    "Default"].Area3DStyle.Enable3D = true

    ;

    pieChart.ChartAreas[

    "Default"

    ].Area3DStyle.Inclination = 60;

    pieChart.ChartAreas[

    "Default"

    ].Area3DStyle.Rotation = 45;

    pieChart.ChartAreas[

    "Default"].InnerPlotPosition = new ElementPosition

    (0, 0, 100, 100);

    pieChart.ChartAreas[

    "Default"

    ].Area3DStyle.PointDepth = 100;

    pieChart.ChartAreas[

    "Default"].AxisX.IsMarginVisible = false

    ;

    Wednesday, May 18, 2011 5:48 PM
  • You can also set the Area.Position to (0, 0, 100, 100) which will probably make the pie slightly bigger. Though other chart areas or legends you may have on the chart might get overlapped by this.

    Apart from setting the Area.Position and .InnerPlotPosition I don't think there's much you can do.

    Thursday, May 19, 2011 9:39 AM
    Moderator
  • It worked. Thanks for the help. One more question.

    Thanks

    When someone answers your question, please mark it as the answer.

    Thanks!


    Ed Price a.k.a User Ed, Microsoft Experience Program Manager (Blog, Twitter, Wiki)
    Saturday, January 21, 2012 3:19 AM