Class: DVCircleConnectChart

DVCircleConnectChart

new DVCircleConnectChart(args)

A DVisual graph element indicate a Dendrogram,which can show some combination rule for the data
Parameters:
Name Type Description
args Array.<Object> a array contain arguments below
Properties
Name Type Attributes Default Description
nodes Array.<Object> indicate a set of nodes,the elements is a string.
edges Array.<Object> indicate a set of edges,the elements is a tuple with two index,eg: [[0,1]] means an edge connect 0-th node and 1-th node
edgesValue Object <optional>
empty can be empty,to change the curve's width to show more infomation
CurveColor DVColor <optional>
DVgetRandomColor(1)[0] the Curve's Color
NodeColor DVColor <optional>
new DVColor() the Node's Color
style string <optional>
'bubble' the node element style,'bubble' or 'text'
bubble boolean <optional>
true whether add a bubble to each node
bubbleRadius int <optional>
2 the radius of the added bubble
lineWidth double <optional>
2 the lineWidth of curve,when the edgesValue is not empty,lineWidth indicate the maxium Curve Width.
Source:

Methods

draw(dv)

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