Add a bar type curve (CurveItem object) to the plot with
the given data points (IPointList) and properties.
This is simplified way to add curves without knowledge of the
CurveList class. An alternative is to use
the CurveList Add() method.
| C# | Visual Basic | Visual C++ |
public BarItem AddBar( string label, IPointList points, Color color )
Public Function AddBar ( _ label As String, _ points As IPointList, _ color As Color _ ) As BarItem
public: BarItem^ AddBar ( String^ label, IPointList^ points, Color color )
- 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 to fill the bars
A CurveItem class for the newly created bar curve.
This can then be used to access all of the curve properties that
are not defined as arguments to the
AddBar(String, IPointList, Color) method.
