Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8705963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:29:42+00:00 2026-06-13T03:29:42+00:00

Is there any way to draw pie chart in WP7? If not, is there

  • 0

Is there any way to draw pie chart in WP7?

If not, is there a way to draw an ellipse which has a sector based on user value?

I have seen some third party tools to draw pie chart but I am not satisfied wit that..

Please provide any code or any other way to get the pie chart

I have tried the following, but it doesn’t work:

        EllipseGeometry OuterEllipse = new EllipseGeometry();
        EllipseGeometry InnerEllipse = new EllipseGeometry();
        OuterEllipse.Center = new Point(100, 100);
        OuterEllipse.RadiusX = 100;
        OuterEllipse.RadiusY = 100;

        InnerEllipse.Center = new Point(100, 100);
        InnerEllipse.RadiusX = 90;
        InnerEllipse.RadiusY = 90;

        System.Windows.Shapes.Path path = new System.Windows.Shapes.Path();
        System.Windows.Shapes.Path path1 = new System.Windows.Shapes.Path();

        SolidColorBrush solidbrush = new SolidColorBrush(Colors.Blue);
        path.Fill = solidbrush;
        path.Data = OuterEllipse;

        SolidColorBrush solidbrush1 = new SolidColorBrush(Colors.Yellow);
        path1.Fill = solidbrush1;
        path1.Data = InnerEllipse;

        Chart_stackPanel.Children.Add(path);
        Chart_stackPanel.Children.Add(path1);`

Any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:29:43+00:00Added an answer on June 13, 2026 at 3:29 am

    Here is a sample which you can use to draw piechart with two partitions…..in windows phone7 using xaml code……..

            <TextBlock Height="31" HorizontalAlignment="Left" Margin="165,9,0,0" Name="Dashboard_Head_Block" Text="dashboard" Foreground="GreenYellow" FontFamily="Times New Roman" FontSize="26" VerticalAlignment="Top" Width="124" />
            <TextBlock Height="30" FontWeight="Bold" HorizontalAlignment="Left" Margin="12,48,0,0" Name="storageDetails_textBlock" Text="mystorage details" VerticalAlignment="Top" Width="175" />
            <Border Name="ChartBorder" BorderBrush="GreenYellow" CornerRadius="20" BorderThickness="1" Margin="6,82,8,363">
                 <StackPanel Background="Black" x:Name="DashBoardOuter_Panel" Loaded="DashBoardOuter_Panel_Loaded" Margin="3,6,7,6">
                    <Border Name="PieBorder" BorderBrush="BlueViolet" BorderThickness="5" HorizontalAlignment="Right" Height="214" Margin="0,50,8,0" Width="150">
                        <StackPanel Margin="3,2,3,3">
                            <Rectangle Name="UsedRect"  Height="36" Margin="0,30,81,0" StrokeStartLineCap="Round" Stroke="Green" StrokeThickness="5" StrokeMiterLimit="50" StrokeLineJoin="Round" Width="37" >
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                                        <GradientStop Color="Black" Offset="0"/>
                                        <GradientStop Color="#FF092F7A" Offset="0.613"/>
                                        <GradientStop Color="#FF444AA3" Offset="0.335"/>
                                        <GradientStop Color="#FF4F55C0"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <TextBlock Name="Used_TextBlock"  Margin="45,-35,0,0" Height="34" TextWrapping="Wrap" Text="Used" Width="69" />
                            <Rectangle Name="UnusedRect" Height="34" Margin="-80,60,0,0" StrokeStartLineCap="Round" Stroke="Green" StrokeThickness="5" StrokeMiterLimit="50" StrokeLineJoin="Round" Width="40">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                                        <GradientStop Color="Black" Offset="0"/>
                                        <GradientStop Color="#FF84DE2F" Offset="1"/>
                                        <GradientStop Color="#FF345812" Offset="0.017"/>
                                        <GradientStop Color="#FF2B4E09" Offset="0.487"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <TextBlock Name="Unused_TextBlock" Height="31" Margin="51,-35,8,0" TextWrapping="Wrap" Text="Unused" Width="71" />
                        </StackPanel>
                    </Border>
                 </StackPanel>
              </Border>
                <StackPanel Background="Black" Height="291" HorizontalAlignment="Left" x:Name="Dashboard_Panel" VerticalAlignment="Top" Width="279" Margin="12,93,0,0" RenderTransformOrigin="0.57,0.581">
                    <StackPanel.Projection>
                        <PlaneProjection x:Name="DStack_Plane"></PlaneProjection>
                    </StackPanel.Projection>
                    <StackPanel.Resources>
                        <Storyboard x:Name="DOuter_Panel">
                            <DoubleAnimation Storyboard.TargetName="DStack_Plane"
                             Storyboard.TargetProperty="RotationX"
                             From="0" To="360" Duration="0:0:1" />
                        </Storyboard>
                    </StackPanel.Resources>
                    <Ellipse Height="291" Margin="8,0" StrokeStartLineCap="Round" Stroke="Green" StrokeThickness="5" StrokeMiterLimit="50" StrokeLineJoin="Round">
                        <Ellipse.Fill>
                            <RadialGradientBrush>
                                <GradientStop Color="Black" Offset="0"/>
                                <GradientStop Color="#FF113987" Offset="1"/>
                                <GradientStop Color="#FF444AA3" Offset="0.683"/>
                                <GradientStop Color="#FF252B99"/>
                            </RadialGradientBrush>
                        </Ellipse.Fill>
                    </Ellipse>
                    <es:Arc ArcThickness="1" ArcThicknessUnit="Percent" EndAngle="360" Height="288" Margin="10,-290,8,0" StrokeStartLineCap="Round" Stretch="None" Stroke="Green" StrokeThickness="5" StrokeMiterLimit="50" StrokeLineJoin="Round" StartAngle="95" UseLayoutRounding="False">
                        <es:Arc.Fill>
                            <RadialGradientBrush>
                                <GradientStop Color="#FF3AAF22" Offset="0.652"/>
                                <GradientStop Color="#FF1B700C" Offset="0.996"/>
                                <GradientStop Color="#FF258914"/>
                            </RadialGradientBrush>
                        </es:Arc.Fill>
                    </es:Arc>
                </StackPanel>
                <Ellipse HorizontalAlignment="Left" Height="36" Margin="145,215,0,0" StrokeStartLineCap="Round" Stroke="#FF252B99" StrokeThickness="5" StrokeMiterLimit="50" StrokeLineJoin="Round" VerticalAlignment="Top" Width="35" RenderTransformOrigin="0.871,1.653">
                    <Ellipse.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#FF6162B4" Offset="0.165"/>
                            <GradientStop Color="#FF161760" Offset="0.457"/>
                            <GradientStop Color="#FF5455AD" Offset="0.761"/>
                        </RadialGradientBrush>
                    </Ellipse.Fill>
                </Ellipse>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an image on which I draw a rectangle. Is there any way
Is there any simple way how to draw obliquely strike through on TextView? Now
Is there any way to use Google's API to retrieve a user's current zipcode
Is there any way in which I can automatically convert a Custom Class Object
Is there any way to force Flex to draw empty PieChart when all data
Is there any way I could draw screenshot design of Silverlight application using Visio?
Is there any better way to draw a black horizontal line than defining layout
when using OnRender to draw something on the screen, is there any way to
I have used to draw pie chart using canvas.. There are approximately 10 arcs
Is there any way to draw on the desktop background in WIN32 and also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.