jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
32 lines (26 loc) • 850 B
text/typescript
import { Component, AfterViewInit, ViewChild } from '@angular/core';
import { jqxBarGaugeComponent } from 'jqwidgets-scripts/jqwidgets-ts/angular_jqxbargauge';
({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent implements AfterViewInit {
('myBarGauge') myBarGauge: jqxBarGaugeComponent;
ngAfterViewInit(): void {
this.myBarGauge.createComponent(this.settings);
}
settings: any = {
width: 600,
height: 600,
max: 150,
values: [102, 115, 130, 137],
colorScheme: 'scheme02',
tooltip: {
visible: true,
formatFunction: (value: string) => {
let realVal = parseInt(value);
return ('Year: 2016<br/>Price Index:' + realVal);
}
}
}
}