コード例 #1
0
 public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index)
 {
     if (forFieldEnum == CPTPlotField.ScatterPlotFieldX)
     {
         return(Data [index].X);
     }
     return(Data [index].Y);
 }
コード例 #2
0
ファイル: PiePlot.cs プロジェクト: xtremal/SimplyMobile
 public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index)
 {
     if (forFieldEnum == CPTPlotField.PieChartWidth)
     {
         return(data [index]);
     }
     return(index);
 }
コード例 #3
0
 public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index)
 {
     if (forFieldEnum == CPTPlotField.BarLocation)
     {
         return(data [index].X);
     }
     return(data [index].Y);
 }
コード例 #4
0
        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]);
        }
コード例 #5
0
        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]);
        }
コード例 #6
0
        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));
        }
コード例 #7
0
 public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, uint index)
 {
     if (forFieldEnum == CPTPlotField.BarLocation)
         return data [(int)index].X;
     return data [(int)index].Y;
 }
コード例 #8
0
ファイル: PiePlot.cs プロジェクト: nicwise/monotouch-bindings
 public override NSNumber NumberForPlot(CPTPlot plot, CPTPlotField forFieldEnum, int index)
 {
     if (forFieldEnum == CPTPlotField.PieChartWidth)
         return data [index];
     else
         return index;
 }
コード例 #9
0
		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];
		}
コード例 #10
0
ファイル: ScatterPlot.cs プロジェクト: Qwin/SimplyMobile
 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);
 }
コード例 #11
0
ファイル: ScatterPlot.cs プロジェクト: Qwin/SimplyMobile
 public override NSNumber NumberForPlot (CPTPlot plot, CPTPlotField forFieldEnum, int index)
 {
     if (forFieldEnum == CPTPlotField.ScatterPlotFieldX)
         return Data [index].X;
     return Data [index].Y;
 }
コード例 #12
0
        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];
        }