/* * EXPORT FOR SCATTER */ public ScatterChartData ExportScatterData(Widget.Charts.Models.ScatterChart.ScatterChartData bubbleChartData) { var dataSetItems = bubbleChartData.DataSets; var listDataSetItems = new List <ScatterChartDataSet>(); foreach (var itemChild in dataSetItems) { var entryOriginal = itemChild.IF_GetValues().Select(item => new ChartDataEntry(item.GetXPosition(), item.GetYPosition())); var dataSet = new ScatterChartDataSet(entryOriginal.ToArray(), itemChild.IF_GetLabel()); OnIntializeDataSetScatter(itemChild, dataSet); listDataSetItems.Add(dataSet); } var data = new ScatterChartData(listDataSetItems.ToArray()); return(data); }
private void OnIntializeDataSetScatter(Widget.Charts.Models.ScatterChart.IScatterDataSet source, ScatterChartDataSet original) { OnSettingsLineScatterCandleRadarDataSet(source, original); if (source.IF_GetShapeSize().HasValue) { original.ScatterShapeSize = (source.IF_GetShapeSize().Value); } if (source.IF_GetScatterShapeHoleColor().HasValue) { original.ScatterShapeHoleColor = (source.IF_GetScatterShapeHoleColor().Value.ToUIColor()); } if (source.IF_GetScatterShapeHoleRadius().HasValue) { original.ScatterShapeHoleRadius = (source.IF_GetScatterShapeHoleRadius().Value); } }