public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index) { if (forFieldEnum == CPTPlotField.ScatterPlotFieldX) { return(Data [index].X); } return(Data [index].Y); }
public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index) { if (forFieldEnum == CPTPlotField.PieChartWidth) { return(data [index]); } return(index); }
public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index) { if (forFieldEnum == CPTPlotField.BarLocation) { return(data [index].X); } return(data [index].Y); }
public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, uint index) { int fieldNum = (int)forFieldEnum; Dictionary <int, float> dataVal = data[(int)index]; Console.WriteLine(string.Format("{0} {1}", fieldNum, dataVal [fieldNum])); return(dataVal[fieldNum]); }
public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index) { int fieldNum = (int)forFieldEnum; Dictionary <int, float> dataVal = data[index]; Console.WriteLine(fieldNum.ToString() + " " + dataVal[fieldNum].ToString()); return(dataVal[fieldNum]); }
public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index) { var space = graph.DefaultPlotSpace as CPTXYPlotSpace; switch (forFieldEnum) { case CPTPlotField.ScatterPlotFieldX: switch (index) { case 0: return(NSNumber.FromDouble(space.GlobalXRange.MinLimitDouble)); case 1: return(NSNumber.FromDouble(space.GlobalXRange.MaxLimitDouble)); case 2: case 3: case 4: return(1); } break; case CPTPlotField.ScatterPlotFieldY: switch (index) { case 0: case 1: case 2: return(1); case 3: return(NSNumber.FromDouble(space.GlobalYRange.MinLimitDouble)); case 4: return(NSNumber.FromDouble(space.GlobalYRange.MaxLimitDouble)); } break; } return(NSNumber.FromDouble(2)); }
public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, uint index) { if (forFieldEnum == CPTPlotField.BarLocation) return data [(int)index].X; return data [(int)index].Y; }
public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index) { if (forFieldEnum == CPTPlotField.PieChartWidth) return data [index]; else return index; }
public override NSNumber NumberForPlot (CPTPlot plot, CPTPlotField forFieldEnum, nuint index) { int fieldNum = (int)forFieldEnum; Dictionary<int, float> dataVal = data[(int)index]; Console.WriteLine (string.Format ("{0} {1}", fieldNum, dataVal [fieldNum])); return dataVal[fieldNum]; }
public override NSNumber NumberForPlot (CPTPlot plot, CPTPlotField forFieldEnum, int index) { var space = graph.DefaultPlotSpace as CPTXYPlotSpace; switch (forFieldEnum){ case CPTPlotField.ScatterPlotFieldX: switch (index){ case 0: return NSNumber.FromDouble (space.GlobalXRange.MinLimitDouble); case 1: return NSNumber.FromDouble (space.GlobalXRange.MaxLimitDouble); case 2: case 3: case 4: return 1; } break; case CPTPlotField.ScatterPlotFieldY: switch (index){ case 0: case 1: case 2: return 1; case 3: return NSNumber.FromDouble (space.GlobalYRange.MinLimitDouble); case 4: return NSNumber.FromDouble (space.GlobalYRange.MaxLimitDouble); } break; } return NSNumber.FromDouble (2); }
public override NSNumber NumberForPlot (CPTPlot plot, CPTPlotField forFieldEnum, int index) { if (forFieldEnum == CPTPlotField.ScatterPlotFieldX) return Data [index].X; return Data [index].Y; }
public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index) { int fieldNum = (int)forFieldEnum; Dictionary<int, float> dataVal = data[index]; Console.WriteLine(fieldNum.ToString() + " " + dataVal[fieldNum].ToString()); return dataVal[fieldNum]; }