Class: DVBoxChart

DVBoxChart

new DVBoxChart(args)

A DVisual graph element indicate a Box Chart,integrate the normal,stacked bar chart.
Parameters:
Name Type Description
args Array.<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)) the value set of each x.
colors Array(DVColor) a series of DVColor indicate each x.
xGrid boolean <optional>
false whether draw the grid line started from X axes
yGrid boolean <optional>
false 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
legendOuterBox boolean <optional>
true whether draw the outer box of legend
Source:

Methods

draw(dv)

draw the DVBarChart 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:

statistic(Y) → {Object|double|double|double|double|double|Array(double)}

calculate the needed value for each box
Parameters:
Name Type Description
Y Array(double) an array of double.the data needed statistic.
Source:
Returns:
  • staValue - the value returns
    Type
    Object
  • staValue.median - the median of Y
    Type
    double
  • staValue.upperQuartile - the upper quartile of Y
    Type
    double
  • staValue.lowerQuartile - the lower quartile of Y
    Type
    double
  • staValue.upperBound - the upper Bound of Y
    Type
    double
  • staValue.lowerBound - the lower Bound of Y
    Type
    double
  • staValue.outlier - the outlier bound for the Y,[min,max]
    Type
    Array(double)