Esempio n. 1
0
		public CategoryAxis ()
		{
			SFChart chart 					= new SFChart ();
			SFCategoryAxis categoryAxis 	= new SFCategoryAxis ();
			categoryAxis.LabelPlacement 	= SFChartLabelPlacement.BetweenTicks;
			chart.PrimaryAxis				= categoryAxis;
			chart.PrimaryAxis.Title.Text    = new NSString ("Category Axis");
			chart.SecondaryAxis 			= new SFNumericalAxis ();
			chart.SecondaryAxis.Title.Text  = new NSString ("Numerical Axis");
			ChartCagetorySource dataModel 	= new ChartCagetorySource ();
			chart.DataSource 				= dataModel as SFChartDataSource;
			chart.Legend.Visible 			= true;
			this.control = chart;
		}
Esempio n. 2
0
        public CategoryAxis()
        {
            SFChart        chart        = new SFChart();
            SFCategoryAxis categoryAxis = new SFCategoryAxis();

            categoryAxis.LabelPlacement    = SFChartLabelPlacement.BetweenTicks;
            chart.PrimaryAxis              = categoryAxis;
            chart.PrimaryAxis.Title.Text   = new NSString("Category Axis");
            chart.SecondaryAxis            = new SFNumericalAxis();
            chart.SecondaryAxis.Title.Text = new NSString("Numerical Axis");
            ChartCagetorySource dataModel = new ChartCagetorySource();

            chart.DataSource     = dataModel as SFChartDataSource;
            chart.Legend.Visible = true;
            this.control         = chart;
        }