Gets or sets the color of the data point.
Data point color
Visual Basic (Declaration) | |
---|---|
Public Property Color As Color |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Color Color {get; set;} |
Return Value
An Color structure, representing an ARGB color.
The following sample simply demonstrates how set the color of the first data point of a column chart to red.
Visual Basic | Copy Code |
---|---|
Chart1.Series("Series1").Points(0).Color = Color.Red |
This property gets or sets the color of many chart elements, and can be set to any ARGB value.
If this property is set for both a data point and its series then the data point's color will have precedence. The series color will only be used for data points that do not define their own color.
For a detailed explanation on how data is drawn please see the Appearance of Data topic.
If a custom legend item is using a marker then this property will determine the marker color, unless the MarkerColor property is set (MarkerColor then has precedence).
NOTE: For line chart-type charts this property (EmptyPointStyle.Color) sets the color of lines that connect to an empty point.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family