XY Chart NET 3 Control Reference
SetDataSampleColor Method

Use this method to customize the color of an individual data point. Applies to markers, bars and candles.  Call any of the ClearChart methods to clear any customizations.

Syntax
[Visual Basic]
Sub SetDataSampleColor(profileIndex As Integer, dataSampleIndex As Integer, borderColor As System.Drawing.Color, fillColor As System.Drawing.Color)
[C#]
void XYChartNETCtl.SetDataSampleColor(int profileIndex, int dataSampleIndex, Color borderColor, Color fillColor)
[C++]
void SetDataSampleColor(int profileIndex, int dataSampleIndex, System::Drawing::Color borderColor, System::Drawing::Color fillColor)
       
Parameters
profileIndex
The index of the profile to customize.
dataSampleIndex
The index of the data sample to customize.
borderColor
The Color to draw the data point's border with.
fillColor
The Color to fill the data point with.
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

With XYChartNETCtl1
   .SetDataSampleColor(3, 3, Color.Blue, Color.Yellow)
   .Refresh()                    
End With
                       
                       
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.