jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
42 lines (32 loc) • 1.07 kB
text/typescript
import { Component, ViewChild } from '@angular/core';
import { jqxBarGaugeComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxbargauge';
export class AppComponent {
myBarGauge: jqxBarGaugeComponent;
arrayOfValues: number[] = [20, 0, 0, 0];
arrayA: number[] = [20, 60, 0, 0];
arrayB: number[] = [20, 60, 80, 0];
arrayC: number[] = [20, 60, 80, 100];
loop: number = 0;
labels: any = { precision: 0, indent: 15, connectorWidth: 1 };
onDrawEnd(): void {
switch (this.loop) {
case 0:
this.myBarGauge.values(this.arrayA);
break;
case 1:
this.myBarGauge.values(this.arrayB);
break;
case 2:
this.myBarGauge.values(this.arrayC);
break;
default:
console.log('Render time is finished.');
break;
}
this.loop += 1;
}
}