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!
Here is a sample which you can use to draw piechart with two partitions…..in windows phone7 using xaml code……..