コード例 #1
0
 public ActionResult PointLineViews() {
     ChartBarViewsDemoOptions options = new ChartBarViewsDemoOptions();
     options.ShowLabels = true;
     options.View = DevExpress.XtraCharts.ViewType.Point;
     ViewData[ChartDemoHelper.OptionsKey] = options;
     return DemoView("PointLineViews", CorporationsMarketValueProvider.GetCorporationsMarketValue());
 }
コード例 #2
0
        public ActionResult PointLineViews([Bind] ChartBarViewsDemoOptions options)
        {
            ViewData[ChartDemoHelper.OptionsKey] = options;
            object data;

            switch (options.View)
            {
            case DevExpress.XtraCharts.ViewType.Bubble:
                data = MoviesProvider.GetMovies();
                break;

            case DevExpress.XtraCharts.ViewType.ScatterLine:
                data = MathematicsFunctions.GetArchimedianSpiralPoints();
                break;

            case DevExpress.XtraCharts.ViewType.FullStackedLine:
            case DevExpress.XtraCharts.ViewType.FullStackedLine3D:
                data = ArchitectureProvider.GetArchitecturesValues();
                break;

            case DevExpress.XtraCharts.ViewType.StackedLine:
            case DevExpress.XtraCharts.ViewType.StackedLine3D:
                data = GreatLakesStateProductProvider.GetGreatLakesStateProduct();
                break;

            default:
                data = CorporationsMarketValueProvider.GetCorporationsMarketValue();
                break;
            }
            return(DemoView("PointLineViews", data));
        }
コード例 #3
0
        public ActionResult BarViews()
        {
            ChartBarViewsDemoOptions options = new ChartBarViewsDemoOptions();

            options.View = DevExpress.XtraCharts.ViewType.Bar;
            ViewData[ChartDemoHelper.OptionsKey] = options;
            return(DemoView("BarViews", GreatLakesStateProductProvider.GetGreatLakesStateProduct()));
        }
コード例 #4
0
        public ActionResult PointLineViews()
        {
            ChartBarViewsDemoOptions options = new ChartBarViewsDemoOptions();

            options.ShowLabels = true;
            options.View       = DevExpress.XtraCharts.ViewType.Point;
            ViewData[ChartDemoHelper.OptionsKey] = options;
            return(DemoView("PointLineViews", CorporationsMarketValueProvider.GetCorporationsMarketValue()));
        }
コード例 #5
0
        public ActionResult BarViews([Bind] ChartBarViewsDemoOptions options)
        {
            ViewData[ChartDemoHelper.OptionsKey] = options;
            object model;

            if (ChartDemoHelper.IsSideBySideStackedView(options.View))
            {
                model = PopulationAgeProvider.GetPopulationAgeStructure();
            }
            else
            {
                model = GreatLakesStateProductProvider.GetGreatLakesStateProduct();
            }
            return(DemoView("BarViews", model));
        }
コード例 #6
0
 public ActionResult BarViews() {
     ChartBarViewsDemoOptions options = new ChartBarViewsDemoOptions();
     options.View = DevExpress.XtraCharts.ViewType.Bar;
     ViewData[ChartDemoHelper.OptionsKey] = options;
     return DemoView("BarViews", GreatLakesStateProductProvider.GetGreatLakesStateProduct());
 }