dotnetCHARTING Send comments on this topic.
Palette Property
See Also 
dotnetCHARTING Namespace > Series Class : Palette Property

Gets or sets the palette which will be used by the Elements of this series.

Note If used, legend behavior will be different.


Visual Basic (Declaration) 
Public Property Palette As Color()
Visual Basic (Usage)Copy Code
Dim instance As Series
Dim value() As Color
instance.Palette = value
value = instance.Palette
public Color[] Palette {get; set;}


When setting this property, each element will get it's own color. Whereas by default, all elements within a series take their color from Series.DefaultElement.Color. When the chart detects that the elements have been individually colored, each element's LegendEntry will replace the single legend entry of the series in the legend box.

See Also

© 2018 All Rights Reserved.