コード例 #1
0
		public StackingBar100 ()
		{
			SFChart chart 						= new SFChart ();
			SFCategoryAxis primaryAxis 			= new SFCategoryAxis ();
			primaryAxis.LabelPlacement 			= SFChartLabelPlacement.BetweenTicks;
			chart.PrimaryAxis 					= primaryAxis;
			chart.SecondaryAxis 				= new SFNumericalAxis ();
			chart.SecondaryAxis.EdgeLabelsDrawingMode = SFChartAxisEdgeLabelsDrawingMode.Shift;
			StackingBar100DataSource dataModel 	= new StackingBar100DataSource ();
			chart.DataSource 					= dataModel as SFChartDataSource;
			this.control = chart;
		}
コード例 #2
0
        public StackingBar100()
        {
            SFChart        chart       = new SFChart();
            SFCategoryAxis primaryAxis = new SFCategoryAxis();

            primaryAxis.LabelPlacement = SFChartLabelPlacement.BetweenTicks;
            chart.PrimaryAxis          = primaryAxis;
            chart.SecondaryAxis        = new SFNumericalAxis();
            chart.SecondaryAxis.EdgeLabelsDrawingMode = SFChartAxisEdgeLabelsDrawingMode.Shift;
            StackingBar100DataSource dataModel = new StackingBar100DataSource();

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