box
A thing in a flowchart, drawn as a shape holding its text.
boxOn this page


#Attributes
shapeThe outline the box is drawn as, from flowchart shapes and entity-relationship shapes.
boxdecisionterminalellipseentityweak-entityrelationshipidentifying-relationshipattributemultivalued-attributekey-attributebox:valueDefault
boxgroupWhat kind of thing the box is; boxes of one group share a hue and the footer keys each group.
colourThe hue the box's fill tint and text take, winning over its
group hue.paintAlso written:
colorhiddenDeclared but not drawn, taking no room while hidden.
Default
false#Allowed content
Body { }The box's text, rich inline; one source line per line of the box — the first is the label, the rest sit smaller beneath it
#Allowed in
#Examples


flowchart{
box#sample:terminal{Sample collected}
box#pcr{
PCR amplify
30 cycles
}
arrow(from: #sample; to: #pcr)
}(
direction: right
)

flowchart{
box#pcr{PCR amplify}
box#check:decision{Enough DNA?}(colour: orange)
arrow(from: #pcr; to: #check)
}(
direction: right
)

flowchart:right{
box#positivism{Positivism}(group: Theory)
box#survey{Survey}(group: Method)
box#interpretivism{Interpretivism}(group: Theory)
box#interview{Interview}(group: Method)
arrow(from: #positivism; to: #survey)
arrow(from: #interpretivism; to: #interview)
}(
key: (Theory: purple; Method: teal)
)#Notes
- The body is the box's text, rich inline: maths, bold and live
{{…}}values all work. - The first line of the text is the label; every further line is set smaller and muted beneath it.
- Text longer than the widest box wraps.
- The environment places every box, in ranks along its
direction:by what the arrows connect.