set the node position by the weight
draw the line for the chart
add click event for the node