Пример #1
0
 protected override void OnInitializeChartData()
 {
     base.OnInitializeChartData();
     if (OriginalChartView != null && SupportChartView != null && SupportChartView.ChartData != null)
     {
         OriginalChartView.Data = Export.ExportBubbleData(SupportChartView.ChartData);
         OriginalChartView.Invalidate();
     }
 }
        protected override void OnInitializeChartData()
        {
            base.OnInitializeChartData();
            if (OriginalChartView != null && SupportChartView != null && SupportChartView.ChartData != null)
            {
                var dataSupport   = SupportChartView.ChartData;
                var dataSetSource = dataSupport.DataSets.FirstOrDefault();

                if (dataSetSource != null)
                {
                    var        entryOriginal = dataSetSource.IF_GetValues().Select(item => new PieEntry(item.GetPercent(), item.GetText()));
                    PieDataSet dataSet       = new PieDataSet(entryOriginal.ToArray(), dataSetSource.IF_GetLabel());
                    OnIntializeDataSet(dataSetSource, dataSet);
                    var data = new PieData(dataSet);
                    OriginalChartView.Data = data;
                }
                OriginalChartView.Invalidate();
            }
        }
        protected override void OnInitializeChartData()
        {
            base.OnInitializeChartData();
            if (OriginalChartView != null && SupportChartView != null && SupportChartView.ChartData != null)
            {
                var dataSetItems     = SupportChartView.ChartData.DataSets;
                var listDataSetItems = new List <RadarDataSet>();

                foreach (var itemChild in dataSetItems)
                {
                    var          entryOriginal = itemChild.IF_GetValues().Select(item => new RadarEntry(item.GetValue()));
                    RadarDataSet dataSet       = new RadarDataSet(entryOriginal.ToArray(), itemChild.IF_GetLabel());
                    OnIntializeDataSet(itemChild, dataSet);
                    listDataSetItems.Add(dataSet);
                }

                RadarData data = new RadarData(listDataSetItems.ToArray());
                OriginalChartView.Data = data;
                OriginalChartView.Invalidate();
            }
        }
        protected override void OnInitializeChartData()
        {
            base.OnInitializeChartData();
            if (OriginalChartView != null && SupportChartView != null && SupportChartView.ChartData != null)
            {
                var data   = SupportChartView.ChartData;
                var combin = new CombinedData();

                if (data.BubbleChartData != null)
                {
                    combin.SetData(Export.ExportBubbleData(data.BubbleChartData));
                }

                if (data.LineChartData != null)
                {
                    combin.SetData(Export.ExportLineData(data.LineChartData));
                }

                if (data.BarChartData != null)
                {
                    combin.SetData(Export.ExportBarData(data.BarChartData));
                }

                if (data.ScatterChartData != null)
                {
                    combin.SetData(Export.ExportScatterData(data.ScatterChartData));
                }

                if (data.CandleStickChartData != null)
                {
                    combin.SetData(Export.ExportCandleStickData(data.CandleStickChartData));
                }

                OriginalChartView.Data = combin;
                OriginalChartView.Invalidate();
            }
        }