Angular UI Components Documentation
The Angular BarGauge displays multiple values in a circular graph. This guide adds the Angular BarGauge (jqxBarGauge) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-ngjqwidgets-ng/jqxbargauge 
In an Angular project (to start one, see Getting started with Angular), add the package with the Angular CLI. It asks for a theme and adds the styles to angular.json:
ng add jqwidgets-ng
Components are standalone: add jqxBarGaugeModule to the imports of the component that uses it.
import { Component } from '@angular/core';
import { jqxBarGaugeModule } from 'jqwidgets-ng/jqxbargauge';
@Component({
selector: 'app-root',
imports: [jqxBarGaugeModule],
templateUrl: './app.html'
})
export class App {}
The source of the live Default Functionality demo.
<jqxBarGauge
[width]='600' [height]='600' [colorScheme]='"scheme02"'
[max]='150' [values]='values' [tooltip]='tooltip'>
</jqxBarGauge>
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { jqxBarGaugeModule } from 'jqwidgets-ng/jqxbargauge';
@Component({
imports: [CommonModule, jqxBarGaugeModule],
selector: 'app-root',
templateUrl: './app.html'
})
export class App {
tooltip: any = {
visible: true,
formatFunction: (value: string) => {
let realVal = parseInt(value);
return 'Year: 2026<br/>Price Index:' + realVal;
}
};
values: number[] = [102, 115, 130, 137];
}
Options are inputs, bound with [name]="value".
Events are outputs named on plus the event name with a capital first letter. For example, valueChanged: Fires after the values are changed.
<jqxBarGauge (onValueChanged)="onValueChanged($event)"></jqxBarGauge>
onValueChanged(event: any): void {
console.log(event.args);
}
Get the component with a signal query and call its methods. For example, val: Returns an array of the BarGauge values.
<jqxBarGauge #myBarGauge></jqxBarGauge>
import { Component, viewChild } from '@angular/core';
import { jqxBarGaugeModule, jqxBarGaugeComponent } from 'jqwidgets-ng/jqxbargauge';
@Component({
selector: 'app-root',
imports: [jqxBarGaugeModule],
templateUrl: './app.html'
})
export class App {
readonly myBarGauge = viewChild.required<jqxBarGaugeComponent>('myBarGauge');
run(): void {
const value = this.myBarGauge().val([30, 80, 120]);
console.log(value);
}
}