New to Kendo UI for Angular? Start a free 30-day trial
LinearRangesComponent
A collection of one or more LinearGauge scale ranges (more information and example).
ts
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<kendo-lineargauge>
<kendo-lineargauge-scale>
<kendo-lineargauge-scale-ranges>
<kendo-lineargauge-scale-range *ngFor="let range of ranges"
[from]="range.from" [to]="range.to" [color]="range.color">
</kendo-lineargauge-scale-range>
</kendo-lineargauge-scale-ranges>
</kendo-lineargauge-scale>
</kendo-lineargauge>
`
})
export class AppComponent {
public ranges: any[] = [{
from: 0,
to: 15,
color: '#ffd246'
}, {
from: 15,
to: 30,
color: '#28b4c8'
}, {
from: 30,
to: 50,
color: '#78d237'
}];
}
Selector
kendo-lineargauge-scale-ranges