Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Feature request: tree tables

+2 votes

I'd like to have the ability to combine trees with tables. It would look something like:

 

{T+
 Region         | Population
 + World        | 7.13 billion
 ++ America     | 964 million
 +++ Canada     | 35 million
 +++ USA        | 319 million
 ++++ NYC       | 8 million
 ++++ Boston    | 617 thousand
 +++ Mexico     | 117 million
 ++ Europe      | 601 million
 +++ Italy      | 61 million
 +++ Germany    | 82 million
 ++++ Berlin    | 3 million
 ++ Africa      | 1 billion
}
asked Sep 26, 2013 in Wanted features by scooper (860 points)
Any traction on this? Tree-table is a pretty common widget.

1 Answer

+2 votes
 
Best answer

Finally, in the following beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startsalt
{
{T
+Region        | Population
+ World        | 7.13 billion
++ America     | 964 million
+++ Canada     | 35 million
+++ USA        | 319 million
++++ NYC       | 8 million
++++ Boston    | 617 thousand
+++ Mexico     | 117 million
++ Europe      | 601 million
+++ Italy      | 61 million
+++ Germany    | 82 million
++++ Berlin    | 3 million
++ Africa      | 1 billion
}
}
@endsalt


This will be released in V7995.
We really did the minimum on this : the table can have only one column...
If you need more, do not hesitate to ask for : we do not want to spend time on unused features.

Regards,
 

answered Mar 10, 2014 by plantuml (122,830 points)
selected Mar 11, 2014 by scooper
That's brilliant! However, I do need multiple columns, sorry.
Ok, so with the last beta:

https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have this:
@startsalt
{
{T
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
+++ Canada     | 35 million    | 30
+++ USA        | 319 million   | 30
++++ NYC       | 8 million     | 30
++++ Boston    | 617 thousand  | 30
+++ Mexico     | 117 million   | 30
++ Europe      | 601 million   | 30
+++ Italy      | 61 million    | 30
+++ Germany    | 82 million    | 30
++++ Berlin    | 3 million     | 30
++ Africa      | 1 billion     | 30
}
}
@endsalt

This is still minimum : no spanning, no  lines
Hopes it's enough.
You guys rock! I don't need spans in the tree table, but the lines would be helpful.
Ok, so last beta supports this:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

This will be integrated in V7995

@startsalt
{
{T!
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
}
--
{T-
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
}
--
{T+
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
}
--
{T#
+Region        | Population    | Age
+ World        | 7.13 billion  | 30
++ America     | 964 million   | 30
}
}
@endsalt
Does exactly what I need! Thanks!
Where can I get the source code for this beta jar? Is this forked?
It's integrated in main version since V7995.
Thank you Scooper for quick response this is really very good feature to document RESTful  api in tree form.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...