IChartGaugeProps
Props for <OrigamChartGauge> — solid gauge (radial progress indicator). Renders a 270-degree track with a filled arc indicating the current value, an optional centre label, and optional min / max endpoint labels. Only the first datum of the first series is consumed.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- gaugeMinnumber0
- Lower bound of the gauge range. Default 0.
- gaugeMaxnumber100
- Upper bound of the gauge range. Default 100.
- gaugeUnitstring''
- Optional unit appended to the centre label (e.g. '%', ' km/h'). Default ''.
- gaugeThicknessnumber18
- Arc thickness in SVG pixels. Default 18.
- gaugeStartAnglenumber
- Arc start angle in radians. Defaults to -3pi/4 (bottom-left of a 270deg arc).
- gaugeEndAnglenumber
- Arc end angle in radians. Defaults to +3pi/4 (bottom-right).
- gaugeShowEndpointsbooleantrue
- Whether to render gaugeMin / gaugeMax labels at the arc endpoints. Default true.
- gaugeShowValuebooleantrue
- Whether to render the centre value label. Default true.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Solid gauge showing a percentage KPI