protected override void OnInitializeChartData()
 {
     base.OnInitializeChartData();
     if (OriginalChartView != null && SupportChartView != null && SupportChartView.ChartData != null)
     {
         OriginalChartView.Data = Export.ExportCandleStickData(SupportChartView.ChartData);
         OriginalChartView.ReloadInputViews();
         OriginalChartView.SetNeedsDisplay();
     }
 }
        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 PieChartDataEntry(item.GetPercent(), item.GetText()));
                    PieChartDataSet dataSet       = new PieChartDataSet(entryOriginal.ToArray(), dataSetSource.IF_GetLabel());
                    OnIntializeDataSet(dataSetSource, dataSet);
                    PieChartData chartData = new PieChartData(new PieChartDataSet[] { dataSet });

                    OriginalChartView.Data = chartData;
                }
                OriginalChartView.ReloadInputViews();
                OriginalChartView.SetNeedsDisplay();
            }
        }
예제 #3
0
        protected override void OnInitializeChartData()
        {
            base.OnInitializeChartData();
            if (OriginalChartView != null && SupportChartView != null && SupportChartView.ChartData != null)
            {
                var dataSetItems = new List <BarChartDataSet>();

                foreach (var item in SupportChartView.ChartData.DataSets)
                {
                    var entryOriginal = item.IF_GetValues().Select(obj => new BarChartDataEntry(obj.GetXPosition(), obj.GetYPosition()));
                    var dataSet       = new BarChartDataSet(entryOriginal.ToArray(), item.IF_GetLabel());
                    OnIntializeDataSet(item, dataSet);
                    dataSetItems.Add(dataSet);
                }
                var data = new BarChartData(dataSetItems.ToArray());
                OriginalChartView.Data = data;

                OriginalChartView.ReloadInputViews();
                OriginalChartView.SetNeedsDisplay();
            }
        }
        protected override void OnInitializeChartData()
        {
            base.OnInitializeChartData();
            if (OriginalChartView != null && SupportChartView != null && SupportChartView.ChartData != null)
            {
                var data   = SupportChartView.ChartData;
                var combin = new CombinedChartData();

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

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

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

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

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

                OriginalChartView.Data = combin;
                OriginalChartView.ReloadInputViews();
                OriginalChartView.SetNeedsDisplay();
            }
        }
예제 #5
0
        protected override void OnInitializeChartData()
        {
            base.OnInitializeChartData();
            if (OriginalChartView != null && SupportChartView != null && SupportChartView.ChartData != null)
            {
                var dataSetItems     = SupportChartView.ChartData.DataSets;
                var listDataSetItems = new List <RadarChartDataSet>();

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

                var data = new RadarChartData(listDataSetItems.ToArray());

                OriginalChartView.Data = data;
                OriginalChartView.ReloadInputViews();
                OriginalChartView.SetNeedsDisplay();
            }
        }