Ahmed Hammami

Ahmed Hammami

  • NA
  • 1
  • 994

Windows phone app

Jun 4 2014 7:07 AM
Hello
I create a chart in my windows phone application with AmChart ,I want to put the selected value in the chart in a textBox How can i do this
Thnaks 
 This is my XAML CODE
 
        <amq:PieChart  x:Name="MyChart"  DataSource="{Binding Data}" ValueMemberPath="value" TitleMemberPath="axis"  Grid.ColumnSpan="3" Margin="0,175,10,0" />
And This My c# CODE 
 
public ObservableCollection<ItemData> _data = new ObservableCollection<ItemData>()
 {
 new ItemData() { axis = "Jan", value=5},
 
 new ItemData() { axis = "Apr", value=10}
 };
        public ObservableCollection<ItemData> Data { get { return _data; } }


        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            this.DataContext = this;
        }

        public class ItemData
        {
            public string axis { get; set; }
            public double value { get; set; }

        }