Horseshoe path shapes¶
A horseshoe can follow more than a circular arc. Use another path when a gauge should follow the edge of a panel, form a roof over a value, or become a triangle, hexagon, wave, spiral, or infinity symbol.
The scale, state, colors, tick marks, labels, and animation continue to work along the selected shape.
Choose a path¶
Add path to a horseshoe and select its type. This example draws a complete hexagonal gauge:
| Path type | Use |
|---|---|
arc | A circular or elliptical gauge. |
line | A straight gauge at any angle. |
rectangle | A complete border or a selected route around a panel. |
polygon | A triangle, hexagon, or another many-sided shape. |
wave | A repeating wave. |
spiral | A gauge that winds outward. |
infinity | A continuous figure-eight gauge. |
Without path, the horseshoe uses its normal circular arc.
Follow part of a rectangle or polygon¶
Rectangle and polygon positions use clockwise corner numbers. A decimal selects a point along the following side:
Rectangle Triangle Hexagon
0 ------- 1 0 0 --- 1
| | / \ / \
| | / \ 5 2
3 ------- 2 2 --- 1 \ /
4 --- 3
For example, 0.5 is halfway from corner 0 to corner 1. On a rectangle, 4 is the end of the final side and returns to corner 0.
Use start and end to choose the visible route. This rectangle follows the left half of the top-left corner, the complete top side, and the right half of the top-right corner. It forms a roof that keeps the same proportions at every size:
Use the complete range when the gauge should follow the entire shape:
| Shape | Complete path |
|---|---|
| Rectangle | start: 0, end: 4 |
| Triangle | start: 0, end: 3 |
| Hexagon | start: 0, end: 6 |
These are also the defaults, so a complete shape does not need start or end.
Choose the direction¶
direction: clockwise follows the increasing corner numbers. direction: counterclockwise travels around the same shape in the other direction.
The direction determines how the state grows from the configured start. It does not change the corner numbers.
Choose what faces upward¶
Use top to place a corner or a point along a side at the top of the shape:
| Value | Result |
|---|---|
top: 0 | Corner 0 faces upward. |
top: 0.5 | The middle of side 0 to 1 faces upward. |
top: 0.1 | The point ten percent along side 0 to 1 faces upward. |
Odd-sided polygons use top: 0 by default, which places a corner at the top. Even-sided polygons and rectangles use top: 0.5, which makes the upper side horizontal.
Because top belongs to the shape itself, tick marks and labels stay correctly positioned and readable.
Size and round a polygon¶
Set the polygon's outside dimensions with width and height:
Add radius when the corners should be rounded. It has the same meaning as the radius of a rectangle corner:
Keep nested paths aligned¶
Use the same start, end, top, and direction for nested rectangles or polygons. Change only their size. Each path then starts and ends at the same relative place on its own shape:
See Reuse™ when several gauges share more configuration.
Rectangle and polygon options¶
| Field | Applies to | Required | Default | Description |
|---|---|---|---|---|
path.type | Both | Yes | rectangle or polygon. | |
path.width | Both | Polygon: Yes | 80 for rectangle | Exact outer width. |
path.height | Both | Polygon: Yes | 80 for rectangle | Exact outer height. |
path.radius | Both | No | 0 | Corner radius; use 0 for sharp corners. |
path.sides | Polygon | Yes | Number of sides; use an integer of 3 or greater. | |
path.start | Both | No | 0 | Position where the path begins. |
path.end | Both | No | 4 or sides | Position where the path ends. |
path.direction | Both | No | clockwise | clockwise or counterclockwise. |
path.top | Both | No | 0.5 for even sides; 0 for odd sides | Position that faces upward. |
The Horseshoe overview, Scale and state, and Tick marks and labels describe the settings shared by all path shapes.
See the path-shape showcase for complete arc, line, rectangle, polygon, wave, spiral, and infinity examples.