Class: DVLineChart

DVLineChart

new DVLineChart(args)

A DVisual graph element indicate a LineChart,integrate the dot,line,area or bubble chart for a single path
Parameters:
Name Type Description
args Array.<Object> a array contain arguments below
Properties
Name Type Attributes Default Description
X Array(double) the set of a series nodes' x value
Y Array(double) the set of a series nodes' y value
style string <optional>
'dot|line' the legend's note shape for each class,'dot','line','area' can be used simultaneously,'bubble' style is unique
color DVColor <optional>
new DVColor(256,0,0,0.8) the color of the line/dot/area/bubble
lineWidth double <optional>
'1' the lineWidth of graph
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
bubbleRadius Array(double) when the style is bubble,you should indicate the radius for each bubble
Source:
Example
new DVLineChart({'X':[1,2,3,4,5],'Y':[1,2,3,4,5],'style':'area|dot'});

Methods

draw(dv)

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