Anyone any experience with thejit and infovis? noteably space tree?

Associate
Joined
18 Oct 2002
Posts
2,092
Location
Edinburgh
Anyone any experience with it?

Currently working on a mammoth project to visualize one of the most complex electrical systems in the uk in a web enviroment, we are using thejit for the prototype, but given the size of this thing its quite hard to make it userfriendly.

Im trying to dynamically resize the nodes depending on the amount of siblings they have, so say there is 40 of them they will be small 10 they will be big.

Ive managed to resize the nodes themselves, but resizing the labels and making the tree space them less is proving more of a problem.

Code:
            onBeforePlotNode: function(node) {
                //add some color to the nodes in the path between the
                //root node and the selected node

                var count = 0;
                node.eachSubnode(function(n) { count++; });
                if (count > 10) {
                    //big
                    node.eachSubnode(function(n) {
                        n.data.$$height = 30;
                        n.data.$$width = 250;
                    });
                }

Thats as far as i have got, its a long shot but don't suppose anyone can help.
 
Back
Top Bottom