BarChart
Previous  Next

The BarChart object provides the following methods and properties


Methods

AddBar(value As Double , color As Color , String name) : Adds a bar to the chart of the given value, name and colour.

AddMultiBar(value As Double() , color As Color() , String name) : Adds a multiple bar to the chart of the given values, name and colours.
 
Draw : Returns the drawn bitmap of the chart.

DrawWithLegend(Legend As Control): Returns the drawn bitmap of the chart including the legend provided.

New1(width As Int32, height As Int32) : Creates a new bar chart of the given width and height.


Properties

I signifies readable, O signifies settable.


Alignment : Int32 [I/O] : Gets or sets the alignment of the bar chart in its bitmap. 0 is vertical bars, 1 is horizontal bars.

BorderSize : Int32 [I/O] : Gets or sets the width of an invisible border between the drawn chart and the edges of the bitmap.

Color : Color [I/O] :  Gets or sets the background colour of the chart.

ColorGradient : Color [I/O] :  Gets or sets the gradient colour of the chart.

CutOff : Double [I/O] : Gets or sets the cut-off value of the chart.

Dllversion : Double [I] : The version number of this library.
 
GridSpacingValue: Int32 [I/O] : Gets or sets the spacing value of the Y axis grid.
 
MarginForTextOnAxis : Int32 [I/O] : Gets or sets the margin for text below the X axis. Note that the Bar chart does not in fact display text on the X axis.

MaxScaleValue : Int32 [I/O] : Gets or sets the maximum value of the Y axis.

MaxBarSliceWidth : Int32 [I/O] : Gets or sets the maximum size of a bar on the chart.

MinScaleValue : Int32 [I/O] : Gets or sets the minimum value of the Y axis.

MultiStacked: Bool [I/O] : Gets or sets whether to display the multiple bars stacked or not.

RoundOffGridHeight : Bool [I/O] : Gets or sets whether to round up the Y axis size or not.

ShowGrid : Bool [I/O] : Gets or sets whether to show the chart grid or not.

Text : String [I/O] : Gets or sets the title displayed in the bar chart.