Exemplo n.º 1
0
        public override void LoadView()
        {
            // Create a chart view that will display the chart.
            m_view = new MultipleViewsView();

            // Paste your license key here.
            m_view.view1.Chart.LicenseKey = "";
            // And here.
            m_view.view2.Chart.LicenseKey = "";

            // Create column series for the first view on the screen.
            NChartColumnSeries series1 = new NChartColumnSeries();

            series1.Brush      = new NChartSolidColorBrush(UIColor.FromRGB(97, 206, 231));
            series1.Tag        = 1;
            series1.DataSource = this;
            m_view.view1.Chart.ShouldAntialias = true;
            m_view.view1.Chart.AddSeries(series1);
            m_view.view1.Chart.UpdateData();

            // Create area series for the second view in the screen.
            NChartAreaSeries series2 = new NChartAreaSeries();

            series2.Brush      = new NChartSolidColorBrush(UIColor.FromRGB(203, 220, 56));
            series2.Tag        = 2;
            series2.DataSource = this;
            m_view.view2.Chart.ShouldAntialias = true;
            m_view.view2.Chart.AddSeries(series2);
            m_view.view2.Chart.UpdateData();

            // Set chart view to the controller.
            this.View = m_view;
        }
		public override void LoadView ()
		{
			// Create a chart view that will display the chart.
			m_view = new MultipleViewsView ();

			// Paste your license key here.
			m_view.view1.Chart.LicenseKey = "";
			// And here.
			m_view.view2.Chart.LicenseKey = "";

			// Create column series for the first view on the screen.
			NChartColumnSeries series1 = new NChartColumnSeries ();
			series1.Brush = NChartSolidColorBrush.SolidColorBrushWithColor (UIColor.FromRGB (97, 206, 231));
			series1.Tag = 1;
			series1.DataSource = this;
			m_view.view1.Chart.ShouldAntialias = true;
			m_view.view1.Chart.AddSeries (series1);
			m_view.view1.Chart.UpdateData ();

			// Create area series for the second view in the screen.
			NChartAreaSeries series2 = new NChartAreaSeries ();
			series2.Brush = NChartSolidColorBrush.SolidColorBrushWithColor (UIColor.FromRGB (203, 220, 56));
			series2.Tag = 2;
			series2.DataSource = this;
			m_view.view2.Chart.ShouldAntialias = true;
			m_view.view2.Chart.AddSeries (series2);
			m_view.view2.Chart.UpdateData ();

			// Set chart view to the controller.
			this.View = m_view;
		}