Exemplo n.º 1
0
        public LiveUpdate()
        {
            chart = new SFChart();
            SFNumericalAxis primaryAxis = new SFNumericalAxis();

            chart.PrimaryAxis = primaryAxis;
            SFNumericalAxis secondaryAxis = new SFNumericalAxis();

            secondaryAxis.Minimum  = NSObject.FromObject(-1.5);
            secondaryAxis.Maximum  = NSObject.FromObject(1.5);
            secondaryAxis.Interval = NSObject.FromObject(0.5);
            chart.SecondaryAxis    = secondaryAxis;
            dataModel        = new LiveUpdateDataSource();
            chart.DataSource = dataModel as SFChartDataSource;
            this.control     = chart;
            UpdateData();
        }
Exemplo n.º 2
0
		public LiveUpdate ()
		{

			chart 							= new SFChart ();
			SFNumericalAxis primaryAxis 	= new SFNumericalAxis ();
			chart.PrimaryAxis 				= primaryAxis;
			SFNumericalAxis secondaryAxis 	= new SFNumericalAxis ();
			secondaryAxis.Minimum 			= NSObject.FromObject( -1.5);
			secondaryAxis.Maximum 			= NSObject.FromObject(1.5);
			secondaryAxis.Interval 			= NSObject.FromObject( 0.5);
			chart.SecondaryAxis 			= secondaryAxis;
			dataModel 						= new LiveUpdateDataSource ();
			chart.DataSource 				= dataModel as SFChartDataSource;
			this.control = chart;
			UpdateData ();

		}