--- type: custom-element --- # DistributionMeter A meter-like component to show a distribution of values. ```hbs preview-template
Provide a widget so we can try switching between all types of meter
{{#let (group-by "MeshStatus" (or source.data (array))) as |grouped|}} {{#each (array 'passing' 'warning' 'critical') as |status|}} {{#let (concat (percentage-of (get grouped (concat status '.length')) source.data.length) '%') as |percentage|}} {{/let}} {{/each}} {{/let}}
``` ## Attributes | Attribute | Type | Default | Description | | :-------- | :--------------------------------- | :------ | :------------------------------------ | | type | "linear" \| "radial" \| "circular" | linear | The type of distribution meter to use | ## Contextual Components ### DistributionMeter::Meter #### Attributes | Attribute | Type | Default | Description | | :---------- | :----- | :------ | :----------------------------------------- | | percentage | number | 0 | The percentage to be used for the meter | | description | string | | Textual value to describe the meters value | #### CSS Properties | Property | Type | Tracks | Description | | :---------------------- | :--------- | :----------- | :---------------------------------------------------------------- | | --percentage | percentage | [percentage] | Read-only alias of the percentage attribute | | --aggregated-percentage | percentage | | Aggregated percentage of all meters within the distribution meter |