# chart

```ts
import { ChartModule } from '@anguless/angulux/chart';
```

## UIChart

`agl-chart` — component

Inherits every input, output and slot of `BaseComponent` — see [basecomponent.md](basecomponent.md).

Chart groups a collection of contents in tabs.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `type` | `'bar' \| 'line' \| 'scatter' \| 'bubble' \| 'pie' \| 'doughnut' \| 'polarArea' \| 'radar' \| undefined` | _not documented_ | Type of the chart. |
| `plugins` | `any[]` | _not documented_ | Array of per-chart plugins to customize the chart behaviour. |
| `width` | `string \| undefined` | _not documented_ | Width of the chart. |
| `height` | `string \| undefined` | _not documented_ | Height of the chart. |
| `responsive` | `boolean` | _not documented_ | Whether the chart is redrawn on screen size change. |
| `ariaLabel` | `string \| undefined` | _not documented_ | Used to define a string that autocomplete attribute the current element. |
| `ariaLabelledBy` | `string \| undefined` | _not documented_ | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
| `data` | `any` | _not documented_ | Data to display. |
| `options` | `any` | _not documented_ | Options to customize the chart. |

| Output | Type | Description |
| --- | --- | --- |
| `onDataSelect` | `EventEmitter<any>` | Callback to execute when an element on chart is clicked.  Accessibility, a known limit: the chart is drawn on a canvas, and a data point can be chosen with the pointer only (WCAG 2.1.1). Where choosing one matters, offer the same choice outside the chart too, for example a table of the data with a button in each row. |
