private void SetupStackedBarChart() { barChart.Title = DataSetTitle; barChart.AxisY.LabelsFormat.CustomFormat = "0\\%"; barChart.Type = SligoCS.Web.WI.WebUserControls.GraphBarChart.StackedType.Stacked100; if (GlobalValues.Group.Key == GroupKeys.All) { barChart.OverrideAxisXLabels = new Hashtable(); barChart.OverrideAxisXLabels.Add("Both Groups Combined", "All Students"); } SetGraphSeriesAndAxisLabelColumns_StackedBar(); barChart.AxisYDescription = "Percent of Students"; barChart.SeriesColors = GraphHorizBarChart.GetWSASStackedBarSeriesColors(); if (GlobalValues.Level.Key == LevelKeys.All) { SetLevelSeriesLabelsOverrides(barChart); } //Decide what columns to chart if (GlobalValues.Level.Key == LevelKeys.All) { barChart.MeasureColumns = SetMeasuresForLevels(barChart); } else { barChart.DisplayColumnName = ChooseLevelColumn(); } }
private void SetUpChart() { barChart.Title = DataSetTitle; barChart.AxisY.LabelsFormat.CustomFormat = "0\\%"; barChart.Height = new Unit(barChart.Height.Value + 100);; barChart.Type = SligoCS.Web.WI.WebUserControls.GraphBarChart.StackedType.Stacked100; barChart.AxisXDescription = SimilarDefinitionDescription(); barChart.AxisYDescription = "Percent of Students Enrolled FAY"; barChart.SeriesColors = GraphHorizBarChart.GetWSASStackedBarSeriesColors(); //barChart.LabelColumnName = WebSupportingClasses.ColumnPicker.GetViewByColumnName(GlobalValues); barChart.LabelColumnName = "Name"; List <String> graphColumns = barChart.MeasureColumns; if (GlobalValues.WOW.Key == WOWKeys.WKCE) { graphColumns.Add(v_WSAS.Percent_Advanced); graphColumns.Add(v_WSAS.Percent_Proficient); graphColumns.Add(v_WSAS.Percent_Basic); graphColumns.Add(v_WSAS.Percent_Minimal); graphColumns.Add(v_WSAS.Percent_PreReq_Eng); graphColumns.Add(v_WSAS.Percent_PreReq_Skill); graphColumns.Add(v_WSAS.No_WSAS_Total); } else// if (GlobalValues.WOW.Key == WOWKeys.WSASCombined) { graphColumns.Add(v_WSAS.AdvancedWSAS); graphColumns.Add(v_WSAS.ProficientWSAS); graphColumns.Add(v_WSAS.BasicWSAS); graphColumns.Add(v_WSAS.MinPerfWSAS); graphColumns.Add(v_WSAS.No_WSAS); } if (GlobalValues.WOW.Key == WOWKeys.WSASCombined) { barChart.OverrideSeriesLabels.Add("AdvancedWSAS", "Advanced WSAS"); barChart.OverrideSeriesLabels.Add("ProficientWSAS", "Proficient WSAS"); barChart.OverrideSeriesLabels.Add("BasicWSAS", "Basic WSAS"); barChart.OverrideSeriesLabels.Add("MinPerfWSAS", "MinPerf WSAS"); barChart.OverrideSeriesLabels.Add("NoWSAS", "No WSAS"); } else { barChart.OverrideSeriesLabels.Add("Percent Advanced", "Advanced WKCE"); barChart.OverrideSeriesLabels.Add("Percent Proficient", "Proficient WKCE"); barChart.OverrideSeriesLabels.Add("Percent Basic", "Basic WKCE"); barChart.OverrideSeriesLabels.Add("Percent Minimal", "MinPerf WKCE"); barChart.OverrideSeriesLabels.Add("Percent Pre-Req Skill", "WAA-SwD"); barChart.OverrideSeriesLabels.Add("Percent Pre-Req Eng", "WAA-ELL"); barChart.OverrideSeriesLabels.Add("No WSAS Total", "No WSAS"); } }