Class: DVMulLineChart

DVMulLineChart

new DVMulLineChart(args)

A DVisual graph element indicate a Multiple Line Chart,integrate the dot,line,area or bubble chart for multiple path
Parameters:
Name Type Description
args Array.<Object> a array contain arguments below
Properties
Name Type Attributes Default Description
Xs Array(Array(double)) the set of multiple series nodes' x value,the length indicate how many kinds (dot,line,area,bubble)'s you want to draw
Ys Array(Array(double)) the set of multiple series nodes' y value,the length indicate how many kinds (dot,line,area,bubble)'s you want to draw
legendOuterBox boolean <optional>
true whether draw the outer box of legend
Zs Array(Array(double)) <optional>
!!!the third degree of data,the bubble chart need it.!!!
colors Array(Array(DVColor)) <optional>
!!randomcolor!! the color for each kind of elements.
classes Array(string) the description for each set of (dot,line,area,bubble),the length is the kinds number of (dot,line,area,bubble)
xDescript string <optional>
'x' the X axes's description
yDescript string <optional>
'y' the Y axes's description
xGrid boolean <optional>
true whether draw the grid line started from X axes
yGrid boolean <optional>
true whether draw the grid line started from Y axes
Source:
Example
new DVMulLineChart({'Xs':[[1,2,3,4,5,6],[1,2,3,4,5,6]],'Ys':[[1,2,3,4,3,6],[3,5,2,7,5,2]],'classes':['A','B'],'style':'dot|line'});

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: