| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > SetKeyIndices Method SharpPlot.SetKeyIndices MethodMakes an arbitrary selection from the currently defined key placeholders and associated legend texts. Examplesp.SetKeyIndices(new int[] {5,4,1}); sp.KeyStyle = KeyStyles.Vertical|KeyStyles.Boxed|KeyStyles.RightAlign|KeyStyles.MiddleAlign; sp.DrawKey(70,5); OverloadsDescriptionAs elements are added to a complex chart, the legend definitions are accumulated in the order the charts are created. This order may not be how the legend should appear, or it may be necessary to select only some of the legend items. This setting may be used (as here) to control one or more calls to DrawKey, or simply to choose the entries flushed out by default when the chart is rendered. Note that the legend text is given in the same sequence as the original (default) ordering – both the placeholders and legends are selected by this setting. If you request a Trend line and a Model fit with a Scatterplot, the legend items are added in the sequence (data,trend.model) for each series plotted. See also ... |