Class: DVMulBarChart

DVMulBarChart

new DVMulBarChart(args)

A DVisual graph element indicate a Muliple Bar Chart
Parameters:
Name Type Description
args Object a array contain arguments below
Properties
Name Type Attributes Default Description
X Array(string) a list of string for each x-label
Ys Array(Array(double)) 2d Array,indicate a series bar value for each x-label.
Z Array(string) a list of string indicate each kind of bar
legendOuterBox boolean <optional>
true whether draw the outer box of legend
colors Array(DVColor) <optional>
DVgetRandomColor(this.args['Z'].length) a series of DVColor indicate each kind of bar.
xGrid boolean <optional>
false whether draw the grid line started from X axes
yGrid boolean <optional>
true whether draw the grid line started from Y axes
xDescript string <optional>
'x' the X axes's description
yDescript string <optional>
'y' the Y axes's description
Source:

Methods

draw(dv)

draw the DVMulLineChart on dv's canvas
Parameters:
Name Type Description
dv DVisual the Dvisual instance you want to draw
Source:

prepare(dv)

prepare the needed elements on the first time to draw it
Parameters:
Name Type Description
dv DVisual the Dvisual instance you want to draw
Source: