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()); }
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)); }
public ActionResult BarViews() { ChartBarViewsDemoOptions options = new ChartBarViewsDemoOptions(); options.View = DevExpress.XtraCharts.ViewType.Bar; ViewData[ChartDemoHelper.OptionsKey] = options; return(DemoView("BarViews", GreatLakesStateProductProvider.GetGreatLakesStateProduct())); }
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())); }
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)); }
public ActionResult BarViews() { ChartBarViewsDemoOptions options = new ChartBarViewsDemoOptions(); options.View = DevExpress.XtraCharts.ViewType.Bar; ViewData[ChartDemoHelper.OptionsKey] = options; return DemoView("BarViews", GreatLakesStateProductProvider.GetGreatLakesStateProduct()); }