예제 #1
0
		public RangeColumn ()
		{
			SFChart chart 			  = new SFChart ();
			SFCategoryAxis primary 	  = new SFCategoryAxis ();
			primary.LabelPlacement	  = SFChartLabelPlacement.BetweenTicks;
			chart.PrimaryAxis 		  = primary;
			chart.SecondaryAxis 	  = new SFNumericalAxis (){ ShowMajorGridLines = false };

			ChartRangeColumnDataSource dataModel = new ChartRangeColumnDataSource ();
			chart.DataSource 					 = dataModel as SFChartDataSource;
			this.control 						 = chart;

		}
예제 #2
0
        public RangeColumn()
        {
            SFChart        chart   = new SFChart();
            SFCategoryAxis primary = new SFCategoryAxis();

            primary.LabelPlacement = SFChartLabelPlacement.BetweenTicks;
            chart.PrimaryAxis      = primary;
            chart.SecondaryAxis    = new SFNumericalAxis()
            {
                ShowMajorGridLines = false
            };

            ChartRangeColumnDataSource dataModel = new ChartRangeColumnDataSource();

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