All Components

LinearRangesComponent

A collection of one or more Linear Gauge scale ranges.

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

In this article