Пример #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");
            }
        }
        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);
        }
        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);
        }
        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));
            }


        }
 private void DoughnutChart_SelectionChanging(object sender, ChartSelectionChangingEventArgs e)
 {
     e.Cancel = true;
     //(e.SelectedSeries as DoughnutSeries).ExplodeIndex = e.SelectedDataPointIndex;
     DoughnutChart_OnSelection(e.SelectedDataPointIndex);
 }
 private void DailyBarChart_SelectionChanging(object sender, ChartSelectionChangingEventArgs e)
 {
     e.Cancel = true;
     DailyBarChart_OnSelection(e.SelectedDataPointIndex);
 }
 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);
 }