Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
How to create a 2D Pie Graph
posted
This may sound like a silly question, but how do you make a 2D pie chart using XamChart? I trolled through the docs and examples, and created 3D charts just fine, but somehow I managed to miss the instructions for their flatter bretheren. Can anyone help out?
  • 10880
    posted

    There is a View3D property property off the chart object.  It defaults to false but if it is set to true the series will dispaly in 3d format.

     

    <igCA:XamChart View3D="False" >

    <igCA:XamChart.Series>

    <igCA:Series ChartType="Pie" Fill="#FFD21717" Stroke="#FF000000">

    <igCA:Series.DataPoints>

    <igCA:DataPoint Value="5" />

    <igCA:DataPoint Value="7" />

    <igCA:DataPoint Value="4" />

    </igCA:Series.DataPoints>

    </igCA:Series>

    </igCA:XamChart.Series>

    </igCA:XamChart>