问题
I have working on Windows Phone 8 app and i am trying to implement Charting library.
I have used the charting example given here :http://mobile.dzone.com/articles/mango-sample-chart-data
Its good, but i am not able to customize it.
3 issues is :
1) Onclick of slice i need to get the value.
2) How to add Double tap ?
3) legends should be at the bottom aligned horizontally.
Here is the screen shot.
EDIT
This is my XAML file:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,0,0">
<charts:PieChart Width="400"
Name="pieChart"
Height="400"
DoubleTap="pieChart_DoubleTap"
Tap="PieChart_Tap"
ValueMemberPath="Value"
TitleMemberPath="title "
Background="Black">
<charts:PieChart.Brushes>
<RadialGradientBrush GradientOrigin="0,0" Center="0,0">
<GradientStop Offset="0" Color="#73C766" />
<GradientStop Offset="1" Color="#73C766" />
</RadialGradientBrush>
<RadialGradientBrush GradientOrigin="0,0" Center="0,0">
<GradientStop Offset="0" Color="#6668C7" />
<GradientStop Offset="1" Color="#6668C7" />
</RadialGradientBrush>
<RadialGradientBrush GradientOrigin="0,0" Center="0,0">
<GradientStop Offset="0" Color="#C766C7" />
<GradientStop Offset="1" Color="#C766C7" />
</RadialGradientBrush>
</charts:PieChart.Brushes>
<charts:PieChart.DataSource>
<local:PieDataCollection>
<local:PieData title="ABC" Value="100"></local:PieData>
<local:PieData title="XYZ" Value="100"></local:PieData>
<local:PieData title="PQR" Value="100"></local:PieData>
</local:PieDataCollection>
</charts:PieChart.DataSource>
</charts:PieChart>
</Grid>
1) I have added both
DoubleTap="pieChart_DoubleTap" Tap="PieChart_Tap"
But i dont know how can i get the values.
2) I dont know how to alling the legends horzontally
来源:https://stackoverflow.com/questions/22294344/amchart-customization-for-windows-phone-8