box

A thing in a flowchart, drawn as a shape holding its text.

boxNode
On this page
Three connected boxes of different shapes: a rounded terminal, a plain box with two lines of text, and an orange decision diamond.Three connected boxes of different shapes: a rounded terminal, a plain box with two lines of text, and an orange decision diamond.

#Attributes

shapeImplicit
The outline the box is drawn as, from flowchart shapes and entity-relationship shapes.
boxdecisionterminalellipseentityweak-entityrelationshipidentifying-relationshipattributemultivalued-attributekey-attribute
Can be written as shorthand: box:value
Defaultbox
group
What kind of thing the box is; boxes of one group share a hue and the footer keys each group.
colourAnimatable
The hue the box's fill tint and text take, winning over its group hue.
paint
Also written: color
hiddenAnimatable
Declared but not drawn, taking no room while hidden.
Defaultfalse

#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

A box holding two lines of text, PCR amplify and 30 cycles, with an arrow into it.A box holding two lines of text, PCR amplify and 30 cycles, with an arrow into it.
flowchart{
    box#sample:terminal{Sample collected}
    box#pcr{
        PCR amplify
        30 cycles
    }
    arrow(from: #sample; to: #pcr)
}(
    direction: right
)
An orange decision diamond reading Enough DNA?, with an arrow into it.An orange decision diamond reading Enough DNA?, with an arrow into it.
flowchart{
    box#pcr{PCR amplify}
    box#check:decision{Enough DNA?}(colour: orange)
    arrow(from: #pcr; to: #check)
}(
    direction: right
)
Four boxes in two groups, Theory in purple and Method in teal, with the footer keying the two hues.Four boxes in two groups, Theory in purple and Method in teal, with the footer keying the two hues.
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.

Last updated