IChartRangeSelectorButton
interface
Chart
A single button in the range-selector toolbar. Exactly one of count or fraction must be provided: count = number of categories from the right edge to show; fraction = fraction of the full category range to show (0..1).
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.
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.
- labelrequisstring
- Short label rendered on the button. E.g. "1w", "1m", "all".
- countnumber
- Number of categories from the trailing edge of the data to include in the visible window. Ignored when fraction is set.
- fractionnumber
- Fraction of the total category count to show (0 exclusive, 1 inclusive). fraction: 1 is equivalent to "all". Ignored when count is set.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Defining range selector buttons