public ActionResult AreaViews([Bind] ChartShowLabelsDemoOptions options)
        {
            ViewData[ChartDemoHelper.OptionsKey] = options;
            object data;

            switch (options.View)
            {
            case DevExpress.XtraCharts.ViewType.FullStackedArea:
            case DevExpress.XtraCharts.ViewType.FullStackedArea3D:
            case DevExpress.XtraCharts.ViewType.FullStackedSplineArea:
            case DevExpress.XtraCharts.ViewType.FullStackedSplineArea3D:
                data = ArchitectureProvider.GetArchitecturesValues();
                break;

            case DevExpress.XtraCharts.ViewType.StackedArea:
            case DevExpress.XtraCharts.ViewType.StackedArea3D:
            case DevExpress.XtraCharts.ViewType.StackedSplineArea:
            case DevExpress.XtraCharts.ViewType.StackedSplineArea3D:
                data = GreatLakesStateProductProvider.GetGreatLakesStateProduct();
                break;

            default:
                data = CorporationsMarketValueProvider.GetCorporationsMarketValue();
                break;
            }
            return(DemoView("AreaViews", data));
        }
示例#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));
        }