Skip to main content

Progress Bars

A progress bar draws a fill driven by any value. There are four, under Add Widget → Primitives:

WidgetUse it when
Simple Progress BarA plain bar: a track, a fill, two colours. Horizontal or vertical.
Horizontal Progress BarImage or video fills, gradients, a knob, a label that tracks the fill.
Vertical Progress BarThe same, filling bottom to top, with the label beside the bar.
Circular Progress BarA ring, a gauge or a half circle.
Tracking a goal instead?

Use the Goal Bar for a bar tied to one of your Goals.

Driving the fill​

Many live values are already fractions you can use directly. A bar inside a Hype Train container can use `{{subtreeContext.hypeTrain.progress}}` as its value to show the current level's progress.

The Simple bar takes a fraction from 0 to 1 (or a percentage). The Horizontal, Vertical and Circular bars take a Fill % from 0 to 100, so a goal needs a quick multiply:

  • Fill % → `$(math '{{goal.goals.0.progress}} * 100')`
  • Text → `{{goal.goals.0.current}} / {{goal.goals.0.target}}`

Simple Progress Bar​

Set the fill value, the fill and track colours, a corner radius, and whether it runs horizontally or vertically.

Horizontal and Vertical Progress Bars​

The same bar on two axes, with more options:

  • Background and Foreground layers: each a colour, a gradient, or an image/video (with tiling, scale and a nine-point anchor). The background is the empty track; the foreground is the part that fills.
  • Fill behaviour: the foreground either grows with the fill, or stays put and is revealed by it. Use revealing for an image fill so the picture doesn't stretch.
  • Reverse: horizontal bars fill left to right and vertical bars bottom to top. Turn reverse on to flip either.
  • A knob: an image or video that rides the fill's leading edge. With a margin on that side, the knob can hang outside the bar.
  • A label: full typography (font, size, weight, colour or gradient, outline, shadow) and its placement.
  • Border, corner radius and margins.

Placing the label​

Side puts the label across the bar:

  • Inside bar: over the fill itself. The default for horizontal bars.
  • Above / Below bar (horizontal), Left / Right of bar (vertical): in the margin on that side. The default for vertical bars.
Give an outside label room

An outside label is drawn into the margin on its side. With a margin of 0 it hangs outside the widget. The Vertical bar ships with a right-hand margin; if you move the label left, add a left margin.

Position puts it along the bar:

  • Start of bar / Center / End of bar: a fixed spot. Start and End follow the fill's direction, including when reverse is on.
  • Inside fill / Outside fill: just behind or ahead of the fill's leading edge, travelling with it. It locks to a side when the bar is too full or too empty to fit.
  • Centered on fill: level with the fill's leading edge. With a left/right side on a vertical bar it makes a thermometer.

Circular Progress Bar​

The same layers, knob and label wrapped around an arc. Three controls decide the shape:

  • Start angle: where the bar begins. 0° is 12 o'clock.
  • Total angle: how much of the circle it covers. 360° is a full ring, 180° a half circle, 270° the classic gauge.
  • Direction: clockwise or counter-clockwise.

So a speedometer is a 270° bar starting at 135°, and a ring is 360° starting at 0°.

An arc has ends instead of corners, so you pick the ends: flat or round. Thickness sets how heavy the ring is, and padding insets it from the edge. The border traces the whole arc.

The bar is a circle inside the widget's frame. Keep the frame square, except for a half circle or gauge, which suits a wider, shorter frame.

Gradients that follow the ring​

Set the foreground gradient's type to conic and the colours run around the arc instead of across the widget. The first colour lands where the bar starts and the last where it ends, for any direction and angle. The Circular bar's fill is already conic, so editing the colours is enough. A linear gradient sweeps straight across the widget, reading as a sheen over the ring.

The arc shows the slice of the gradient it has reached, so at 50% you see the first half of the colours. Turn on Squeeze conic gradient into the fill to compress the whole gradient into the filled part, so every colour shows at any percentage.

Placing the label​

  • Center of ring: in the middle, suited to a percentage.
  • Follow fill: rides the arc's leading tip.