label

label, tile type

The label tile is intended to display a short piece of text within the dashboard. This is the simplest tile. It takes no input data.

show label "Hello World" { 1..6, 1..3 }

Examples

The same label can be displayed as a small caption or a larger heading. size changes its text scale, while placement determines the space available for it. textAlign positions the text within that space.

headings = show region { 1..6, 1..14 }

show label "Inventory review" { .., 1..2 in headings;
  size: -1; textAlign: left; textColor: "blue/800"
}
show label "Inventory review" { .., 4..6 in headings;
  size: 1; textAlign: center; textColor: "blue/800"
}
show label "Three products need review" { .., 8..11 in headings;
  size: 0; textAlign: left; textColor: "orange/800"
}

The last label uses orange text for emphasis. Longer text or a larger size can require more rows. For a full report that uses this hierarchy, see Styling Dashboards.

StyleCode

In region-based dashboards, StyleCode attaches to the label tile itself.

The legacy dashboard attachment points are listed below.

For generic StyleCode rules, see stylecode.

User Contributed Notes
0 notes + add a note