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 RadarPolarViews([Bind] ChartRadarPolarViewsDemoOptions options) { ViewData[ChartDemoHelper.OptionsKey] = options; object model; if (ChartDemoHelper.IsPolarView(options.View)) { model = MathematicsFunctions.GetLemniscatePoints(); } else { model = WeatherInLondon.GetTemperatureHistory(); } return(DemoView("RadarPolarViews", model)); }