コード例 #1
0
        public async void testing(object sender, ChartSelectionChangingEventArgs e)
        {
            e.Cancel = true;

            if (e.SelectedDataPointIndex > -1)
            {
                test = e.SelectedDataPointIndex;
                await DisplayAlert("Success", Data[test].Name, "OK");
            }
        }
コード例 #2
0
        private void WeekelyBarChart_SelectionChanging(object sender, ChartSelectionChangingEventArgs e)
        {
            e.Cancel = true; //disable selection
            var index            = e.SelectedDataPointIndex;
            var series           = e.SelectedSeries;
            var itemSource       = series.ItemsSource;
            var CastedItemSource = itemSource.Cast <ChartModel>().ToList();
            var type             = CastedItemSource[index].Type;
            var indexOfType      = AppUtil.AppUtil.IndexOfTaskksTypes(type);

            WeekelyBarChart_OnSelection(index, indexOfType);
        }
コード例 #3
0
        private void WeeklyParyramid_SelectionChanging(object sender, ChartSelectionChangingEventArgs e)
        {
            e.Cancel = true;
            //(e.SelectedSeries as PyramidSeries).ExplodeIndex = e.SelectedDataPointIndex;
            var index            = e.SelectedDataPointIndex;
            var series           = e.SelectedSeries;
            var itemSource       = series.ItemsSource;
            var CastedItemSource = itemSource.Cast <ChartModel>().ToList();
            var week             = CastedItemSource[index].Week;

            WeeklyParyramid_OnSelection(index, week);
        }
コード例 #4
0
        public async void select_Category(object sender, ChartSelectionChangingEventArgs e)
        {
            e.Cancel = true;

            if (e.SelectedDataPointIndex > -1)
            {
                int indicator = e.SelectedDataPointIndex;
                await Navigation.PushAsync(new ProviderDetails(providerCode, pieData[indicator].CategoryCode, pieData[indicator].Name));
            }


        }
コード例 #5
0
 private void DoughnutChart_SelectionChanging(object sender, ChartSelectionChangingEventArgs e)
 {
     e.Cancel = true;
     //(e.SelectedSeries as DoughnutSeries).ExplodeIndex = e.SelectedDataPointIndex;
     DoughnutChart_OnSelection(e.SelectedDataPointIndex);
 }
コード例 #6
0
 private void DailyBarChart_SelectionChanging(object sender, ChartSelectionChangingEventArgs e)
 {
     e.Cancel = true;
     DailyBarChart_OnSelection(e.SelectedDataPointIndex);
 }
コード例 #7
0
 private void PieChart_SelectionChanging(object sender, ChartSelectionChangingEventArgs e)
 {   //daily/monthly Pie Chart
     e.Cancel = true;
     // (e.SelectedSeries as PieSeries).ExplodeIndex = e.SelectedDataPointIndex;
     PieChart_OnSelection(e.SelectedDataPointIndex);
 }