ZedGraph LogoZedGraph Class Library Documentation
AddOHLCBar Method (label, points, color)
NamespacesZedGraphGraphPaneAddOHLCBar(String, IPointList, Color)
Add a candlestick graph (OHLCBarItem object) to the plot with the given data points (IPointList) and properties.
Declaration Syntax
C#Visual BasicVisual C++
public OHLCBarItem AddOHLCBar(
	string label,
	IPointList points,
	Color color
)
Public Function AddOHLCBar ( _
	label As String, _
	points As IPointList, _
	color As Color _
) As OHLCBarItem
public:
OHLCBarItem^ AddOHLCBar (
	String^ label, 
	IPointList^ points, 
	Color color
)
Parameters
label (String)
The text label (string) for the curve that will be used as a Legend entry.
points (IPointList)
A IPointList of double precision value pairs that define the X and Y values for this curve
color (Color)
The color to used for the curve line, symbols, etc.
Return Value
A CurveItem class for the newly created curve. This can then be used to access all of the curve properties that are not defined as arguments to the AddOHLCBar(String, IPointList, Color) method.
Remarks
This is simplified way to add curves without knowledge of the CurveList class. An alternative is to use the CurveList Add() method. Note that the IPointList should contain StockPt objects instead of PointPair objects in order to contain all the data values required for this curve type.

Assembly: ZedGraph (Module: ZedGraph) Version: 5.1.0.621