Skip to content
angulux
@anguless/angulux/chart

chart

1 declarations2 demos
import
import { ChartModule } from '@anguless/angulux/chart';

Basic

Chart wraps Chart.js: type, data and options are passed straight through.

<agl-chart type="bar" [data]="data" [options]="options" [style]="{ width: '32rem', maxWidth: '100%' }" />

Doughnut

The same component draws every Chart.js type.

<agl-chart type="doughnut" [data]="data" [options]="options" [style]="{ width: '18rem' }" />

API

Generated from the committed corpus, which check:corpus holds to the built library.

UIChart

componentagl-chart

Chart groups a collection of contents in tabs.

InputTypeDefaultDescription
type'bar' | 'line' | 'scatter' | 'bubble' | 'pie' | 'doughnut' | 'polarArea' | 'radar' | undefinednot documentedType of the chart.
pluginsany[]not documentedArray of per-chart plugins to customize the chart behaviour.
widthstring | undefinednot documentedWidth of the chart.
heightstring | undefinednot documentedHeight of the chart.
responsivebooleannot documentedWhether the chart is redrawn on screen size change.
ariaLabelstring | undefinednot documentedUsed to define a string that autocomplete attribute the current element.
ariaLabelledBystring | undefinednot documentedEstablishes relationships between the component and label(s) where its value should be one or more element IDs.
dataanynot documentedData to display.
optionsanynot documentedOptions to customize the chart.
OutputTypeDescription
onDataSelectEventEmitter<any>Callback to execute when an element on chart is clicked.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.