Nico,
Thanks.
Two questions with regards to printing the label contents.
1) Not every label will have contents for text1, text2 and
text3.
In many cases some of the labels will have no value for one or
more of the text fields...
How can I print the labels so that they are only as tall as
they need to be?
For example, if all 3 text fields contain a value, the height
of that particular label would be 3 rows tall, but for those labels
inwhich only 1 text field has a non-null value, how can I make that
label just 1 row tall?
It might look better if all of the labels were the same
height, but I wanted to test it both ways, then decide :)
2) What is the proper syntax for printing the labels?
For example, if:
//init data
var json = {
id: "node01",
data: {
text1: "<a href=\"
http://www.text1.com\">Text 1</
a><br />",
text2: "<a href=\"
http://www.text2.com\">Text 2</
a><br />",
text3: "<a href=\"
http://www.text3.com\">Text 3</
a>"
},
children: [{ ...
Then in this case, how do I define label.innerHTML?
Neither of the methods below are even close to working.
Both produce labels with the text "Object Object" on them...
label.innerHTML =
node.data.text1+node.data.text2+node.data.text3;
label.innerHTML = node.data
I checked
http://thejit.org/docs/files/Spacetree-js.html,
but didn't see any examples showing how to properly format the label
output. Can you recommend another resource?
Thanks,
Dale
> >
javascript-information-visua...@googlegroups.com<j
avascript-information-visualization-toolkit%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >
http://groups.google.com/group/javascript-information-visualization-t...
> > .
>
> --
> I would never die for my beliefs because I might be wrong.
>
> Bertrand Russell- Hide quoted text -
>
> - Show quoted text -