Prototype 1 dendrogrammer

What this page does

  1. creates clusterArray, an array of objects to store the cluster data. Each object has the following properties: (implicit is row number: the array index less 1) itemA, itemB, mergeH (short for mergeHieght)
  2. hard codes in the data shown below
  3. uses the largest mergeH to help decide the size of the canvas in the X axis and no of leaf nodes to decide the Y axis
  4. sets up a Raphael canvas in the div element below here (the div has an id =canvas_container)
  5. draws a dendrogram ... {OK so I am working on it :P
Row First Data point/cluster in pair Second Data point/cluster in pair Merge Height (Or similarity)
1160
2470
3250
4381
59102
The largest mergeHt is 0. There are 0 leaf nodes. The canvas X setting is 0 and Y is 0. (Don't let the proportions fool you. A Raphael canvas seems to have some minimum dimension in the X, maybe around 500, but no minimum in the Y)

Canvas div comes below here