ejLinearGauge

The Linear gauge can be easily configured to the DOM element, such as div. you can create a linear gauge with a highly customizable look and feel.

  • html
  • <ej-lineargauge id="lineargauge">    
    </ej-lineargauge>
    Name Type Description
  • html
  • options
    object For setting the Linear gauge

    Example

    Requires

    • module:jQuery

    • module:ej.common.all

    • module:excanvas.js

    Members

    animationSpeed number

    Specifies the animationSpeed

    Default Value

    • 500

    Example

  • html
  • <ej-lineargauge id="lineargauge" [animationSpeed]="1000">    
    </ej-lineargauge>

    backgroundColor string

    Specifies the backgroundColor for Linear gauge.

    Default Value

    • null

    Example

  • html
  • <ej-lineargauge id="lineargauge" backgroundColor ="Red">    
    </ej-lineargauge>

    borderColor string

    Specifies the borderColor for Linear gauge.

    Default Value

    • null

    Example

  • html
  • <ej-lineargauge id="lineargauge" borderColor ="Red">    
    </ej-lineargauge>

    enableAnimation boolean

    Specifies the animate state

    Default Value

    • true

    Example

  • html
  • <ej-lineargauge id="lineargauge" [enableAnimation] ="true">    
    </ej-lineargauge>

    enableMarkerPointerAnimation boolean

    Specifies the animate state for marker pointer

    Default Value

    • true

    Example

  • html
  • <ej-lineargauge id="lineargauge" [enableMarkerPointerAnimation] ="true">    
    </ej-lineargauge>

    isResponsive boolean

    Specifies the can resize state.

    Default Value

    • false

    Example

  • html
  • <ej-lineargauge id="lineargauge" [isResponsive] ="true">    
    </ej-lineargauge>

    frame object

    Specify frame of linear gauge

    Default Value

    • null

    Example

  • html
  • <ej-lineargauge id="lineargauge" [frame.innerWidth] ="9" [frame.outerWidth] ="13">    
    </ej-lineargauge>

    frame.backgroundImageUrl string

    Specifies the frame background image URL of linear gauge

    Default Value

    • null

    Example

  • html
  • <ej-lineargauge id="lineargauge" frame.backgroundImageUrl="../images/gauge/Gauge_linear_light.png">    
    </ej-lineargauge>

    frame.innerWidth number

    Specifies the frame InnerWidth

    Default Value

    • 8

    Example

  • html
  • <ej-lineargauge id="lineargauge" [frame.innerWidth] ="9">    
    </ej-lineargauge>

    frame.outerWidth number

    Specifies the frame OuterWidth

    Default Value

    • 12

    Example

  • html
  • <ej-lineargauge id="lineargauge" [frame.outerWidth] ="13">    
    </ej-lineargauge>

    height number

    Specifies the height of Linear gauge.

    Default Value

    • 400

    Example

  • html
  • <ej-lineargauge id="lineargauge" [height] ="360">    
    </ej-lineargauge>

    labelColor string

    Specifies the labelColor for Linear gauge.

    Default Value

    • null

    Example

  • html
  • <ej-lineargauge id="lineargauge" labelColor ="Red">    
    </ej-lineargauge>

    maximum number

    Specifies the maximum value of Linear gauge.

    Default Value

    • 100

    Example

  • html
  • <ej-lineargauge id="lineargauge" [maximum] ="110">    
    </ej-lineargauge>

    minimum number

    Specifies the minimum value of Linear gauge.

    Default Value

    • 0

    Example

  • html
  • <ej-lineargauge id="lineargauge" [maximum] ="10">    
    </ej-lineargauge>

    orientation string

    Specifies the orientation for Linear gauge.

    Default Value

    • “Vertical”

    Example

  • html
  • <ej-lineargauge id="lineargauge" orientation ="horizontal">    
    </ej-lineargauge>

    outerCustomLabelPosition enum

    Specify labelPosition value of Linear gauge See OuterCustomLabelPosition

    Name Type Description
    Left string Label will be placed on left side of the gauge
    Right string Label will be placed on right side of the gauge
    Top string Label will be placed on top of the gauge
    Bottom string Label will be placed on bottom of the gauge

    Default Value

    • bottom

    Example

  • html
  • <ej-lineargauge id="lineargauge" outerCustomLabelPosition ="top">    
    </ej-lineargauge>

    pointerGradient1 object

    Specifies the pointerGradient1 for Linear gauge.

    Default Value

    • null

    Example

  • html
  • <ej-lineargauge id="lineargauge" [pointerGradient1] ="[colorInfo:[{ colorStop : 0, color:"#FFFFFF"}] ]">    
    </ej-lineargauge>

    pointerGradient2 object

    Specifies the pointerGradient2 for Linear gauge.

    Default Value

    • null

    Example

  • html
  • <ej-lineargauge id="lineargauge" [pointerGradient2] ="[colorInfo:[{ colorStop : 0, color:"#FFFFFF"}] ]">    
    </ej-lineargauge>

    readOnly boolean

    Specifies the read only state.

    Default Value

    • true

    Example

  • html
  • <ej-lineargauge id="lineargauge" [readOnly]="false">    
    </ej-lineargauge>

    scales array

    Specifies the scales

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        //..
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.backgroundColor string

    Specifies the backgroundColor of the Scale.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{    
            backgroundColor: 'red'    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers Array

    Specifies the scaleBar Gradient of bar pointer

    Default Value

    • Array

    Example

  • ts
  • this.scales=[{
        barPointers: [{   
            //..    
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.backgroundColor string

    Specifies the backgroundColor of bar pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        barPointers: [{
            backgroundColor: 'red'
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.border object

    Specifies the border of bar pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        barPointers: [{
            border:{            
            }
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.border.color string

    Specifies the border Color of bar pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        barPointers: [{
            border:{
                color:'red'
            }
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.border.width number

    Specifies the border Width of bar pointer

    Default Value

    • 1.5

    Example

  • ts
  • this.scales=[{
        barPointers: [{
            border:{  
                width:2          
            }
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.distanceFromScale number

    Specifies the distanceFromScale of bar pointer

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        barPointers: [{
            distanceFromScale:20
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.gradients object

    Specifies the scaleBar Gradient of bar pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        barPointers: [{
            gradients:{
                colorInfo:[{ 
                    colorStop : 0, 
                    color:"#FFFFFF"
                }]
            }
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.opacity number

    Specifies the opacity of bar pointer

    Default Value

    • 1

    Example

  • ts
  • this.scales=[{
        barPointers: [{  
            opacity:0.5     
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.value number

    Specifies the value of bar pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        barPointers: [{  
            value:100
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.barPointers.width number

    Specifies the pointer Width of bar pointer

    Default Value

    • width=30

    Example

  • ts
  • this.scales=[{
        barPointers: [{  
            width:25
        }],
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.border object

    Specifies the border of the Scale.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        border:{
            //..
        }
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.border.color string

    Specifies the border color of the Scale.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        border:{
            color:'red'
        }
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.border.width number

    Specifies the border width of the Scale.

    Default Value

    • 1.5

    Example

  • ts
  • this.scales=[{
        border:{
            width:2.5
        }
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels Array

    Specifies the customLabel

    Default Value

    • Array

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            //..
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.color number

    Specifies the label Color in customLabels

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            color:'yellow'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.font object

    Specifies the font in customLabels

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            font:{
                //..
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.font.fontFamily string

    Specifies the fontFamily in customLabels

    Default Value

    • “Arial”

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            font:{
                fontFamily:'Arial',
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.font.fontStyle enum

    Specifies the fontStyle in customLabels. See FontStyle

    Name Type Description
    Bold string Sets the font style as bold
    Italic string Sets the font style as italic
    Regular string Sets the font style as regular
    Strikeout string Sets the font style as strikeout
    Underline string Sets the font style as underline

    Default Value

    • Bold

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            font:{
                fontStyle:'Bold',
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.font.size string

    Specifies the font size in customLabels

    Default Value

    • “11px”

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            font:{
                size:'12px'
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.opacity string

    Specifies the opacity in customLabels

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            opacity:0.5
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.position object

    Specifies the position in customLabels

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            position:{
                //..
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.position.x number

    Specifies the position x in customLabels

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            position:{
                x:10
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.position.y number

    Specifies the y in customLabels

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            position:{
                y:50
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.positionType object

    Specifies the positionType in customLabels.See CustomLabelPositionType

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            positionType:'outer'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.textAngle number

    Specifies the textAngle in customLabels

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            textAngle:20
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.customLabels.value string

    Specifies the label Value in customLabels

    Default Value

    • ””

    Example

  • ts
  • this.scales=[{
        customLabels:[{
            value:'LinearGauge'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.direction enum

    Specifies the scale Direction of the Scale. See Directions

    Name Type Description
    Clockwise string Specify the scale direction as clockwise
    CounterClockwise string Specify the scale direction as counterclockwise

    Default Value

    • CounterClockwise

    Example

  • ts
  • this.scales=[{
        direction:'Clockwise'
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators Array

    Specifies the indicator

    Default Value

    • Array

    Example

  • ts
  • this.scales=[{
        indicators:[{
            //..
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.backgroundColor string

    Specifies the backgroundColor in bar indicators

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            backgroundColor:'green'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.border number

    Specifies the border in bar indicators

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            border:{
               //..
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.border.color string

    Specifies the border Color in bar indicators

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            border:{
                color:'green'
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.border.width number

    Specifies the border Width in bar indicators

    Default Value

    • 1.5

    Example

  • ts
  • this.scales=[{
        indicators:[{
            border:{
                width:5
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.font object

    Specifies the font of bar indicators

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            font:{
                //..
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.font.fontFamily string

    Specifies the fontFamily of font in bar indicators

    Default Value

    • “Arial”

    Example

  • ts
  • this.scales=[{
        indicators:[{
            font:{
                fontFamily:'Segoe UI'
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.font.fontStyle enum

    Specifies the fontStyle of font in bar indicators. See FontStyle

    Default Value

    • ej.datavisualization.LinearGauge.FontStyle.Bold

    Example

  • ts
  • this.scales=[{
        indicators:[{
            font:{
                fontStyle:'bold'
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.font.size string

    Specifies the size of font in bar indicators

    Default Value

    • “11px”

    Example

  • ts
  • this.scales=[{
        indicators:[{
            font:{
                size:'12px'
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.height number

    Specifies the indicator Height of bar indicators

    Default Value

    • 30

    Example

  • ts
  • this.scales=[{
        indicators:[{
            height:20
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.opacity number

    Specifies the opacity in bar indicators

    Default Value

    • NaN

    Example

  • ts
  • this.scales=[{
        indicators:[{
            opacity:0.5
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.position object

    Specifies the position in bar indicators

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            position:{
                //..
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.position.x number

    Specifies the x position in bar indicators

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        indicators:[{
            position:{
                x:10
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.position.y number

    Specifies the y position in bar indicators

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        indicators:[{
            position:{
                y:50
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.stateRanges Array

    Specifies the state ranges in bar indicators

    Default Value

    • Array

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                //..
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.stateRanges.backgroundColor string

    Specifies the backgroundColor in bar indicators state ranges

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                backgroundColor:'red'
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.stateRanges.borderColor string

    Specifies the borderColor in bar indicators state ranges

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                borderColor:'red'
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.stateRanges.endValue number

    Specifies the endValue in bar indicators state ranges

    Default Value

    • 60

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                endValue:90
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.stateRanges.startValue number

    Specifies the startValue in bar indicators state ranges

    Default Value

    • 50

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                startValue:40
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.stateRanges.text string

    Specifies the text in bar indicators state ranges

    Default Value

    • ””

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                text:'Linear Gauge'
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.stateRanges.textColor string

    Specifies the textColor in bar indicators state ranges

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                textColor:'red'
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.textLocation object

    Specifies the textLocation in bar indicators

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                textLocation:{
                    //..
                }
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.textLocation.x number

    Specifies the textLocation position in bar indicators

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                textLocation:{
                    x:10
                }
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.textLocation.y number

    Specifies the Y position in bar indicators

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        indicators:[{
            stateRanges:[{
                textLocation:{
                    y:50
                }
            }]
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.type enum

    Specifies the indicator Style of font in bar indicators

    Name Type Description
    Rectangle string Style of the indicator will be rectangle
    Circle string Style of the indicator will be Circle
    RoundedRectangle string Style of the indicator will be rounded rectangle
    Text string Style of the indicator will be text

    Default Value

    • ej.datavisualization.LinearGauge.IndicatorType.Rectangle

    Example

  • ts
  • this.scales=[{
        indicators:[{        
            type:'rectangle'        
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.indicators.width number

    Specifies the indicator Width in bar indicators

    Default Value

    • 30

    Example

  • ts
  • this.scales=[{
        indicators:[{        
            width:2
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels Array

    Specifies the labels.

    Default Value

    • Array

    Example

  • ts
  • this.scales=[{          
        labels:[{
            //..
        }]    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.angle number

    Specifies the angle of labels.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{          
        labels:[{
            angle:45
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.distanceFromScale object

    Specifies the DistanceFromScale of labels.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        labels:[{
            distanceFromScale:{
                //..
            }
        }]   
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.distanceFromScale.x number

    Specifies the xDistanceFromScale of labels.

    Default Value

    • -10

    Example

  • ts
  • this.scales=[{         
        labels:[{
            distanceFromScale:{
                x:5
            }
        }]    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.distanceFromScale.y number

    Specifies the yDistanceFromScale of labels.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{          
        labels:[{
            distanceFromScale:{
                y:10
            }
        }]    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.font object

    Specifies the font of labels.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{          
        labels:[{
            font:{
                //..
            }
        }]    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.font.fontFamily string

    Specifies the fontFamily of font.

    Default Value

    • “Arial”

    Example

  • ts
  • this.scales=[{           
        labels:[{
            font:{
                fontFamily:'Arial'
            }
        }]    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.font.fontStyle enum

    Specifies the fontStyle of font.See FontStyle

    Default Value

    • ej.datavisualization.LinearGauge.FontStyle.Bold

    Example

  • ts
  • this.scales=[{          
        labels:[{
            font:{
                fontStyle:'Bold'
            }
        }]    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.font.size string

    Specifies the size of font.

    Default Value

    • “11px”

    Example

  • ts
  • this.scales=[{           
        labels:[{
            font:{
                size:'12px'
            }
        }]    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.includeFirstValue boolean

    need to includeFirstValue.

    Default Value

    • true

    Example

  • ts
  • this.scales=[{          
        labels:[{
            includeFirstValue: false
        }]    
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.opacity number

    Specifies the opacity of label.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{        
        labels:[{
            opacity:0.5    
        }]
    }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.placement enum

    Specifies the label Placement of label. See LabelPlacement

    Name Type Description
    Near string Specify the label placement as near
    Far string Specify the label placement as far
    Center string Specify the label placement as center

    Default Value

    • Near

    Example

  • ts
  • this.scales=[{        
        labels:[{
            placement:'center'
        }]    
    }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.textColor string

    Specifies the textColor of font.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{          
        labels:[{
            textColor:'red'
        }]    
    }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.type enum

    Specifies the label Style of label. See LabelType

    Name Type Description
    Major string Specifies the label style as major
    Minor string Specifies the label style as minor

    Default Value

    • ej.datavisualization.LinearGauge.LabelType.Major

    Example

  • ts
  • this.scales=[{          
        labels:[{
            type:'minor'
        }]    
    }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.unitText string

    Specifies the unitText of label.

    Default Value

    • ””

    Example

  • ts
  • this.scales=[{          
        labels:[{
            unitText:'F'
        }]    
    }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.labels.unitTextPlacement enum

    Specifies the unitText Position of label.See UnitTextPlacement

    Name Type Description
    Back string The unit text will be placed on back side of the gauge
    From string The unit text will be placed on front side of the gauge

    Default Value

    • Back

    Example

  • ts
  • this.scales=[{          
        labels:[{
            unitTextPlacement:'front'
        }]    
    }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.length number

    Specifies the scaleBar Length.

    Default Value

    • 290

    Example

  • ts
  • this.scales=[{
       length:150
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.majorIntervalValue number

    Specifies the majorIntervalValue of the Scale.

    Default Value

    • 10

    Example

  • ts
  • this.scales=[{
       majorInterValue:10
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers Array

    Specifies the markerPointers

    Default Value

    • Array

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
           //..
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.backgroundColor string

    Specifies the backgroundColor of marker pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
            backgroundColor:'red'
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.border object

    Specifies the border of marker pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
            border:{
               //..
            }
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.border.color string

    Specifies the border color of marker pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
            border:{
                color:'red'
            }
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.border.width number

    Specifies the border of marker pointer

    Default Value

    • number

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
            border:{
                width:2
            }
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.distanceFromScale number

    Specifies the distanceFromScale of marker pointer

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
           distanceFromScale:2
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.gradients object

    Specifies the pointer Gradient of marker pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
           gradients:{
                colorInfo:[{ 
                    colorStop : 0, 
                    color:"#FFFFFF"
                }]
            }
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.length number

    Specifies the pointer Length of marker pointer

    Default Value

    • 30

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
           length:150
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.opacity number

    Specifies the opacity of marker pointer

    Default Value

    • 1

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
          opacity:0.5
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.placement enum

    Specifies the pointer Placement of marker pointer See PointerPlacement

    Default Value

    • Far

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
          placement:'near'
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.type enum

    Specifies the marker Style of marker pointerSee MarkerType

    Name Type Description
    Rectangle string Style of the marker will be rectangle
    Triangle string Style of the marker will be triangle
    Ellipse string Style of the marker will be ellipse
    Diamond string Style of the marker will be diamond
    Pentagon string Style of the marker will be pentagon
    Circle string Style of the marker will be circle
    Star string Style of the marker will be star
    Slider string Style of the marker will be slider
    Pointer string Style of the marker will be pointer
    Wedge string Style of the marker will be wedge
    Trapezoid string Style of the marker will be trapezoid
    RoundedRectangle string Style of the marker will be rounded rectangle

    Default Value

    • Triangle

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
          type:'rectangle'
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.value number

    Specifies the value of marker pointer

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
          value:25
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.markerPointers.width number

    Specifies the pointer Width of marker pointer

    Default Value

    • 30

    Example

  • ts
  • this.scales=[{
       markerPointers:[{
          width:2
       }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.maximum number

    Specifies the maximum of the Scale.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        maximum:110
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.minimum number

    Specifies the minimum of the Scale.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        minimum:10
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.minorIntervalValue number

    Specifies the minorIntervalValue of the Scale.

    Default Value

    • 2

    Example

  • ts
  • this.scales=[{
        minorIntervalValue:1
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.opacity number

    Specifies the opacity of the Scale.

    Default Value

    • NaN

    Example

  • ts
  • this.scales=[{
        opacity:0.5
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.position object

    Specifies the position

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        position:{
            x:5
        }
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.position.x number

    Specifies the Horizontal position

    Default Value

    • 50

    Example

    SCALES.POSITION.X

    scales.position.y number

    Specifies the vertical position

    Default Value

    • 50

    Example

  • ts
  • this.scales=[{
        position:{
            y:50
        }
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges Array

    Specifies the ranges in the tick.

    Default Value

    • Array

    Example

  • ts
  • this.scales=[{
        ranges:[{
            //..
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.backgroundColor string

    Specifies the backgroundColor in the ranges.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        ranges:[{
            backgroundColor:'red'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.border object

    Specifies the border in the ranges.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        ranges:[{
            border:{
               //..
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.border.color string

    Specifies the border color in the ranges.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        ranges:[{
            border:{
                color:'red'
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.border.width number

    Specifies the border width in the ranges.

    Default Value

    • 1.5

    Example

  • ts
  • this.scales=[{
        ranges:[{
            border:{
               width:2
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.distanceFromScale number

    Specifies the distanceFromScale in the ranges.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        ranges:[{
            distanceFromScale:10
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.endValue number

    Specifies the endValue in the ranges.

    Default Value

    • 60

    Example

  • ts
  • this.scales=[{
        ranges:[{
            endValue:60
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.endWidth number

    Specifies the endWidth in the ranges.

    Default Value

    • 10

    Example

  • ts
  • this.scales=[{
        ranges:[{
            endWidth:20
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.gradients object

    Specifies the range Gradient in the ranges.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        ranges:[{
            gradients:{
                colorInfo:[{ 
                    colorStop : 0, 
                    color:"#FFFFFF"
                }]
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.opacity number

    Specifies the opacity in the ranges.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        ranges:[{
            opacity:0.5
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.placement enum

    Specifies the range Position in the ranges. See RangePlacement

    Default Value

    • Center

    Example

  • ts
  • this.scales=[{
        ranges:[{
            placement:'center'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.startValue number

    Specifies the startValue in the ranges.

    Default Value

    • 20

    Example

  • ts
  • this.scales=[{
        ranges:[{
            startValue:10
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ranges.startWidth number

    Specifies the startWidth in the ranges.

    Default Value

    • 10

    Example

  • ts
  • this.scales=[{
        ranges:[{
            startWidth:5
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.shadowOffset number

    Specifies the shadowOffset.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        shadowOffset:1
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.showBarPointers boolean

    Specifies the showBarPointers state.

    Default Value

    • true

    Example

  • ts
  • this.scales=[{
        showBarPointers:false
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.showCustomLabels boolean

    Specifies the showCustomLabels state.

    Default Value

    • false

    Example

  • ts
  • this.scales=[{
        showCustomLabels:true
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.showIndicators boolean

    Specifies the showIndicators state.

    Default Value

    • false

    Example

  • ts
  • this.scales=[{
        showIndicators:true
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.showLabels boolean

    Specifies the showLabels state.

    Default Value

    • true

    Example

  • ts
  • this.scales=[{
        showLabels:false
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.showMarkerPointers boolean

    Specifies the showMarkerPointers state.

    Default Value

    • true

    Example

  • ts
  • this.scales=[{
        showMarkerPointers:false
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.showRanges boolean

    Specifies the showRanges state.

    Default Value

    • false

    Example

  • ts
  • this.scales=[{
        showRanges:false
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.showTicks boolean

    Specifies the showTicks state.

    Default Value

    • true

    Example

  • ts
  • this.scales=[{
        showTicks:false
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks Array

    Specifies the ticks in the scale.

    Default Value

    • Array

    Example

  • ts
  • this.scales=[{
        ticks:[{
            //..
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.angle number

    Specifies the angle in the tick.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        ticks:[{
            angle:45
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.color string

    Specifies the tick Color in the tick.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        ticks:[{
            color:'red'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.distanceFromScale object

    Specifies the DistanceFromScale in the tick.

    Default Value

    • null

    Example

  • ts
  • this.scales=[{
        ticks:[{
            distanceFromScale:{
                //..
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.distanceFromScale.x number

    Specifies the xDistanceFromScale in the tick.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        ticks:[{
            distanceFromScale:{
                x:10
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.distanceFromScale.y number

    Specifies the yDistanceFromScale in the tick.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        ticks:[{
            distanceFromScale:{
                y:50
            }
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.height number

    Specifies the tick Height in the tick.

    Default Value

    • 10

    Example

  • ts
  • this.scales=[{
        ticks:[{
            height:20
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.opacity number

    Specifies the opacity in the tick.

    Default Value

    • 0

    Example

  • ts
  • this.scales=[{
        ticks:[{
           opacity:0.5
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.placement enum

    Specifies the tick Placement in the tick. See TickPlacement

    Default Value

    • Near

    Example

  • ts
  • this.scales=[{
        ticks:[{
           placement:'far'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.type enum

    Specifies the tick Style in the tick. See TickType

    Name Type Description
    Majorinterval string Sets the tick style as major interval
    Minorinterval string Sets the tick style as minor interval

    Default Value

    • MajorInterval

    Example

  • ts
  • this.scales=[{
        ticks:[{
           type:'majotinterval'
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.ticks.width number

    Specifies the tick Width in the tick.

    Default Value

    • 3

    Example

  • ts
  • this.scales=[{
        ticks:[{
           width:2
        }]
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.type enum

    Specifies the scaleBar type .See ScaleType

    Name Type Description
    Rectangle string Type of the scale bar will be rectangle
    RoundedRectangle string Type of the scale bar will be roundedrectangle
    Thermometer string Type of the scale bar will be thermometer

    Default Value

    • Rectangle

    Example

  • ts
  • this.scales=[{
        type:'rectangle'
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    scales.width number

    Specifies the scaleBar width.

    Default Value

    • 30

    Example

  • ts
  • this.scales=[{
        width:2
     }]
  • html
  • <ej-lineargauge id="LinearGauge1" [scales]="scales">  
    </ej-lineargauge>

    theme enum

    Specifies the theme for Linear gauge. See LinearGauge.Themes

    Name Type Description
    FlatLight string Theme of linear gauge will be flatlight
    FlatDark string Theme of linear gauge will be flatdark

    Default Value

    • flatlight

    Example

  • html
  • <ej-lineargauge id="LinearGauge1" theme="flatdark">  
    </ej-lineargauge>

    tickColor string

    Specifies the tick Color for Linear gauge.

    Default Value

    • null

    Example

  • html
  • <ej-lineargauge id="LinearGauge1" tickColor="red">  
    </ej-lineargauge>

    tooltip object

    Specify tooltip options of linear gauge

    Default Value

    • false

    Example

  • ts
  • this.tooltip = { 
        //..
    };
  • html
  • <ej-lineargauge id="LinearGauge1" [tooltip]="tooltip">  
    </ej-lineargauge>

    tooltip.showCustomLabelTooltip boolean

    Specify showCustomLabelTooltip value of linear gauge

    Default Value

    • false

    Example

  • ts
  • this.tooltip = { 
        showCustomLabelTooltip: true
    };
  • html
  • <ej-lineargauge id="LinearGauge1" [tooltip]="tooltip">  
    </ej-lineargauge>

    tooltip.showLabelTooltip boolean

    Specify showLabelTooltip value of linear gauge

    Default Value

    • false

    Example

  • ts
  • this.tooltip = { 
        showLabelTooltip: true
    };
  • html
  • <ej-lineargauge id="LinearGauge1" [tooltip]="tooltip">  
    </ej-lineargauge>

    tooltip.templateID string

    Specify templateID value of linear gauge

    Default Value

    • false

    Example

  • ts
  • this.tooltip = { 
        templateID: true
    };
  • html
  • <ej-lineargauge id="LinearGauge1" [tooltip]="tooltip">  
    </ej-lineargauge>

    value number

    Specifies the value of the Gauge.

    Default Value

    • 0

    Example

  • html
  • <ej-lineargauge id="LinearGauge1" [value]="60">  
    </ej-lineargauge>

    width number

    Specifies the width of Linear gauge.

    Default Value

    • 150

    Example

  • html
  • <ej-lineargauge id="LinearGauge1" [width]="100">  
    </ej-lineargauge>

    Methods

    destroy()

    destroy the linear gauge all events bound using this._on will be unbind automatically and bring the control to pre-init state.

    Returns: void

    Example

  • ts
  • destroy(){
         
         //Do something
         this.linearIns.widget.destroy();
    
    }

    exportImage()

    To export Image

    Name Type Description
  • html
  • argument.fileName
    number for the Image
  • html
  • argument.fileType
    number for the Image

    Returns: void

    Example

  • ts
  • exportimage(){
         
         //Do something
         this.linearIns.widget.exportImage();
    
    }

    getBarDistanceFromScale()

    To get Bar Distance From Scale in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getbardistancefromscale(){
         
         //Do something
         this.linearIns.widget.getBarDistanceFromScale();
    
    }

    getBarPointerValue()

    To get Bar Pointer Value in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getbarpointervalue(){
         
         //Do something
         this.linearIns.widget.getBarPointerValue();
    
    }

    getBarWidth()

    To get Bar Width in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getbarwidth(){
         
         //Do something
         this.linearIns.widget.getBarWidth();
    
    }

    getCustomLabelAngle()

    To get CustomLabel Angle in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.customLabelIndex
    number customLabelIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getcustomangle(){
         
         //Do something
         this.linearIns.widget.getCustomAngle();
    
    }

    getCustomLabelValue()

    To get CustomLabel Value in string

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.customLabelIndex
    number customLabelIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getcustomlabelvalue(){
         
         //Do something
         this.linearIns.widget.getCustomLabelValue();
    
    }

    getLabelAngle()

    To get Label Angle in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • getlabelangle(){
         
         //Do something
         this.linearIns.widget.getLabelAngle();
    
    }

    getLabelPlacement()

    To get LabelPlacement in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • getlabelplacement(){
         
         //Do something
         this.linearIns.widget.getLabelPlacement();
    
    }

    getLabelStyle()

    To get LabelStyle in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • getlabelstyle(){
         
         //Do something
         this.linearIns.widget.getLabelStyle();
    
    }

    getLabelXDistanceFromScale()

    To get Label XDistance From Scale in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • getlabelxdistancefromscale(){
         
         //Do something
         this.linearIns.widget.getLabelXDistanceFromScale();
    
    }

    getLabelYDistanceFromScale()

    To get PointerValue in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • getlabelydistancefromscale(){
         
         //Do something
         this.linearIns.widget.getLabelYDistanceFromScale();
    
    }

    getMajorIntervalValue()

    To get Major Interval Value in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getmajorintervalvalue(){
         
         //Do something
         this.linearIns.widget.getMajorIntervalValue();
    
    }

    getMarkerStyle()

    To get MarkerStyle in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getmarkerstyle(){
         
         //Do something
         this.linearIns.widget.getMarkerStyle();
    
    }

    getMaximumValue()

    To get Maximum Value in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getmaximumvalue(){
         
         //Do something
         this.linearIns.widget.getMaximumValue();
    
    }

    getMinimumValue()

    To get PointerValue in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • getminimumvalue(){
         
         //Do something
         this.linearIns.widget.getMinimumValue();
    
    }

    getMinorIntervalValue()

    To get Minor Interval Value in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getminorintervalvalue(){
         
         //Do something
         this.linearIns.widget.getMinorIntervalValue();
    
    }

    getPointerDistanceFromScale()

    To get Pointer Distance From Scale in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getpointerdistancefromscale(){
         
         //Do something
         this.linearIns.widget.getPointerDistanceFromScale();
    
    }

    getPointerHeight()

    To get PointerHeight in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getpointerheight(){
         
         //Do something
         this.linearIns.widget.getPointerHeight();
    
    }

    getPointerPlacement()

    To get Pointer Placement in String

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getpointerplacement(){
         
         //Do something
         this.linearIns.widget.getPointerPlacement();
    
    }

    getPointerValue()

    To get PointerValue in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getpointervalue(){
         
         //Do something
         this.linearIns.widget.getPointerValue();
    
    }

    getPointerWidth()

    To get PointerWidth in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getpointerwidth(){
         
         //Do something
         this.linearIns.widget.getPointerWidth();
    
    }

    getRangeBorderWidth()

    To get Range Border Width in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getrangeborderwidth(){
         
         //Do something
         this.linearIns.widget.getRangeBorderWidth();
    
    }

    getRangeDistanceFromScale()

    To get Range Distance From Scale in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getrangedistancefromscale(){
         
         //Do something
         this.linearIns.widget.getRangeDistanceFromScale();
    
    }

    getRangeEndValue()

    To get Range End Value in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getrangeendvalue(){
         
         //Do something
         this.linearIns.widget.getRangeEndValue();
    
    }

    getRangeEndWidth()

    To get Range End Width in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getrangeendwidth(){
         
         //Do something
         this.linearIns.widget.getRangeEndWidth();
    
    }

    getRangePosition()

    To get Range Position in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getrangeposition(){
         
         //Do something
         this.linearIns.widget.getRangePosition();
    
    }

    getRangeStartValue()

    To get Range Start Value in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getrangestartvalue(){
         
         //Do something
         this.linearIns.widget.getRangeStartValue();
    
    }

    getRangeStartWidth()

    To get Range Start Width in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getrangesartwidth(){
         
         //Do something
         this.linearIns.widget.getRangeSartWidth();
    
    }

    getScaleBarLength()

    To get ScaleBarLength in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getscalebarlength(){
         
         //Do something
         this.linearIns.widget.getScaleBarLength();
    
    }

    getScaleBarSize()

    To get Scale Bar Size in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • getscalebarsize(){
         
         //Do something
         this.linearIns.widget.getScaleBarSize();
    
    }

    getScaleBorderWidth()

    To get Scale Border Width in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getscaleborderwidth(){
         
         //Do something
         this.linearIns.widget.getScaleBorderWidth();
    
    }

    getScaleDirection()

    To get Scale Direction in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getscaledirection(){
         
         //Do something
         this.linearIns.widget.getScaleDirection();
    
    }

    getScaleLocation()

    To get Scale Location in object

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getscalelocation(){
         
         //Do something
         this.linearIns.widget.getScaleLocation();
    
    }

    getScaleStyle()

    To get Scale Style in string

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge

    Returns: any

    Example

  • ts
  • getscalestyle(){
         
         //Do something
         this.linearIns.widget.getScaleStyle();
    
    }

    getTickAngle()

    To get Tick Angle in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • gettickangle(){
         
         //Do something
         this.linearIns.widget.getTickAngle();
    
    }

    getTickHeight()

    To get Tick Height in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • gettickheight(){
         
         //Do something
         this.linearIns.widget.getTickHeight();
    
    }

    getTickPlacement()

    To get getTickPlacement in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • gettickplacement(){
         
         //Do something
         this.linearIns.widget.getTickPlacement();
    
    }

    getTickStyle()

    To get Tick Style in string

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • gettickstyle(){
         
         //Do something
         this.linearIns.widget.getTickStyle();
    
    }

    getTickWidth()

    To get Tick Width in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • gettickwidth(){
         
         //Do something
         this.linearIns.widget.getTickWidth();
    
    }

    getTickXDistanceFromScale()

    To get get Tick XDistance From Scale in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • gettickxdistancefromscale(){
         
         //Do something
         this.linearIns.widget.getTickXDistanceFromScale();
    
    }

    getTickYDistanceFromScale()

    To get Tick YDistance From Scale in number

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge

    Returns: any

    Example

  • ts
  • gettickydistancefromscale(){
         
         //Do something
         this.linearIns.widget.getTickYDistanceFromScale();
    
    }

    scales()

    Specifies the scales.

    Default Value

    • null

    Returns: void

    Example

  • ts
  • scales(){
         
         //Do something
         this.linearIns.widget.scales();
    
    }

    setBarDistanceFromScale()

    To set setBarDistanceFromScale

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex,value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.value
    number Bar DistanceFromScale value for Gauge

    Returns: void

    Example

  • ts
  • setbardistancefromscale(){
         
         //Do something
         this.linearIns.widget.setBarDistanceFromScale();
    
    }

    setBarPointerValue()

    To set setBarPointerValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.value
    number Bar Pointer Value for Gauge

    Returns: void

    Example

  • ts
  • setbarpointervalue(){
         
         //Do something
         this.linearIns.widget.setBarPointerValue();
    
    }

    setBarWidth()

    To set setBarWidth

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.value
    number Bar Width for Gauge

    Returns: void

    Example

  • ts
  • setbarwidth(){
         
         //Do something
         this.linearIns.widget.setBarWidth();
    
    }

    setCustomLabelAngle()

    To set setCustomLabelAngle

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.customLabelIndex
    number customLabelIndex value for the Gauge
  • html
  • arguemnt.value
    number Custom Label Angle for Gauge

    Returns: void

    Example

  • ts
  • setcustomlabelangle(){
         
         //Do something
         this.linearIns.widget.setCustomLabelAngle();
    
    }

    setCustomLabelValue()

    To set setCustomLabelValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.customLabelIndex
    number customLabelIndex value for the Gauge
  • html
  • arguemnt.value
    number CustomLabel value for Gauge

    Returns: void

    Example

  • ts
  • setcustomlabelvalue(){
         
         //Do something
         this.linearIns.widget.setCustomLabelValue();
    
    }

    setLabelAngle()

    To set setLabelAngle

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge
  • html
  • arguemnt.angle
    number Label Angle for Gauge

    Returns: void

    Example

  • ts
  • setlabelangle(){
         
         //Do something
         this.linearIns.widget.setLabelAngle();
    
    }

    setLabelPlacement()

    To set setLabelPlacement

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge
  • html
  • arguemnt.value
    number Label Placement for Gauge

    Returns: void

    Example

  • ts
  • setlabelplacement(){
         
         //Do something
         this.linearIns.widget.setLabelPlacement();
    
    }

    setLabelStyle()

    To set setLabelStyle

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge
  • html
  • arguemnt.value
    string Label Style for Gauge

    Returns: void

    Example

  • ts
  • setlabelstyle(){
         
         //Do something
         this.linearIns.widget.setLabelStyle();
    
    }

    setLabelXDistanceFromScale()

    To set setLabelXDistanceFromScale

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge
  • html
  • arguemnt.value
    number Label XDistance From Scale for Gauge

    Returns: void

    Example

  • ts
  • setlabelxdistancefromscale(){
         
         //Do something
         this.linearIns.widget.setLabelXDistanceFromScale();
    
    }

    setLabelYDistanceFromScale()

    To set setLabelYDistanceFromScale

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.labelIndex
    number value for the Gauge
  • html
  • arguemnt.value
    number Label YDistance From Scale for Gauge

    Returns: void

    Example

  • ts
  • setlabelydistancefromscale(){
         
         //Do something
         this.linearIns.widget.setLabelYDistanceFromScale();
    
    }

    setMajorIntervalValue()

    To set setMajorIntervalValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number Major Interval Value for Gauge

    Returns: void

    Example

  • ts
  • setmajorintervalvalue(){
         
         //Do something
         this.linearIns.widget.setMajorIntervalValue();
    
    }

    setMarkerStyle()

    To set setMarkerStyle

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.value
    string marker Style for Gauge

    Returns: void

    Example

  • ts
  • setmarkerstyle(){
         
         //Do something
         this.linearIns.widget.setMarkerStyle();
    
    }

    setMaximumValue()

    To set setMaximumValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number MaximumValue for Gauge

    Returns: void

    Example

  • ts
  • setmaximumvalue(){
         
         //Do something
         this.linearIns.widget.setMaximumValue();
    
    }

    setMinimumValue()

    To set setMinimumValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number MinimumValue for Gauge

    Returns: void

    Example

  • ts
  • setminimumvalue(){
         
         //Do something
         this.linearIns.widget.setMinimumValue();
    
    }

    setMinorIntervalValue()

    To set setMinorIntervalValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number Minor Interval Value for Gauge

    Returns: void

    Example

  • ts
  • setminorintervalvalue(){
         
         //Do something
         this.linearIns.widget.setMinorIntervalValue();
    
    }

    setPointerDistanceFromScale()

    To set setPointerDistanceFromScale

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.value
    number for Gauge

    Returns: void

    Example

  • ts
  • setpointerdistancefromscale(){
         
         //Do something
         this.linearIns.widget.setPointerDistanceFromScale();
    
    }

    setPointerHeight()

    To set PointerHeight

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.height
    number for Gauge

    Returns: void

    Example

  • ts
  • setpointerheight(){
         
         //Do something
         this.linearIns.widget.setPointerHeight();
    
    }

    setPointerPlacement()

    To set setPointerPlacement

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.value
    number pointer placement for Gauge

    Returns: void

    Example

  • ts
  • setpointerplacement(){
         
         //Do something
         this.linearIns.widget.setPointerPlacement();
    
    }

    setPointerValue()

    To set PointerValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.value
    number Pointer value for Gauge

    Returns: void

    Example

  • ts
  • setpointervalue(){
         
         //Do something
         this.linearIns.widget.setPointerValue();
    
    }

    setPointerWidth()

    To set PointerWidth

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.pointerIndex
    number pointerIndex value for the Gauge
  • html
  • arguemnt.width
    number Pointer width for Gauge

    Returns: void

    Example

  • ts
  • setpointerwidth(){
         
         //Do something
         this.linearIns.widget.setPointerWidth();
    
    }

    setRangeBorderWidth()

    To set setRangeBorderWidth

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge
  • html
  • arguemnt.value
    number Range Border Width for Gauge

    Returns: void

    Example

  • ts
  • setrangeborderwidth(){
         
         //Do something
         this.linearIns.widget.setRangeBorderWidth();
    
    }

    setRangeDistanceFromScale()

    To set setRangeDistanceFromScale

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge
  • html
  • arguemnt.value
    number Range Distance FromScale for Gauge

    Returns: void

    Example

  • ts
  • setrangedistancefromscale(){
         
         //Do something
         this.linearIns.widget.setRangeDistanceFromScale();
    
    }

    setRangeEndValue()

    To set setRangeEndValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge
  • html
  • arguemnt.value
    number Range end value for Gauge

    Returns: void

    Example

  • ts
  • setrangeendvalue(){
         
         //Do something
         this.linearIns.widget.setRangeEndValue();
    
    }

    setRangeEndWidth()

    To set setRangeEndWidth

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge
  • html
  • arguemnt.value
    number Range End Width for Gauge

    Returns: void

    Example

  • ts
  • setendwidth(){
         
         //Do something
         this.linearIns.widget.setEndWidth();
    
    }

    setRangePosition()

    To set setRangePosition

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge
  • html
  • arguemnt.value
    number Range Position for Gauge

    Returns: void

    Example

  • ts
  • setrangeposition(){
         
         //Do something
         this.linearIns.widget.setRangePosition();
    
    }

    setRangeStartValue()

    To set setRangeStartValue

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge
  • html
  • arguemnt.value
    number range start value for Gauge

    Returns: void

    Example

  • ts
  • setrangestartvalue(){
         
         //Do something
         this.linearIns.widget.setRangeStartValue();
    
    }

    setRangeStartWidth()

    To set setRangeStartWidth

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.rangeIndex
    number rangeIndex value for the Gauge
  • html
  • arguemnt.value
    number Range Start Width for Gauge

    Returns: void

    Example

  • ts
  • setstartwidth(){
         
         //Do something
         this.linearIns.widget.setStartWidth();
    
    }

    setScaleBarLength()

    To set setScaleBarLength

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number Scale Bar Length for Gauge

    Returns: void

    Example

  • ts
  • setscalebarlength(){
         
         //Do something
         this.linearIns.widget.setScaleBarLength();
    
    }

    setScaleBarSize()

    To set setScaleBarSize

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number ScaleBarSize for Gauge

    Returns: void

    Example

  • ts
  • setscalebarsize(){
         
         //Do something
         this.linearIns.widget.setScaleBarSize();
    
    }

    setScaleBorderWidth()

    To set setScaleBorderWidth

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number Scale Border Width for Gauge

    Returns: void

    Example

  • ts
  • setscaleborderwidth(){
         
         //Do something
         this.linearIns.widget.setScaleBorderWidth();
    
    }

    setScaleDirection()

    To set setScaleDirection

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number Scale Direction for Gauge

    Returns: void

    Example

  • ts
  • setscaledirection(){
         
         //Do something
         this.linearIns.widget.setScaleDirection();
    
    }

    setScaleLocation()

    To set setScaleLocation

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    object Scale position for Gauge

    Returns: void

    Example

  • ts
  • setscalelocation(){
         
         //Do something
         this.linearIns.widget.setScaleLocation();
    
    }

    setScaleStyle()

    To set setScaleStyle

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • arguemnt.value
    number for Gauge

    Returns: void

    Example

  • ts
  • setscalestyle(){
         
         //Do something
         this.linearIns.widget.setScaleStyle();
    
    }

    setTickAngle()

    To set setTickAngle

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge
  • html
  • arguemnt.angle
    number Tick Angle for Gauge

    Returns: void

    Example

  • ts
  • settickangle(){
         
         //Do something
         this.linearIns.widget.setTickAngle();
    
    }

    setTickHeight()

    To set setTickHeight

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge
  • html
  • arguemnt.value
    number Tick Height for Gauge

    Returns: void

    Example

  • ts
  • settickheight(){
         
         //Do something
         this.linearIns.widget.setTickHeight();
    
    }

    setTickPlacement()

    To set setTickPlacement

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge
  • html
  • arguemnt.value
    number Tick Placement for Gauge

    Returns: void

    Example

  • ts
  • settickplacement(){
         
         //Do something
         this.linearIns.widget.setTickPlacement();
    
    }

    setTickStyle()

    To set setTickStyle

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge
  • html
  • arguemnt.value
    string Tick Style for Gauge

    Returns: void

    Example

  • ts
  • settickstyle(){
         
         //Do something
         this.linearIns.widget.setTickStyle();
    
    }

    setTickWidth()

    To set setTickWidth

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge
  • html
  • arguemnt.value
    number Tick Width for Gauge

    Returns: void

    Example

  • ts
  • settickwidth(){
         
         //Do something
         this.linearIns.widget.setTickWidth();
    
    }

    setTickXDistanceFromScale()

    To set setTickXDistanceFromScale

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge
  • html
  • arguemnt.value
    number Tick XDistance From Scale for Gauge

    Returns: void

    Example

  • ts
  • settickxdistancefromscale(){
         
         //Do something
         this.linearIns.widget.setTickXDistanceFromScale();
    
    }

    setTickYDistanceFromScale()

    To set setTickYDistanceFromScale

    Name Type Description
  • html
  • argument.scaleIndex
    number scaleIndex value for the Gauge
  • html
  • argument.TickIndex
    number value for the Gauge
  • html
  • arguemnt.value
    number Tick YDistance From Scale for Gauge

    Returns: void

    Example

  • ts
  • settickydistancefromscale(){
         
         //Do something
         this.linearIns.widget.setTickYDistanceFromScale();
    
    }

    Events

    drawBarPointers

    Triggers while the bar pointer are being drawn on the gauge.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • context
    object returns the context element
  • html
  • position
    object returns the startX and startY of the pointer
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the options of the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the pointer belongs.
  • html
  • style
    string returns the pointer style
  • html
  • barElement
    object returns the current Bar pointer element.
  • html
  • barPointerIndex
    number returns the index of the bar pointer.
  • html
  • PointerValue
    number returns the value of the bar pointer.
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • ondrawbarpointers(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (drawBarPointers)="ondrawbarpointers($event)">
    </ej-lineargauge>

    drawCustomLabel

    Triggers while the customLabel are being drawn on the gauge.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • context
    object returns the context element
  • html
  • position
    object returns the startX and startY of the customLabel
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the options of the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the pointer belongs.
  • html
  • style
    object returns the customLabel style
  • html
  • customLabelElement
    object returns the current customLabel element.
  • html
  • customLabelIndex
    number returns the index of the customLabel.
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • ondrawcustomlabel(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (drawCustomLabel)="ondrawcustomlabel($event)">
    </ej-lineargauge>

    drawIndicators

    Triggers while the Indicator are being drawn on the gauge.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • context
    object returns the context element
  • html
  • position
    object returns the startX and startY of the Indicator
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the options of the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the pointer belongs.
  • html
  • style
    string returns the Indicator style
  • html
  • IndicatorElement
    object returns the current Indicator element.
  • html
  • IndicatorIndex
    number returns the index of the Indicator.
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • ondrawindicators(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (drawIndicators)="ondrawindicators($event)">
    </ej-lineargauge>

    drawLabels

    Triggers while the label are being drawn on the gauge.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • context
    object returns the context element
  • html
  • position
    object returns the startX and startY of the label
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the options of the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the label belongs.
  • html
  • style
    string returns the label style
  • html
  • label
    object returns the label style
    Name Type Description
  • html
  • angle
    number returns the angle of the label.
  • html
  • element
    object returns the current label element.
  • html
  • index
    number returns the index of the label.
  • html
  • value
    number returns the label value of the label.
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • ondrawlabels(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (drawLabels)="ondrawlabels($event)">
    </ej-lineargauge>

    drawMarkerPointers

    Triggers while the marker are being drawn on the gauge.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • context
    object returns the context element
  • html
  • position
    object returns the startX and startY of the pointer
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the options of the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the pointer belongs.
  • html
  • style
    string returns the ticks style
  • html
  • markerElement
    object returns the current marker pointer element.
  • html
  • markerPointerIndex
    number returns the index of the marker pointer.
  • html
  • pointerValue
    number returns the value of the marker pointer.
  • html
  • pointerAngle
    number returns the angle of the marker pointer.
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • ondrawmarkerpointers(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (drawMarkerPointers)="ondrawmarkerpointers($event)">
    </ej-lineargauge>

    drawRange

    Triggers while the range are being drawn on the gauge.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • context
    object returns the context element
  • html
  • position
    object returns the startX and startY of the range
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the options of the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the pointer belongs.
  • html
  • style
    string returns the range style
  • html
  • rangeElement
    object returns the current range element.
  • html
  • rangeIndex
    number returns the index of the range.
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • ondrawrange(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (drawRange)="ondrawrange($event)">
    </ej-lineargauge>

    drawTicks

    Triggers while the ticks are being drawn on the gauge.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • context
    object returns the context element
  • html
  • position
    object returns the startX and startY of the ticks
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the options of the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the tick belongs.
  • html
  • style
    string returns the ticks style
  • html
  • tick
    object returns the ticks style
    Name Type Description
  • html
  • angle
    number returns the angle of the tick.
  • html
  • element
    object returns the current tick element.
  • html
  • index
    number returns the index of the tick.
  • html
  • value
    number returns the tick value of the tick.
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • ondrawticks(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (drawTicks)="ondrawticks($event)">
    </ej-lineargauge>

    init

    Triggers when the gauge is initialized.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the entire scale element.
  • html
  • context
    object returns the context element
  • html
  • type
    string returns the name of the event

    Example

  • ts
  • oninit(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (init)="oninit($event)">
    </ej-lineargauge>

    load

    Triggers while the gauge start to Load.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the entire scale element.
  • html
  • context
    object returns the context element
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • onload(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (load)="onload($event)">
    </ej-lineargauge>

    mouseClick

    Triggers when the left mouse button is clicked.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • model
    object returns the gauge model
  • html
  • type
    object returns the name of the event
  • html
  • scaleElement
    object returns the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the pointer belongs.
  • html
  • context
    object returns the context element* @param {Object} args.markerpointer returns the context element
  • html
  • markerpointerindex
    number returns the pointer Index
  • html
  • markerpointerelement
    object returns the pointer element.
  • html
  • markerpointervalue
    number returns the value of the pointer.
  • html
  • style
    string returns the pointer style
  • html
  • position
    object returns the startX and startY of the pointer.

    Example

  • ts
  • onmouseclick(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (mouseClick)="onmouseclick($event)">
    </ej-lineargauge>

    mouseClickMove

    Triggers when clicking and dragging the mouse pointer over the gauge pointer.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • model
    object returns the gauge model
  • html
  • type
    object returns the name of the event
  • html
  • scaleElement
    object returns the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the pointer belongs.
  • html
  • context
    object returns the context element
  • html
  • markerpointer
    object returns the context element
    Name Type Description
  • html
  • index
    number returns the pointer Index
  • html
  • element
    object returns the pointer element.
  • html
  • value
    number returns the value of the pointer.
  • html
  • style
    string returns the pointer style
  • html
  • position
    object returns the startX and startY of the pointer.

    Example

  • ts
  • onmouseclickmove(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (mouseClickMove)="onmouseclickmove($event)">
    </ej-lineargauge>

    mouseClickUp

    Triggers when the mouse click is released.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • model
    object returns the gauge model
  • html
  • type
    object returns the name of the event
  • html
  • scaleElement
    object returns the scale element.
  • html
  • scaleIndex
    number returns the scaleIndex to which the pointer belongs.
  • html
  • context
    object returns the context element* @param {Object} args.markerpointer returns the context element
  • html
  • markerpointerIndex
    number returns the pointer Index
  • html
  • markerpointerElement
    object returns the pointer element.
  • html
  • markerpointerValue
    number returns the value of the pointer.
  • html
  • style
    string returns the pointer style
  • html
  • position
    object returns the startX and startY of the pointer.

    Example

  • ts
  • onmouseclickup(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (mouseClickUp)="onmouseclickup($event)">
    </ej-lineargauge>

    renderComplete

    Triggers while the rendering of the gauge completed.

    Name Type Description
  • html
  • object
    object returns the object of the gauge.
  • html
  • cancel
    boolean returns the cancel option value
  • html
  • Model
    object returns the gauge model
  • html
  • scaleElement
    object returns the entire scale element.
  • html
  • context
    object returns the context element
  • html
  • type
    object returns the name of the event

    Example

  • ts
  • onrendercomplete(sender){
         
         //Do something
    
    }
  • html
  • <ej-lineargauge id="events" (renderComplete)="onrendercomplete($event)">
    </ej-lineargauge>