xintong-ai / VecHist

Vector Field Histogram
MIT License
3 stars 0 forks source link

TreeMap is slightly diagonal... #29

Open datahead8888 opened 9 years ago

datahead8888 commented 9 years ago

As you go right or down the tree map, it is not perfectly straight - it is slightly diagonal. We may need to revise the squarify algorithm to correct this, which may be tedious.

treemap

datahead8888 commented 9 years ago

I checked, and it seems this problem was present in the original code from the Golden Cheetah open source project. We will either need to reimplement the whole algorithm or spend a good while debugging the layout algorithms. I think I am going to see how difficult it is to reimplement the Java code from the University of Maryland in C++ with QT -- this would have the side effect of possibly making it easier to add a better hiearchical layout for our widget. It is worth checking before spending much time debugging the Golden Cheetah derived code.