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
<amq:PieChart x:Name="MyChart" DataSource="{Binding Data}" ValueMemberPath="value" TitleMemberPath="axis" Grid.ColumnSpan="3" Margin="0,175,10,0" />
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; }
}