コード例 #1
0
		public string [] ValueAxisDataSourceTicksForValueAxis (NChartValueAxis axis)
		{
			// Choose ticks by the kind of axis.
			switch (axis.Kind) {
			case NChartValueAxisKind.X:
				// Return five tick names, because we have five points in the series.
				return new string[] { "Alpha", "Beta", "Gamma", "Delta", "Epsilon" };

			case NChartValueAxisKind.Z:
				// Return an array with an empty string to draw noting on the single tick of Z-Axis.
				return new string[] { "" };

			default:
				// We do not have other axes.
				return null;
			}
		}
コード例 #2
0
		public string [] ValueAxisDataSourceTicksForValueAxis (NChartValueAxis axis)
		{
			// Choose ticks by the kind of axis.
			switch (axis.Kind) {
			case NChartValueAxisKind.X:
				// Return 10 ticks for the X-Axis representing, let us say, years.
				List<string> result = new List<string> ();
				for (int i = 2000; i < 2010; ++i)
					result.Add (string.Format ("{0}", i));
				return result.ToArray ();

			default:
				// We do not have other axes.
				return null;
			}
		}
コード例 #3
0
 public NSNumber Step(NChartValueAxis axis)
 {
     return(null);
 }
コード例 #4
0
 public NSNumber Length(NChartValueAxis axis)
 {
     return(null);
 }
コード例 #5
0
 public string [] ExtraTicks(NChartValueAxis axis)
 {
     return(null);
 }
コード例 #6
0
 public Number DateStep(NChartValueAxis nChartValueAxis)
 {
     return(null);
 }
コード例 #7
0
ファイル: MainActivity.cs プロジェクト: bahao247/NChart3D
 public string[] Ticks(NChartValueAxis nChartValueAxis)
 {
     return(null);
 }
コード例 #8
0
		public string Name (NChartValueAxis nChartValueAxis)
		{
			return null;
		}
コード例 #9
0
		public string ValueAxisDataSourceNameForAxis (NChartValueAxis axis) { return null; }
コード例 #10
0
		public NSNumber ValueAxisDataSourceStepForValueAxis (NChartValueAxis axis) { return null; }
コード例 #11
0
		// If you don't want to implement method, return null.
		public string ValueAxisDataSourceDouble (double value, NChartValueAxis axis) { return null; }
コード例 #12
0
		public NSNumber ValueAxisDataSourceLengthForValueAxis (NChartValueAxis axis)
		{
			// Choose length by the kind of axis.
			switch (axis.Kind) {
			case NChartValueAxisKind.Z:
				// We want Z-Axis to be shorter than the others because it has no values. The default length of axes is 1.0.
				// So let Z-Axis be 0.3 for example.
				return NSNumber.FromFloat (0.3f);

			default:
				// All other axes should have the default length.
				return null;
			}
		}
コード例 #13
0
		public string [] ValueAxisDataSourceTicksForValueAxis (NChartValueAxis axis)
		{
			// Get names for the X-Axis ticks.
			return new string[] { "Alpha", "Beta", "Gamma", "Delta", "Epsilon" };
		}
コード例 #14
0
		public Number Length (NChartValueAxis nChartValueAxis)
		{
			if (nChartValueAxis.Kind.Ordinal () == NChartTypes.ValueAxisKind.Z.Ordinal ())
				// We want Z-Axis to be shorter than the others because it has no values. The default length of axes is 1.0.
				// So let Z-Axis be 0.3 for example.
				return (Java.Lang.Double)0.3;
			else
				// All other axes should have the default length.
				return null;
		}
コード例 #15
0
ファイル: MainActivity.cs プロジェクト: bahao247/NChart3D
 public Number Min(NChartValueAxis axis)
 {
     return(null);
 }
コード例 #16
0
		public string DoubleToString (double v, NChartValueAxis nChartValueAxis)
		{
			return null;
		}
コード例 #17
0
		public string[] Ticks (NChartValueAxis nChartValueAxis)
		{
			// Choose ticks by the kind of axis.
			if (nChartValueAxis.Kind.Ordinal () == NChartTypes.ValueAxisKind.X.Ordinal ())
				// Return 10 ticks for the X-Axis representing, let us say, 10 years.
				return new string[] { "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009" };
			else
				// Other axes have no ticks.
				return null;
		}
コード例 #18
0
ファイル: MainActivity.cs プロジェクト: bahao247/NChart3D
 public Number Max(NChartValueAxis nChartValueAxis)
 {
     return(null);
 }
コード例 #19
0
		public Number Length (NChartValueAxis nChartValueAxis)
		{
			return null;
		}
コード例 #20
0
 public Date MaxDate(NChartValueAxis nChartValueAxis)
 {
     return(null);
 }
コード例 #21
0
 public string DateToString(NSDate date, double value, NChartValueAxis axis)
 {
     return(null);
 }
コード例 #22
0
 public string DateToString(Date nDate, double v, NChartValueAxis nChartValueAxis)
 {
     return(null);
 }
コード例 #23
0
		public Number Max (NChartValueAxis nChartValueAxis)
		{
			return null;
		}
コード例 #24
0
 public string DoubleToString(double value, NChartValueAxis axis)
 {
     return(null);
 }
コード例 #25
0
		public Number Step (NChartValueAxis nChartValueAxis)
		{
			return null;
		}
コード例 #26
0
 public string Name(NChartValueAxis axis)
 {
     return(null);
 }
コード例 #27
0
		public string[] Ticks (NChartValueAxis nChartValueAxis)
		{
			// Choose ticks by the kind of axis.
			if (nChartValueAxis.Kind.Ordinal () == NChartTypes.ValueAxisKind.X.Ordinal ())
				// Return five tick names, because we have five points in the series.
				return new string[] { "Alpha", "Beta", "Gamma", "Delta", "Epsilon" };
			else if (nChartValueAxis.Kind.Ordinal () == NChartTypes.ValueAxisKind.Z.Ordinal ())
				// Return an array with an empty string to draw noting on the single tick of Z-Axis.
				return new string[] { "" };
			else
				// Other axes have no ticks.
				return null;
		}
コード例 #28
0
 public NSDate MinDate(NChartValueAxis axis)
 {
     return(null);
 }
コード例 #29
0
		public NSNumber ValueAxisDataSourceStepForValueAxis (NChartValueAxis axis)
		{
			// Choose step by the kind of axis.
			switch (axis.Kind) {
			case NChartValueAxisKind.SY:
				// We want SY-Axis to have a custom step value.
				return NSNumber.FromFloat (11.0f);

			default:
				// All other axes should have the step calculated.
				return null;
			}
		}