title: windows phone charting using XML File
body: <p>I want to create a chart using AmChart and parse data from Xml File . i excut this code but no chart i don't know where is my error </p>
  
  <pre><code>This is my xml file
  &lt;Results&gt;
  
  &lt;Chart&gt;
  &lt;ChartName&gt;Ahmed&lt;/ChartName&gt;
  &lt;Category&gt;25&lt;/Category&gt;
  &lt;/Chart&gt;
  &lt;Chart&gt;
  &lt;ChartName&gt;Test&lt;/ChartName&gt;
  &lt;Category&gt;25&lt;/Category&gt;
  
  &lt;/Chart&gt;
  &lt;Chart&gt;
  
  &lt;ChartName&gt;PFE&lt;/ChartName&gt;
  &lt;Category&gt;50&lt;/Category&gt;
  &lt;/Chart&gt;
  
   &lt;/Results&gt;
  </code></pre>
  
  <p>and XAML code </p>
  
  <pre><code>  &lt;amq:PieChart x:Name="Pie" Height="500" Width="400"  TitleMemberPath="{Binding           ChartName}"  ValueMemberPath="{Binding Category}"&gt;
  
          &lt;/amq:PieChart&gt;
  </code></pre>
  
  <p>My code behind 
        public partial class Page1 : PhoneApplicationPage
           {</p>
  
  <pre><code>    public Page1()
      {
          InitializeComponent();
          XDocument data = XDocument.Load("Results.xml");
  
          var results = from query in data.Descendants("Chart")
                        select new ResultModel((string)query.Element("ChartName"),
                         (int)query.Element("Category"));
  
      }
  
  }
  public class Test {
      public string ChartName { get; set; }
      public int Category { get; set; }
  
      public Test(string label, int category)
      { ChartName = label; Category = category; } 
  }
  </code></pre>
  
  <p>}</p>