Beispiel #1
0
		public Bar ()
		{
			SFChart chart 				= new SFChart ();
			SFCategoryAxis primary 		= new SFCategoryAxis ();
			chart.PrimaryAxis 			= primary;
			chart.SecondaryAxis 		= new SFNumericalAxis (){ 
				EdgeLabelsDrawingMode 	= SFChartAxisEdgeLabelsDrawingMode.Shift 
			};

			ChartBarDataSource dataModel 	= new ChartBarDataSource ();
			chart.DataSource 				= dataModel as SFChartDataSource;
			this.control = chart;
		}
Beispiel #2
0
        public Bar()
        {
            SFChart        chart   = new SFChart();
            SFCategoryAxis primary = new SFCategoryAxis();

            chart.PrimaryAxis   = primary;
            chart.SecondaryAxis = new SFNumericalAxis()
            {
                EdgeLabelsDrawingMode = SFChartAxisEdgeLabelsDrawingMode.Shift
            };

            ChartBarDataSource dataModel = new ChartBarDataSource();

            chart.DataSource = dataModel as SFChartDataSource;
            this.control     = chart;
        }