AmChart customization for Windows Phone 8

怎甘沉沦 提交于 2019-12-25 02:17:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!