Subset order control
1//! New features SubsetsToShow and SubsetsToTable control visibility2//! of subsets within the chart and table regions.3//! SubsetsToShow not only controls visibility, but can also control the order.4//! RandomSubsetsToGraph can also control order and visibility of subsets plotted.5 6CreateSimpleGraph(Pego1);7 8Pego1.PePlot.Method = GraphPlottingMethod.BarStacked;9Pego1.PeColor.QuickStyle = QuickStyle.LightShadow;10Pego1.PeLegend.Style = LegendStyle.OneLine;11Pego1.PeLegend.Location = LegendLocation.Left;12 13// Controlling order how subsets are plotted //14Pego1.PeData.RandomSubsetsToGraph[0] = 3;15Pego1.PeData.RandomSubsetsToGraph[1] = 2;16Pego1.PeData.RandomSubsetsToGraph[2] = 1;17Pego1.PeData.RandomSubsetsToGraph[3] = 0;18 19// Controlling order of items in legend //20Pego1.PeLegend.SubsetsToLegend[0] = 0;21Pego1.PeLegend.SubsetsToLegend[1] = 1;22Pego1.PeLegend.SubsetsToLegend[2] = 2;23Pego1.PeLegend.SubsetsToLegend[3] = 3;24 25// Controlling order of items in table below chart //26Pego1.PeTable.SubsetsToTable[0] = 0;27Pego1.PeTable.SubsetsToTable[1] = 1;28Pego1.PeTable.SubsetsToTable[2] = 2;29Pego1.PeTable.SubsetsToTable[3] = 3;30 31Pego1.PeFunction.ReinitializeResetImage();32Pego1.Invalidate();33// Optionally call Pego1.Refresh() if you are not seeing changes immediatelyPego1.PeData.Y[s, p]Click underlined properties to view documentation