# KptMeterGroup (kpt-meter-group) A multi-segment meter group with an optional legend. Import: `import { KptMeterGroup } from '@konce-pt/angular';` ## Inputs - `values`: KptMeterItem[] - { label, value, color? } - `max`: number | undefined - the reference total (by default the sum of the values = 100%) - `showLegend`: boolean (default true) - `label`: string - the meter's name; empty = `meterGroup.label` - `legendValue`: 'percent' | 'value' (default 'percent') - what the legend shows next to each label - `unit`: string - appended to the values in the legend and in `aria-valuetext` (e.g. 'GB') ## Example ## Tokens Segments: the `--kpt-color-{primary,info,success,warning,danger}` palette or a custom `color`. ## Accessibility The track is `role="meter"` named by `label` (or `meterGroup.label`), with `aria-valuemin="0"`, `aria-valuenow` set to the sum and `aria-valuemax` set to the real total - `max`, or the sum without it. `aria-valuetext` spells out the split ("Photos 42 GB, Videos 28 GB, ..."), so the segments reach the screen reader even with the legend hidden. Keep the legend visible anyway: it is the text alternative to the colours.