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
605
Piechart to look like a Semicircle
posted

Hello,

         I am new to this XamCharts, i want a Piechart to look like a Semicircle(only 180 degrees) and want to display 2 sectors in 2 different colors.Is this possible? please let me know ..Thanks in advance

  • 9836
    Suggested Answer
    posted

    Hello,

    You can try this:

    <igCA:XamChart x:Name="xamChart1">
                <igCA:XamChart.Series>
                    <igCA:Series ChartType="Pie" >
                        <igCA:Series.DataPoints>
                                <igCA:DataPoint Value="50" Fill="Transparent" StrokeThickness="0"/>
                                <igCA:DataPoint Value="25" Fill="Red" />
                                <igCA:DataPoint Value="25" Fill="Blue" />
                        </igCA:Series.DataPoints>
                    </igCA:Series>
                </igCA:XamChart.Series>
    </igCA:XamChart>

    Hope this helps

    Vlad