ejLinearGauge
4 Oct 201724 minutes to read
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.
<ej-lineargauge id="lineargauge">
</ej-lineargauge>
Name | Type | Description |
---|---|---|
|
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
<ej-lineargauge id="lineargauge" [animationSpeed]="1000">
</ej-lineargauge>
backgroundColor string
Specifies the backgroundColor for Linear gauge.
Default Value
- null
Example
<ej-lineargauge id="lineargauge" backgroundColor ="Red">
</ej-lineargauge>
borderColor string
Specifies the borderColor for Linear gauge.
Default Value
- null
Example
<ej-lineargauge id="lineargauge" borderColor ="Red">
</ej-lineargauge>
enableAnimation boolean
Specifies the animate state
Default Value
- true
Example
<ej-lineargauge id="lineargauge" [enableAnimation] ="true">
</ej-lineargauge>
enableMarkerPointerAnimation boolean
Specifies the animate state for marker pointer
Default Value
- true
Example
<ej-lineargauge id="lineargauge" [enableMarkerPointerAnimation] ="true">
</ej-lineargauge>
isResponsive boolean
Specifies the can resize state.
Default Value
- false
Example
<ej-lineargauge id="lineargauge" [isResponsive] ="true">
</ej-lineargauge>
frame object
Specify frame of linear gauge
Default Value
- null
Example
<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
<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
<ej-lineargauge id="lineargauge" [frame.innerWidth] ="9">
</ej-lineargauge>
frame.outerWidth number
Specifies the frame OuterWidth
Default Value
- 12
Example
<ej-lineargauge id="lineargauge" [frame.outerWidth] ="13">
</ej-lineargauge>
height number
Specifies the height of Linear gauge.
Default Value
- 400
Example
<ej-lineargauge id="lineargauge" [height] ="360">
</ej-lineargauge>
labelColor string
Specifies the labelColor for Linear gauge.
Default Value
- null
Example
<ej-lineargauge id="lineargauge" labelColor ="Red">
</ej-lineargauge>
maximum number
Specifies the maximum value of Linear gauge.
Default Value
- 100
Example
<ej-lineargauge id="lineargauge" [maximum] ="110">
</ej-lineargauge>
minimum number
Specifies the minimum value of Linear gauge.
Default Value
- 0
Example
<ej-lineargauge id="lineargauge" [maximum] ="10">
</ej-lineargauge>
orientation string
Specifies the orientation for Linear gauge.
Default Value
- “Vertical”
Example
<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
<ej-lineargauge id="lineargauge" outerCustomLabelPosition ="top">
</ej-lineargauge>
pointerGradient1 object
Specifies the pointerGradient1 for Linear gauge.
Default Value
- null
Example
<ej-lineargauge id="lineargauge" [pointerGradient1] ="[colorInfo:[{ colorStop : 0, color:"#FFFFFF"}] ]">
</ej-lineargauge>
pointerGradient2 object
Specifies the pointerGradient2 for Linear gauge.
Default Value
- null
Example
<ej-lineargauge id="lineargauge" [pointerGradient2] ="[colorInfo:[{ colorStop : 0, color:"#FFFFFF"}] ]">
</ej-lineargauge>
readOnly boolean
Specifies the read only state.
Default Value
- true
Example
<ej-lineargauge id="lineargauge" [readOnly]="false">
</ej-lineargauge>
scales array
Specifies the scales
Default Value
- null
Example
this.scales=[{
//..
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.backgroundColor string
Specifies the backgroundColor of the Scale.
Default Value
- null
Example
this.scales=[{
backgroundColor: 'red'
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers Array
Specifies the scaleBar Gradient of bar pointer
Default Value
- Array
Example
this.scales=[{
barPointers: [{
//..
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers.backgroundColor string
Specifies the backgroundColor of bar pointer
Default Value
- null
Example
this.scales=[{
barPointers: [{
backgroundColor: 'red'
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers.border object
Specifies the border of bar pointer
Default Value
- null
Example
this.scales=[{
barPointers: [{
border:{
}
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers.border.color string
Specifies the border Color of bar pointer
Default Value
- null
Example
this.scales=[{
barPointers: [{
border:{
color:'red'
}
}],
}]
<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
this.scales=[{
barPointers: [{
border:{
width:2
}
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers.distanceFromScale number
Specifies the distanceFromScale of bar pointer
Default Value
- 0
Example
this.scales=[{
barPointers: [{
distanceFromScale:20
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers.gradients object
Specifies the scaleBar Gradient of bar pointer
Default Value
- null
Example
this.scales=[{
barPointers: [{
gradients:{
colorInfo:[{
colorStop : 0,
color:"#FFFFFF"
}]
}
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers.opacity number
Specifies the opacity of bar pointer
Default Value
- 1
Example
this.scales=[{
barPointers: [{
opacity:0.5
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers.value number
Specifies the value of bar pointer
Default Value
- null
Example
this.scales=[{
barPointers: [{
value:100
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.barPointers.width number
Specifies the pointer Width of bar pointer
Default Value
- width=30
Example
this.scales=[{
barPointers: [{
width:25
}],
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.border object
Specifies the border of the Scale.
Default Value
- null
Example
this.scales=[{
border:{
//..
}
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.border.color string
Specifies the border color of the Scale.
Default Value
- null
Example
this.scales=[{
border:{
color:'red'
}
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.border.width number
Specifies the border width of the Scale.
Default Value
- 1.5
Example
this.scales=[{
border:{
width:2.5
}
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels Array
Specifies the customLabel
Default Value
- Array
Example
this.scales=[{
customLabels:[{
//..
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.color number
Specifies the label Color in customLabels
Default Value
- null
Example
this.scales=[{
customLabels:[{
color:'yellow'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.font object
Specifies the font in customLabels
Default Value
- null
Example
this.scales=[{
customLabels:[{
font:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.font.fontFamily string
Specifies the fontFamily in customLabels
Default Value
- “Arial”
Example
this.scales=[{
customLabels:[{
font:{
fontFamily:'Arial',
}
}]
}]
<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
this.scales=[{
customLabels:[{
font:{
fontStyle:'Bold',
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.font.size string
Specifies the font size in customLabels
Default Value
- “11px”
Example
this.scales=[{
customLabels:[{
font:{
size:'12px'
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.opacity string
Specifies the opacity in customLabels
Default Value
- 0
Example
this.scales=[{
customLabels:[{
opacity:0.5
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.position object
Specifies the position in customLabels
Default Value
- null
Example
this.scales=[{
customLabels:[{
position:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.position.x number
Specifies the position x in customLabels
Default Value
- 0
Example
this.scales=[{
customLabels:[{
position:{
x:10
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.position.y number
Specifies the y in customLabels
Default Value
- 0
Example
this.scales=[{
customLabels:[{
position:{
y:50
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.positionType object
Specifies the positionType in customLabels.See CustomLabelPositionType
Default Value
- null
Example
this.scales=[{
customLabels:[{
positionType:'outer'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.textAngle number
Specifies the textAngle in customLabels
Default Value
- 0
Example
this.scales=[{
customLabels:[{
textAngle:20
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.customLabels.value string
Specifies the label Value in customLabels
Default Value
- ””
Example
this.scales=[{
customLabels:[{
value:'LinearGauge'
}]
}]
<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
this.scales=[{
direction:'Clockwise'
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators Array
Specifies the indicator
Default Value
- Array
Example
this.scales=[{
indicators:[{
//..
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.backgroundColor string
Specifies the backgroundColor in bar indicators
Default Value
- null
Example
this.scales=[{
indicators:[{
backgroundColor:'green'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.border number
Specifies the border in bar indicators
Default Value
- null
Example
this.scales=[{
indicators:[{
border:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.border.color string
Specifies the border Color in bar indicators
Default Value
- null
Example
this.scales=[{
indicators:[{
border:{
color:'green'
}
}]
}]
<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
this.scales=[{
indicators:[{
border:{
width:5
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.font object
Specifies the font of bar indicators
Default Value
- null
Example
this.scales=[{
indicators:[{
font:{
//..
}
}]
}]
<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
this.scales=[{
indicators:[{
font:{
fontFamily:'Segoe UI'
}
}]
}]
<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
this.scales=[{
indicators:[{
font:{
fontStyle:'bold'
}
}]
}]
<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
this.scales=[{
indicators:[{
font:{
size:'12px'
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.height number
Specifies the indicator Height of bar indicators
Default Value
- 30
Example
this.scales=[{
indicators:[{
height:20
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.opacity number
Specifies the opacity in bar indicators
Default Value
- NaN
Example
this.scales=[{
indicators:[{
opacity:0.5
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.position object
Specifies the position in bar indicators
Default Value
- null
Example
this.scales=[{
indicators:[{
position:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.position.x number
Specifies the x position in bar indicators
Default Value
- 0
Example
this.scales=[{
indicators:[{
position:{
x:10
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.position.y number
Specifies the y position in bar indicators
Default Value
- 0
Example
this.scales=[{
indicators:[{
position:{
y:50
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.stateRanges Array
Specifies the state ranges in bar indicators
Default Value
- Array
Example
this.scales=[{
indicators:[{
stateRanges:[{
//..
}]
}]
}]
<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
this.scales=[{
indicators:[{
stateRanges:[{
backgroundColor:'red'
}]
}]
}]
<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
this.scales=[{
indicators:[{
stateRanges:[{
borderColor:'red'
}]
}]
}]
<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
this.scales=[{
indicators:[{
stateRanges:[{
endValue:90
}]
}]
}]
<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
this.scales=[{
indicators:[{
stateRanges:[{
startValue:40
}]
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.stateRanges.text string
Specifies the text in bar indicators state ranges
Default Value
- ””
Example
this.scales=[{
indicators:[{
stateRanges:[{
text:'Linear Gauge'
}]
}]
}]
<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
this.scales=[{
indicators:[{
stateRanges:[{
textColor:'red'
}]
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.textLocation object
Specifies the textLocation in bar indicators
Default Value
- null
Example
this.scales=[{
indicators:[{
stateRanges:[{
textLocation:{
//..
}
}]
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.textLocation.x number
Specifies the textLocation position in bar indicators
Default Value
- 0
Example
this.scales=[{
indicators:[{
stateRanges:[{
textLocation:{
x:10
}
}]
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.textLocation.y number
Specifies the Y position in bar indicators
Default Value
- 0
Example
this.scales=[{
indicators:[{
stateRanges:[{
textLocation:{
y:50
}
}]
}]
}]
<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
this.scales=[{
indicators:[{
type:'rectangle'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.indicators.width number
Specifies the indicator Width in bar indicators
Default Value
- 30
Example
this.scales=[{
indicators:[{
width:2
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels Array
Specifies the labels.
Default Value
- Array
Example
this.scales=[{
labels:[{
//..
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.angle number
Specifies the angle of labels.
Default Value
- 0
Example
this.scales=[{
labels:[{
angle:45
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.distanceFromScale object
Specifies the DistanceFromScale of labels.
Default Value
- null
Example
this.scales=[{
labels:[{
distanceFromScale:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.distanceFromScale.x number
Specifies the xDistanceFromScale of labels.
Default Value
- -10
Example
this.scales=[{
labels:[{
distanceFromScale:{
x:5
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.distanceFromScale.y number
Specifies the yDistanceFromScale of labels.
Default Value
- 0
Example
this.scales=[{
labels:[{
distanceFromScale:{
y:10
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.font object
Specifies the font of labels.
Default Value
- null
Example
this.scales=[{
labels:[{
font:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.font.fontFamily string
Specifies the fontFamily of font.
Default Value
- “Arial”
Example
this.scales=[{
labels:[{
font:{
fontFamily:'Arial'
}
}]
}]
<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
this.scales=[{
labels:[{
font:{
fontStyle:'Bold'
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.font.size string
Specifies the size of font.
Default Value
- “11px”
Example
this.scales=[{
labels:[{
font:{
size:'12px'
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.includeFirstValue boolean
need to includeFirstValue.
Default Value
- true
Example
this.scales=[{
labels:[{
includeFirstValue: false
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.opacity number
Specifies the opacity of label.
Default Value
- 0
Example
this.scales=[{
labels:[{
opacity:0.5
}]
}]
<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
this.scales=[{
labels:[{
placement:'center'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.textColor string
Specifies the textColor of font.
Default Value
- null
Example
this.scales=[{
labels:[{
textColor:'red'
}]
}]
<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
this.scales=[{
labels:[{
type:'minor'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.labels.unitText string
Specifies the unitText of label.
Default Value
- ””
Example
this.scales=[{
labels:[{
unitText:'F'
}]
}]
<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
this.scales=[{
labels:[{
unitTextPlacement:'front'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.length number
Specifies the scaleBar Length.
Default Value
- 290
Example
this.scales=[{
length:150
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.majorIntervalValue number
Specifies the majorIntervalValue of the Scale.
Default Value
- 10
Example
this.scales=[{
majorInterValue:10
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers Array
Specifies the markerPointers
Default Value
- Array
Example
this.scales=[{
markerPointers:[{
//..
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.backgroundColor string
Specifies the backgroundColor of marker pointer
Default Value
- null
Example
this.scales=[{
markerPointers:[{
backgroundColor:'red'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.border object
Specifies the border of marker pointer
Default Value
- null
Example
this.scales=[{
markerPointers:[{
border:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.border.color string
Specifies the border color of marker pointer
Default Value
- null
Example
this.scales=[{
markerPointers:[{
border:{
color:'red'
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.border.width number
Specifies the border of marker pointer
Default Value
- number
Example
this.scales=[{
markerPointers:[{
border:{
width:2
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.distanceFromScale number
Specifies the distanceFromScale of marker pointer
Default Value
- 0
Example
this.scales=[{
markerPointers:[{
distanceFromScale:2
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.gradients object
Specifies the pointer Gradient of marker pointer
Default Value
- null
Example
this.scales=[{
markerPointers:[{
gradients:{
colorInfo:[{
colorStop : 0,
color:"#FFFFFF"
}]
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.length number
Specifies the pointer Length of marker pointer
Default Value
- 30
Example
this.scales=[{
markerPointers:[{
length:150
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.opacity number
Specifies the opacity of marker pointer
Default Value
- 1
Example
this.scales=[{
markerPointers:[{
opacity:0.5
}]
}]
<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
this.scales=[{
markerPointers:[{
placement:'near'
}]
}]
<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
this.scales=[{
markerPointers:[{
type:'rectangle'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.value number
Specifies the value of marker pointer
Default Value
- null
Example
this.scales=[{
markerPointers:[{
value:25
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.markerPointers.width number
Specifies the pointer Width of marker pointer
Default Value
- 30
Example
this.scales=[{
markerPointers:[{
width:2
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.maximum number
Specifies the maximum of the Scale.
Default Value
- null
Example
this.scales=[{
maximum:110
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.minimum number
Specifies the minimum of the Scale.
Default Value
- null
Example
this.scales=[{
minimum:10
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.minorIntervalValue number
Specifies the minorIntervalValue of the Scale.
Default Value
- 2
Example
this.scales=[{
minorIntervalValue:1
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.opacity number
Specifies the opacity of the Scale.
Default Value
- NaN
Example
this.scales=[{
opacity:0.5
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.position object
Specifies the position
Default Value
- null
Example
this.scales=[{
position:{
x:5
}
}]
<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
this.scales=[{
position:{
y:50
}
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges Array
Specifies the ranges in the tick.
Default Value
- Array
Example
this.scales=[{
ranges:[{
//..
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.backgroundColor string
Specifies the backgroundColor in the ranges.
Default Value
- null
Example
this.scales=[{
ranges:[{
backgroundColor:'red'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.border object
Specifies the border in the ranges.
Default Value
- null
Example
this.scales=[{
ranges:[{
border:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.border.color string
Specifies the border color in the ranges.
Default Value
- null
Example
this.scales=[{
ranges:[{
border:{
color:'red'
}
}]
}]
<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
this.scales=[{
ranges:[{
border:{
width:2
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.distanceFromScale number
Specifies the distanceFromScale in the ranges.
Default Value
- 0
Example
this.scales=[{
ranges:[{
distanceFromScale:10
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.endValue number
Specifies the endValue in the ranges.
Default Value
- 60
Example
this.scales=[{
ranges:[{
endValue:60
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.endWidth number
Specifies the endWidth in the ranges.
Default Value
- 10
Example
this.scales=[{
ranges:[{
endWidth:20
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.gradients object
Specifies the range Gradient in the ranges.
Default Value
- null
Example
this.scales=[{
ranges:[{
gradients:{
colorInfo:[{
colorStop : 0,
color:"#FFFFFF"
}]
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.opacity number
Specifies the opacity in the ranges.
Default Value
- null
Example
this.scales=[{
ranges:[{
opacity:0.5
}]
}]
<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
this.scales=[{
ranges:[{
placement:'center'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.startValue number
Specifies the startValue in the ranges.
Default Value
- 20
Example
this.scales=[{
ranges:[{
startValue:10
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ranges.startWidth number
Specifies the startWidth in the ranges.
Default Value
- 10
Example
this.scales=[{
ranges:[{
startWidth:5
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.shadowOffset number
Specifies the shadowOffset.
Default Value
- 0
Example
this.scales=[{
shadowOffset:1
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.showBarPointers boolean
Specifies the showBarPointers state.
Default Value
- true
Example
this.scales=[{
showBarPointers:false
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.showCustomLabels boolean
Specifies the showCustomLabels state.
Default Value
- false
Example
this.scales=[{
showCustomLabels:true
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.showIndicators boolean
Specifies the showIndicators state.
Default Value
- false
Example
this.scales=[{
showIndicators:true
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.showLabels boolean
Specifies the showLabels state.
Default Value
- true
Example
this.scales=[{
showLabels:false
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.showMarkerPointers boolean
Specifies the showMarkerPointers state.
Default Value
- true
Example
this.scales=[{
showMarkerPointers:false
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.showRanges boolean
Specifies the showRanges state.
Default Value
- false
Example
this.scales=[{
showRanges:false
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.showTicks boolean
Specifies the showTicks state.
Default Value
- true
Example
this.scales=[{
showTicks:false
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks Array
Specifies the ticks in the scale.
Default Value
- Array
Example
this.scales=[{
ticks:[{
//..
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks.angle number
Specifies the angle in the tick.
Default Value
- 0
Example
this.scales=[{
ticks:[{
angle:45
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks.color string
Specifies the tick Color in the tick.
Default Value
- null
Example
this.scales=[{
ticks:[{
color:'red'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks.distanceFromScale object
Specifies the DistanceFromScale in the tick.
Default Value
- null
Example
this.scales=[{
ticks:[{
distanceFromScale:{
//..
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks.distanceFromScale.x number
Specifies the xDistanceFromScale in the tick.
Default Value
- 0
Example
this.scales=[{
ticks:[{
distanceFromScale:{
x:10
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks.distanceFromScale.y number
Specifies the yDistanceFromScale in the tick.
Default Value
- 0
Example
this.scales=[{
ticks:[{
distanceFromScale:{
y:50
}
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks.height number
Specifies the tick Height in the tick.
Default Value
- 10
Example
this.scales=[{
ticks:[{
height:20
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks.opacity number
Specifies the opacity in the tick.
Default Value
- 0
Example
this.scales=[{
ticks:[{
opacity:0.5
}]
}]
<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
this.scales=[{
ticks:[{
placement:'far'
}]
}]
<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
this.scales=[{
ticks:[{
type:'majotinterval'
}]
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.ticks.width number
Specifies the tick Width in the tick.
Default Value
- 3
Example
this.scales=[{
ticks:[{
width:2
}]
}]
<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
this.scales=[{
type:'rectangle'
}]
<ej-lineargauge id="LinearGauge1" [scales]="scales">
</ej-lineargauge>
scales.width number
Specifies the scaleBar width.
Default Value
- 30
Example
this.scales=[{
width:2
}]
<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
<ej-lineargauge id="LinearGauge1" theme="flatdark">
</ej-lineargauge>
tickColor string
Specifies the tick Color for Linear gauge.
Default Value
- null
Example
<ej-lineargauge id="LinearGauge1" tickColor="red">
</ej-lineargauge>
tooltip object
Specify tooltip options of linear gauge
Default Value
- false
Example
this.tooltip = {
//..
};
<ej-lineargauge id="LinearGauge1" [tooltip]="tooltip">
</ej-lineargauge>
tooltip.showCustomLabelTooltip boolean
Specify showCustomLabelTooltip value of linear gauge
Default Value
- false
Example
this.tooltip = {
showCustomLabelTooltip: true
};
<ej-lineargauge id="LinearGauge1" [tooltip]="tooltip">
</ej-lineargauge>
tooltip.showLabelTooltip boolean
Specify showLabelTooltip value of linear gauge
Default Value
- false
Example
this.tooltip = {
showLabelTooltip: true
};
<ej-lineargauge id="LinearGauge1" [tooltip]="tooltip">
</ej-lineargauge>
tooltip.templateID string
Specify templateID value of linear gauge
Default Value
- false
Example
this.tooltip = {
templateID: true
};
<ej-lineargauge id="LinearGauge1" [tooltip]="tooltip">
</ej-lineargauge>
value number
Specifies the value of the Gauge.
Default Value
- 0
Example
<ej-lineargauge id="LinearGauge1" [value]="60">
</ej-lineargauge>
width number
Specifies the width of Linear gauge.
Default Value
- 150
Example
<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
destroy(){
//Do something
this.linearIns.widget.destroy();
}
exportImage()
To export Image
Name | Type | Description |
---|---|---|
|
number | for the Image |
|
number | for the Image |
Returns: void
Example
exportimage(){
//Do something
this.linearIns.widget.exportImage();
}
getBarDistanceFromScale()
To get Bar Distance From Scale in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getbardistancefromscale(){
//Do something
this.linearIns.widget.getBarDistanceFromScale();
}
getBarPointerValue()
To get Bar Pointer Value in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getbarpointervalue(){
//Do something
this.linearIns.widget.getBarPointerValue();
}
getBarWidth()
To get Bar Width in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getbarwidth(){
//Do something
this.linearIns.widget.getBarWidth();
}
getCustomLabelAngle()
To get CustomLabel Angle in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | customLabelIndex value for the Gauge |
Returns: any
Example
getcustomangle(){
//Do something
this.linearIns.widget.getCustomAngle();
}
getCustomLabelValue()
To get CustomLabel Value in string
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | customLabelIndex value for the Gauge |
Returns: any
Example
getcustomlabelvalue(){
//Do something
this.linearIns.widget.getCustomLabelValue();
}
getLabelAngle()
To get Label Angle in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
getlabelangle(){
//Do something
this.linearIns.widget.getLabelAngle();
}
getLabelPlacement()
To get LabelPlacement in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
getlabelplacement(){
//Do something
this.linearIns.widget.getLabelPlacement();
}
getLabelStyle()
To get LabelStyle in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
getlabelstyle(){
//Do something
this.linearIns.widget.getLabelStyle();
}
getLabelXDistanceFromScale()
To get Label XDistance From Scale in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
getlabelxdistancefromscale(){
//Do something
this.linearIns.widget.getLabelXDistanceFromScale();
}
getLabelYDistanceFromScale()
To get PointerValue in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
getlabelydistancefromscale(){
//Do something
this.linearIns.widget.getLabelYDistanceFromScale();
}
getMajorIntervalValue()
To get Major Interval Value in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
Returns: any
Example
getmajorintervalvalue(){
//Do something
this.linearIns.widget.getMajorIntervalValue();
}
getMarkerStyle()
To get MarkerStyle in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getmarkerstyle(){
//Do something
this.linearIns.widget.getMarkerStyle();
}
getMaximumValue()
To get Maximum Value in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
Returns: any
Example
getmaximumvalue(){
//Do something
this.linearIns.widget.getMaximumValue();
}
getMinimumValue()
To get PointerValue in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
getminimumvalue(){
//Do something
this.linearIns.widget.getMinimumValue();
}
getMinorIntervalValue()
To get Minor Interval Value in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
Returns: any
Example
getminorintervalvalue(){
//Do something
this.linearIns.widget.getMinorIntervalValue();
}
getPointerDistanceFromScale()
To get Pointer Distance From Scale in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getpointerdistancefromscale(){
//Do something
this.linearIns.widget.getPointerDistanceFromScale();
}
getPointerHeight()
To get PointerHeight in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getpointerheight(){
//Do something
this.linearIns.widget.getPointerHeight();
}
getPointerPlacement()
To get Pointer Placement in String
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getpointerplacement(){
//Do something
this.linearIns.widget.getPointerPlacement();
}
getPointerValue()
To get PointerValue in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getpointervalue(){
//Do something
this.linearIns.widget.getPointerValue();
}
getPointerWidth()
To get PointerWidth in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
Returns: any
Example
getpointerwidth(){
//Do something
this.linearIns.widget.getPointerWidth();
}
getRangeBorderWidth()
To get Range Border Width in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
Returns: any
Example
getrangeborderwidth(){
//Do something
this.linearIns.widget.getRangeBorderWidth();
}
getRangeDistanceFromScale()
To get Range Distance From Scale in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
Returns: any
Example
getrangedistancefromscale(){
//Do something
this.linearIns.widget.getRangeDistanceFromScale();
}
getRangeEndValue()
To get Range End Value in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
Returns: any
Example
getrangeendvalue(){
//Do something
this.linearIns.widget.getRangeEndValue();
}
getRangeEndWidth()
To get Range End Width in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
Returns: any
Example
getrangeendwidth(){
//Do something
this.linearIns.widget.getRangeEndWidth();
}
getRangePosition()
To get Range Position in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
Returns: any
Example
getrangeposition(){
//Do something
this.linearIns.widget.getRangePosition();
}
getRangeStartValue()
To get Range Start Value in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
Returns: any
Example
getrangestartvalue(){
//Do something
this.linearIns.widget.getRangeStartValue();
}
getRangeStartWidth()
To get Range Start Width in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
Returns: any
Example
getrangesartwidth(){
//Do something
this.linearIns.widget.getRangeSartWidth();
}
getScaleBarLength()
To get ScaleBarLength in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
Returns: any
Example
getscalebarlength(){
//Do something
this.linearIns.widget.getScaleBarLength();
}
getScaleBarSize()
To get Scale Bar Size in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
getscalebarsize(){
//Do something
this.linearIns.widget.getScaleBarSize();
}
getScaleBorderWidth()
To get Scale Border Width in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
Returns: any
Example
getscaleborderwidth(){
//Do something
this.linearIns.widget.getScaleBorderWidth();
}
getScaleDirection()
To get Scale Direction in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
Returns: any
Example
getscaledirection(){
//Do something
this.linearIns.widget.getScaleDirection();
}
getScaleLocation()
To get Scale Location in object
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
Returns: any
Example
getscalelocation(){
//Do something
this.linearIns.widget.getScaleLocation();
}
getScaleStyle()
To get Scale Style in string
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
Returns: any
Example
getscalestyle(){
//Do something
this.linearIns.widget.getScaleStyle();
}
getTickAngle()
To get Tick Angle in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
gettickangle(){
//Do something
this.linearIns.widget.getTickAngle();
}
getTickHeight()
To get Tick Height in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
gettickheight(){
//Do something
this.linearIns.widget.getTickHeight();
}
getTickPlacement()
To get getTickPlacement in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
gettickplacement(){
//Do something
this.linearIns.widget.getTickPlacement();
}
getTickStyle()
To get Tick Style in string
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
gettickstyle(){
//Do something
this.linearIns.widget.getTickStyle();
}
getTickWidth()
To get Tick Width in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
gettickwidth(){
//Do something
this.linearIns.widget.getTickWidth();
}
getTickXDistanceFromScale()
To get get Tick XDistance From Scale in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
gettickxdistancefromscale(){
//Do something
this.linearIns.widget.getTickXDistanceFromScale();
}
getTickYDistanceFromScale()
To get Tick YDistance From Scale in number
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
Returns: any
Example
gettickydistancefromscale(){
//Do something
this.linearIns.widget.getTickYDistanceFromScale();
}
scales()
Specifies the scales.
Default Value
- null
Returns: void
Example
scales(){
//Do something
this.linearIns.widget.scales();
}
setBarDistanceFromScale()
To set setBarDistanceFromScale
Name | Type | Description |
---|---|---|
|
number | scaleIndex,value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
number | Bar DistanceFromScale value for Gauge |
Returns: void
Example
setbardistancefromscale(){
//Do something
this.linearIns.widget.setBarDistanceFromScale();
}
setBarPointerValue()
To set setBarPointerValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
number | Bar Pointer Value for Gauge |
Returns: void
Example
setbarpointervalue(){
//Do something
this.linearIns.widget.setBarPointerValue();
}
setBarWidth()
To set setBarWidth
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
number | Bar Width for Gauge |
Returns: void
Example
setbarwidth(){
//Do something
this.linearIns.widget.setBarWidth();
}
setCustomLabelAngle()
To set setCustomLabelAngle
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | customLabelIndex value for the Gauge |
|
number | Custom Label Angle for Gauge |
Returns: void
Example
setcustomlabelangle(){
//Do something
this.linearIns.widget.setCustomLabelAngle();
}
setCustomLabelValue()
To set setCustomLabelValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | customLabelIndex value for the Gauge |
|
number | CustomLabel value for Gauge |
Returns: void
Example
setcustomlabelvalue(){
//Do something
this.linearIns.widget.setCustomLabelValue();
}
setLabelAngle()
To set setLabelAngle
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Label Angle for Gauge |
Returns: void
Example
setlabelangle(){
//Do something
this.linearIns.widget.setLabelAngle();
}
setLabelPlacement()
To set setLabelPlacement
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Label Placement for Gauge |
Returns: void
Example
setlabelplacement(){
//Do something
this.linearIns.widget.setLabelPlacement();
}
setLabelStyle()
To set setLabelStyle
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
string | Label Style for Gauge |
Returns: void
Example
setlabelstyle(){
//Do something
this.linearIns.widget.setLabelStyle();
}
setLabelXDistanceFromScale()
To set setLabelXDistanceFromScale
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Label XDistance From Scale for Gauge |
Returns: void
Example
setlabelxdistancefromscale(){
//Do something
this.linearIns.widget.setLabelXDistanceFromScale();
}
setLabelYDistanceFromScale()
To set setLabelYDistanceFromScale
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Label YDistance From Scale for Gauge |
Returns: void
Example
setlabelydistancefromscale(){
//Do something
this.linearIns.widget.setLabelYDistanceFromScale();
}
setMajorIntervalValue()
To set setMajorIntervalValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | Major Interval Value for Gauge |
Returns: void
Example
setmajorintervalvalue(){
//Do something
this.linearIns.widget.setMajorIntervalValue();
}
setMarkerStyle()
To set setMarkerStyle
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
string | marker Style for Gauge |
Returns: void
Example
setmarkerstyle(){
//Do something
this.linearIns.widget.setMarkerStyle();
}
setMaximumValue()
To set setMaximumValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | MaximumValue for Gauge |
Returns: void
Example
setmaximumvalue(){
//Do something
this.linearIns.widget.setMaximumValue();
}
setMinimumValue()
To set setMinimumValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | MinimumValue for Gauge |
Returns: void
Example
setminimumvalue(){
//Do something
this.linearIns.widget.setMinimumValue();
}
setMinorIntervalValue()
To set setMinorIntervalValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | Minor Interval Value for Gauge |
Returns: void
Example
setminorintervalvalue(){
//Do something
this.linearIns.widget.setMinorIntervalValue();
}
setPointerDistanceFromScale()
To set setPointerDistanceFromScale
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
number | for Gauge |
Returns: void
Example
setpointerdistancefromscale(){
//Do something
this.linearIns.widget.setPointerDistanceFromScale();
}
setPointerHeight()
To set PointerHeight
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
number | for Gauge |
Returns: void
Example
setpointerheight(){
//Do something
this.linearIns.widget.setPointerHeight();
}
setPointerPlacement()
To set setPointerPlacement
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
number | pointer placement for Gauge |
Returns: void
Example
setpointerplacement(){
//Do something
this.linearIns.widget.setPointerPlacement();
}
setPointerValue()
To set PointerValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
number | Pointer value for Gauge |
Returns: void
Example
setpointervalue(){
//Do something
this.linearIns.widget.setPointerValue();
}
setPointerWidth()
To set PointerWidth
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | pointerIndex value for the Gauge |
|
number | Pointer width for Gauge |
Returns: void
Example
setpointerwidth(){
//Do something
this.linearIns.widget.setPointerWidth();
}
setRangeBorderWidth()
To set setRangeBorderWidth
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
|
number | Range Border Width for Gauge |
Returns: void
Example
setrangeborderwidth(){
//Do something
this.linearIns.widget.setRangeBorderWidth();
}
setRangeDistanceFromScale()
To set setRangeDistanceFromScale
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
|
number | Range Distance FromScale for Gauge |
Returns: void
Example
setrangedistancefromscale(){
//Do something
this.linearIns.widget.setRangeDistanceFromScale();
}
setRangeEndValue()
To set setRangeEndValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
|
number | Range end value for Gauge |
Returns: void
Example
setrangeendvalue(){
//Do something
this.linearIns.widget.setRangeEndValue();
}
setRangeEndWidth()
To set setRangeEndWidth
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
|
number | Range End Width for Gauge |
Returns: void
Example
setendwidth(){
//Do something
this.linearIns.widget.setEndWidth();
}
setRangePosition()
To set setRangePosition
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
|
number | Range Position for Gauge |
Returns: void
Example
setrangeposition(){
//Do something
this.linearIns.widget.setRangePosition();
}
setRangeStartValue()
To set setRangeStartValue
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
|
number | range start value for Gauge |
Returns: void
Example
setrangestartvalue(){
//Do something
this.linearIns.widget.setRangeStartValue();
}
setRangeStartWidth()
To set setRangeStartWidth
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | rangeIndex value for the Gauge |
|
number | Range Start Width for Gauge |
Returns: void
Example
setstartwidth(){
//Do something
this.linearIns.widget.setStartWidth();
}
setScaleBarLength()
To set setScaleBarLength
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | Scale Bar Length for Gauge |
Returns: void
Example
setscalebarlength(){
//Do something
this.linearIns.widget.setScaleBarLength();
}
setScaleBarSize()
To set setScaleBarSize
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | ScaleBarSize for Gauge |
Returns: void
Example
setscalebarsize(){
//Do something
this.linearIns.widget.setScaleBarSize();
}
setScaleBorderWidth()
To set setScaleBorderWidth
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | Scale Border Width for Gauge |
Returns: void
Example
setscaleborderwidth(){
//Do something
this.linearIns.widget.setScaleBorderWidth();
}
setScaleDirection()
To set setScaleDirection
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | Scale Direction for Gauge |
Returns: void
Example
setscaledirection(){
//Do something
this.linearIns.widget.setScaleDirection();
}
setScaleLocation()
To set setScaleLocation
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
object | Scale position for Gauge |
Returns: void
Example
setscalelocation(){
//Do something
this.linearIns.widget.setScaleLocation();
}
setScaleStyle()
To set setScaleStyle
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | for Gauge |
Returns: void
Example
setscalestyle(){
//Do something
this.linearIns.widget.setScaleStyle();
}
setTickAngle()
To set setTickAngle
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Tick Angle for Gauge |
Returns: void
Example
settickangle(){
//Do something
this.linearIns.widget.setTickAngle();
}
setTickHeight()
To set setTickHeight
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Tick Height for Gauge |
Returns: void
Example
settickheight(){
//Do something
this.linearIns.widget.setTickHeight();
}
setTickPlacement()
To set setTickPlacement
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Tick Placement for Gauge |
Returns: void
Example
settickplacement(){
//Do something
this.linearIns.widget.setTickPlacement();
}
setTickStyle()
To set setTickStyle
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
string | Tick Style for Gauge |
Returns: void
Example
settickstyle(){
//Do something
this.linearIns.widget.setTickStyle();
}
setTickWidth()
To set setTickWidth
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Tick Width for Gauge |
Returns: void
Example
settickwidth(){
//Do something
this.linearIns.widget.setTickWidth();
}
setTickXDistanceFromScale()
To set setTickXDistanceFromScale
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Tick XDistance From Scale for Gauge |
Returns: void
Example
settickxdistancefromscale(){
//Do something
this.linearIns.widget.setTickXDistanceFromScale();
}
setTickYDistanceFromScale()
To set setTickYDistanceFromScale
Name | Type | Description |
---|---|---|
|
number | scaleIndex value for the Gauge |
|
number | value for the Gauge |
|
number | Tick YDistance From Scale for Gauge |
Returns: void
Example
settickydistancefromscale(){
//Do something
this.linearIns.widget.setTickYDistanceFromScale();
}
Events
drawBarPointers
Triggers while the bar pointer are being drawn on the gauge.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the context element |
|
object | returns the startX and startY of the pointer |
|
object | returns the gauge model |
|
object | returns the options of the scale element. |
|
number | returns the scaleIndex to which the pointer belongs. |
|
string | returns the pointer style |
|
object | returns the current Bar pointer element. |
|
number | returns the index of the bar pointer. |
|
number | returns the value of the bar pointer. |
|
object | returns the name of the event |
Example
ondrawbarpointers(sender){
//Do something
}
<ej-lineargauge id="events" (drawBarPointers)="ondrawbarpointers($event)">
</ej-lineargauge>
drawCustomLabel
Triggers while the customLabel are being drawn on the gauge.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the context element |
|
object | returns the startX and startY of the customLabel |
|
object | returns the gauge model |
|
object | returns the options of the scale element. |
|
number | returns the scaleIndex to which the pointer belongs. |
|
object | returns the customLabel style |
|
object | returns the current customLabel element. |
|
number | returns the index of the customLabel. |
|
object | returns the name of the event |
Example
ondrawcustomlabel(sender){
//Do something
}
<ej-lineargauge id="events" (drawCustomLabel)="ondrawcustomlabel($event)">
</ej-lineargauge>
drawIndicators
Triggers while the Indicator are being drawn on the gauge.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the context element |
|
object | returns the startX and startY of the Indicator |
|
object | returns the gauge model |
|
object | returns the options of the scale element. |
|
number | returns the scaleIndex to which the pointer belongs. |
|
string | returns the Indicator style |
|
object | returns the current Indicator element. |
|
number | returns the index of the Indicator. |
|
object | returns the name of the event |
Example
ondrawindicators(sender){
//Do something
}
<ej-lineargauge id="events" (drawIndicators)="ondrawindicators($event)">
</ej-lineargauge>
drawLabels
Triggers while the label are being drawn on the gauge.
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
object | returns the object of the gauge. | |||||||||||||||
|
boolean | returns the cancel option value | |||||||||||||||
|
object | returns the context element | |||||||||||||||
|
object | returns the startX and startY of the label | |||||||||||||||
|
object | returns the gauge model | |||||||||||||||
|
object | returns the options of the scale element. | |||||||||||||||
|
number | returns the scaleIndex to which the label belongs. | |||||||||||||||
|
string | returns the label style | |||||||||||||||
|
object | returns the label style
|
|||||||||||||||
|
object | returns the name of the event |
Example
ondrawlabels(sender){
//Do something
}
<ej-lineargauge id="events" (drawLabels)="ondrawlabels($event)">
</ej-lineargauge>
drawMarkerPointers
Triggers while the marker are being drawn on the gauge.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the context element |
|
object | returns the startX and startY of the pointer |
|
object | returns the gauge model |
|
object | returns the options of the scale element. |
|
number | returns the scaleIndex to which the pointer belongs. |
|
string | returns the ticks style |
|
object | returns the current marker pointer element. |
|
number | returns the index of the marker pointer. |
|
number | returns the value of the marker pointer. |
|
number | returns the angle of the marker pointer. |
|
object | returns the name of the event |
Example
ondrawmarkerpointers(sender){
//Do something
}
<ej-lineargauge id="events" (drawMarkerPointers)="ondrawmarkerpointers($event)">
</ej-lineargauge>
drawRange
Triggers while the range are being drawn on the gauge.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the context element |
|
object | returns the startX and startY of the range |
|
object | returns the gauge model |
|
object | returns the options of the scale element. |
|
number | returns the scaleIndex to which the pointer belongs. |
|
string | returns the range style |
|
object | returns the current range element. |
|
number | returns the index of the range. |
|
object | returns the name of the event |
Example
ondrawrange(sender){
//Do something
}
<ej-lineargauge id="events" (drawRange)="ondrawrange($event)">
</ej-lineargauge>
drawTicks
Triggers while the ticks are being drawn on the gauge.
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
object | returns the object of the gauge. | |||||||||||||||
|
boolean | returns the cancel option value | |||||||||||||||
|
object | returns the context element | |||||||||||||||
|
object | returns the startX and startY of the ticks | |||||||||||||||
|
object | returns the gauge model | |||||||||||||||
|
object | returns the options of the scale element. | |||||||||||||||
|
number | returns the scaleIndex to which the tick belongs. | |||||||||||||||
|
string | returns the ticks style | |||||||||||||||
|
object | returns the ticks style
|
|||||||||||||||
|
object | returns the name of the event |
Example
ondrawticks(sender){
//Do something
}
<ej-lineargauge id="events" (drawTicks)="ondrawticks($event)">
</ej-lineargauge>
init
Triggers when the gauge is initialized.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the gauge model |
|
object | returns the entire scale element. |
|
object | returns the context element |
|
string | returns the name of the event |
Example
oninit(sender){
//Do something
}
<ej-lineargauge id="events" (init)="oninit($event)">
</ej-lineargauge>
load
Triggers while the gauge start to Load.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the gauge model |
|
object | returns the entire scale element. |
|
object | returns the context element |
|
object | returns the name of the event |
Example
onload(sender){
//Do something
}
<ej-lineargauge id="events" (load)="onload($event)">
</ej-lineargauge>
mouseClick
Triggers when the left mouse button is clicked.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the gauge model |
|
object | returns the name of the event |
|
object | returns the scale element. |
|
number | returns the scaleIndex to which the pointer belongs. |
|
object | returns the context element* @param {Object} args.markerpointer returns the context element |
|
number | returns the pointer Index |
|
object | returns the pointer element. |
|
number | returns the value of the pointer. |
|
string | returns the pointer style |
|
object | returns the startX and startY of the pointer. |
Example
onmouseclick(sender){
//Do something
}
<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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
object | returns the object of the gauge. | ||||||||||||
|
boolean | returns the cancel option value | ||||||||||||
|
object | returns the gauge model | ||||||||||||
|
object | returns the name of the event | ||||||||||||
|
object | returns the scale element. | ||||||||||||
|
number | returns the scaleIndex to which the pointer belongs. | ||||||||||||
|
object | returns the context element | ||||||||||||
|
object | returns the context element
|
||||||||||||
|
string | returns the pointer style | ||||||||||||
|
object | returns the startX and startY of the pointer. |
Example
onmouseclickmove(sender){
//Do something
}
<ej-lineargauge id="events" (mouseClickMove)="onmouseclickmove($event)">
</ej-lineargauge>
mouseClickUp
Triggers when the mouse click is released.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the gauge model |
|
object | returns the name of the event |
|
object | returns the scale element. |
|
number | returns the scaleIndex to which the pointer belongs. |
|
object | returns the context element* @param {Object} args.markerpointer returns the context element |
|
number | returns the pointer Index |
|
object | returns the pointer element. |
|
number | returns the value of the pointer. |
|
string | returns the pointer style |
|
object | returns the startX and startY of the pointer. |
Example
onmouseclickup(sender){
//Do something
}
<ej-lineargauge id="events" (mouseClickUp)="onmouseclickup($event)">
</ej-lineargauge>
renderComplete
Triggers while the rendering of the gauge completed.
Name | Type | Description |
---|---|---|
|
object | returns the object of the gauge. |
|
boolean | returns the cancel option value |
|
object | returns the gauge model |
|
object | returns the entire scale element. |
|
object | returns the context element |
|
object | returns the name of the event |
Example
onrendercomplete(sender){
//Do something
}
<ej-lineargauge id="events" (renderComplete)="onrendercomplete($event)">
</ej-lineargauge>