be able to draw tree graph based on data