Пример #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
 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
 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
 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
 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];
        }