Dendrogram automatic resize of the tree based on number of nodes

22 views
Skip to first unread message

Nemanja Vukosavljevic

unread,
Apr 5, 2012, 5:12:44 AM4/5/12
to cho...@googlegroups.com
Hi to all,

I was wondering if there is an implemented mechanism in Protovis-GWT that gives the possibility to automatically re-size the dendrogram.

Any advice would be of much help. Thanks in advance.

Cheers :)

Lars Grammel

unread,
Apr 5, 2012, 11:35:26 AM4/5/12
to cho...@googlegroups.com
Do you mean by auto-resize when the panel size changes or when the
content changes?

Lars

> --
> You received this message because you are subscribed to the Google Groups
> "Choosel" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/choosel/-/P9BXlpPKvfkJ.
> To post to this group, send email to cho...@googlegroups.com.
> To unsubscribe from this group, send email to
> choosel+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/choosel?hl=en.

--
Lars Grammel
PhD Candidate, The CHISEL Group, University of Victoria
http://larsgrammel.de
http://twitter.com/lgrammel

Nemanja Vukosavljevic

unread,
Apr 6, 2012, 4:19:03 AM4/6/12
to cho...@googlegroups.com
Only now I see I wasn't completely clear concerning my question.

As I've noticed dendrogram visualization tries to put all the nodes no matter how big is the PVPanel that contains it. When I used the Flare test data to populate the dendrogram visualization on a PVPanel of 200 times 200 all I've got is a mess which is quite obvious.

So basically my question is, can the PVPanel automatically resize to clearly show all the nodes in the dendrogram? Currently I calculate the dimensions of the PVPanel taking into account the total number of leaf nodes. Is there any built-in solution for doing this?

And since you already posed the other possible meaning of my question, when the content changes, could you answer that too? If not, it's not a problem, just I think it could be helpful :)

Thanks,

Nemanja


On Thursday, April 5, 2012 5:35:26 PM UTC+2, Lars Grammel wrote:
Do you mean by auto-resize when the panel size changes or when the
content changes?

Lars

On Thu, Apr 5, 2012 at 02:12, Nemanja Vukosavljevic <nema...@gmail.com> wrote:
> Hi to all,
>
> I was wondering if there is an implemented mechanism in Protovis-GWT that
> gives the possibility to automatically re-size the dendrogram.
>
> Any advice would be of much help. Thanks in advance.
>
> Cheers :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Choosel" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/choosel/-/P9BXlpPKvfkJ.
> To post to this group, send email to cho...@googlegroups.com.
> To unsubscribe from this group, send email to

> choosel+unsubscribe@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/choosel?hl=en.

--
Lars Grammel
PhD Candidate, The CHISEL Group, University of Victoria
http://larsgrammel.de
http://twitter.com/lgrammel


On Thursday, April 5, 2012 5:35:26 PM UTC+2, Lars Grammel wrote:
Do you mean by auto-resize when the panel size changes or when the
content changes?

Lars

On Thu, Apr 5, 2012 at 02:12, Nemanja Vukosavljevic <nema...@gmail.com> wrote:
> Hi to all,
>
> I was wondering if there is an implemented mechanism in Protovis-GWT that
> gives the possibility to automatically re-size the dendrogram.
>
> Any advice would be of much help. Thanks in advance.
>
> Cheers :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Choosel" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/choosel/-/P9BXlpPKvfkJ.
> To post to this group, send email to cho...@googlegroups.com.
> To unsubscribe from this group, send email to

> choosel+unsubscribe@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/choosel?hl=en.

Lars Grammel

unread,
Apr 7, 2012, 1:30:35 PM4/7/12
to cho...@googlegroups.com
There is no built-in support for either use case.

If you want to size the panel according the amount of data in your
tree, you could calculate an estimated width and height based on the
tree and set this on the panel.

If you want to size the visualization according to the panel size, you
could get the offset height/width from the surrounding div and use
that as width/height for the panel. You could also register a listener
on the surrounding div to update the size of the vis when the div size
changes.

Hope that helps,

Lars

>> > choosel+u...@googlegroups.com.

>> > choosel+u...@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/choosel?hl=en.
>>
>> --
>> Lars Grammel
>> PhD Candidate, The CHISEL Group, University of Victoria
>> http://larsgrammel.de
>> http://twitter.com/lgrammel
>

> --
> You received this message because you are subscribed to the Google Groups
> "Choosel" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/choosel/-/eiYV-jpt1D4J.


>
> To post to this group, send email to cho...@googlegroups.com.
> To unsubscribe from this group, send email to

> choosel+u...@googlegroups.com.

Nemanja Vukosavljevic

unread,
Apr 9, 2012, 3:52:16 AM4/9/12
to cho...@googlegroups.com
Thanks for the detailed explanation.

Cheers,
Nemanja

>> > choosel+unsubscribe@googlegroups.com.

>> > choosel+unsubscribe@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/choosel?hl=en.
>>
>> --
>> Lars Grammel
>> PhD Candidate, The CHISEL Group, University of Victoria
>> http://larsgrammel.de
>> http://twitter.com/lgrammel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Choosel" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/choosel/-/eiYV-jpt1D4J.
>
> To post to this group, send email to cho...@googlegroups.com.
> To unsubscribe from this group, send email to

> choosel+unsubscribe@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/choosel?hl=en.

Reply all
Reply to author
Forward
0 new messages