UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

73 lines (67 loc) 2.14 kB
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { marks: any = { colorRemaining: { color: '#373636', border: '#373636' }, colorProgress: { color: '#373636', border: '#373636' }, type: 'line', offset: '71%', thickness: 1, size: '6%', majorSize: '9%', majorInterval: 10, minorInterval: 2 }; labels: any = { offset: '88%', step: 10, visible: true, formatFunction: (label: number): number | string => { if (label == 0) return 'Min'; if (label == 100) return 'Max'; return label; } }; progressBar: any = { size: '20%', offset: '50%', innerRadius: '50%', outerRadius: '70%', style: [ { stroke: '#285a83', strokeWidth: 1, fill: { color: '#285a83', gradientType: 'linear', gradientStops: [[0, 1], [50, 0.5], [100, 1]] } }, { stroke: '#285a83', strokeWidth: 1, fill: { color: '#285a83', gradientType: 'linear', gradientStops: [[0, 1], [50, 0.5], [100, 1]] } } ], background: { stroke: '#ff6126', strokeWidth: 1, fill: { color: '#ff6126', gradientType: 'linear', gradientStops: [[0, 1], [50, 0.5], [100, 1]] } } }; pointer: any = [ { type: 'arrow', style: { fill: '#ff6126', stroke: '#ff6126' }, size: '50%', offset: '30%', thickness: 30, }, { type: 'arrow', style: { fill: '#ff6126', stroke: '#ff6126' }, size: '50%', offset: '30%', thickness: 30 } ]; spinner: any = { size: '20%', offset: '30%', innerRadius: '0%', outerRadius: '30%', style: { stroke: '#285a83', strokeWidth: 1, fill: { color: '#285a83', gradientType: 'linear', gradientStops: [[0, 1], [50, 0.5], [100, 1]] } } }; }