Skip to content
This repository has been archived by the owner. It is now read-only.

Latest commit

 

History

History
7955 lines (2773 loc) · 81.5 KB

File metadata and controls

7955 lines (2773 loc) · 81.5 KB
layout post
title Properties,Methods and Events of Essential Angular ejBulletGraph Widget
documentation API
platform angular-api
metaname
metacontent

Custom Design for Bullet graph.

{% highlight html %}

{% endhighlight %}

Example

Requires {:.require}

  • module:jQuery.js

  • module:ej.core.js

  • module:ej.data.js

  • module:ej.bulletgraph.js

Members

applyRangeStrokeToLabels boolean

{:#members:applyrangestroketolabels}

Toggles the visibility of the range stroke color of the labels.

Default Value

  • false

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [applyRangeStrokeToLabels]="true">

{% endhighlight %}

applyRangeStrokeToTicks boolean

{:#members:applyrangestroketoticks}

Toggles the visibility of the range stroke color of the ticks.

Default Value

  • false

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [applyRangeStrokeToTicks]="true">

{% endhighlight %}

captionSettings object

{:#members:captionsettings}

Contains property to customize the caption in bullet graph.

captionSettings.enableTrim boolean

{:#members:captionsettings-enabletrim}

Specifies whether trim the labels will be true or false.

Default Value

  • true

Example

{% highlight ts %}

this.caption= { enableTrim: true,
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.font object

{:#members:captionsettings-font}

Contains property to customize the font of caption.

captionSettings.font.color string

{:#members:captionsettings-font-color}

Specifies the color of the text in caption.

Default Value

  • null

Example

{% highlight ts %}

this.caption = {
font: { color: 'green',
}
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.font.fontFamily string

{:#members:captionsettings-font-fontfamily}

Specifies the fontFamily of caption. Caption text render with this fontFamily

Default Value

  • "Segoe UI"

Example

{% highlight ts %}

this.caption = {
font: { fontFamily: 'Algerian',
}
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.font.fontStyle enum

{:#members:captionsettings-font-fontstyle}

Specifies the fontStyle of caption

Name Type Description
Normal string The texts are displayed in the default format
Italic string The texts are displayed in italic format
Oblique string The texts are displayed in the oblique format

Specifies the fontStyle of caption. Caption text render with this fontStyle. See FontStyle

Default Value

  • "Normal"

Example

{% highlight ts %}

this.caption = {
font: { fontStyle: 'italic',
}
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.font.fontWeight enum

{:#members:captionsettings-font-fontweight}

Specifies the fontWeight of caption

Name Type Description
Normal string The texts are displayed in the default manner
Bold string The texts are displayed in the Bold
Bolder string The texts are displayed with increased boldness compared to the bold option
Lighter string The texts are displayed with the decreased lightness

Specifies the fontWeight of caption. Caption text render with this fontWeight. See FontWeight

Default Value

  • "regular"

Example

{% highlight ts %}

this.caption = {
font: { fontWeight: 'lighter',
}
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.font.opacity number

{:#members:captionsettings-font-opacity}

Specifies the opacity of caption. Caption text render with this opacity.

Default Value

  • 1

Example

{% highlight ts %}

this.caption = {
font: { opacity:0.5,
}
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.font.size string

{:#members:captionsettings-font-size}

Specifies the size of caption. Caption text render with this size

Default Value

  • "12px"

Example

{% highlight ts %}

this.caption = {
font: { size:'14px',
}
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator object

{:#members:captionsettings-indicator}

Contains property to customize the indicator.

captionSettings.indicator.font object

{:#members:captionsettings-indicator-font}

Contains property to customize the font of indicator.

captionSettings.indicator.font.color string

{:#members:captionsettings-indicator-font-color}

Specifies the color of the indicator's text.

Default Value

  • null

Example

{% highlight ts %}

this.caption = { indicator: {
font: { color:'green',
}, } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.font.fontFamily string

{:#members:captionsettings-indicator-font-fontfamily}

Specifies the fontFamily of indicator. Indicator text render with this fontFamily.

Default Value

  • "Segoe UI"

Example

{% highlight ts %}

this.caption = { indicator: {
font: { fontFamily:'Algerian',
}, } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.font.fontStyle enum

{:#members:captionsettings-indicator-font-fontstyle}

Specifies the fontStyle of indicator. Indicator text render with this fontStyle. See FontStyle

Default Value

  • "Normal"

Example

{% highlight ts %}

this.caption = { indicator: {
font: { fontStyle :'italic',
}, } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.font.fontWeight enum

{:#members:captionsettings-indicator-font-fontweight}

Specifies the fontWeight of indicator. Indicator text render with this fontWeight. See FontWeight

Default Value

  • "regular"

Example

{% highlight ts %}

this.caption = { indicator: {
font: { fontWeight :'lighter',
}, } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.font.opacity number

{:#members:captionsettings-indicator-font-opacity}

Specifies the opacity of indicator text. Indicator text render with this Opacity.

Default Value

  • 1

Example

{% highlight ts %}

this.caption = { indicator: {
font: { opacity : 0.5,
}, } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.font.size string

{:#members:captionsettings-indicator-font-size}

Specifies the size of indicator. Indicator text render with this size.

Default Value

  • "12px"

Example

{% highlight ts %}

this.caption = { indicator: {
font: { size :'14px',
}, } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.location object

{:#members:captionsettings-indicator-location}

Contains property to customize the location of indicator.

captionSettings.indicator.location.x number

{:#members:captionsettings-indicator-location-x}

Specifies the horizontal position of the indicator.

Default Value

  • 10

Example

{% highlight ts %}

this.caption = { indicator: {
location: { x: 12 }, } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.location.y number

{:#members:captionsettings-indicator-location-y}

Specifies the vertical position of the indicator.

Default Value

  • 60

Example

{% highlight ts %}

this.caption = { indicator: {
location: { y: 60 }, } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.padding number

{:#members:captionsettings-indicator-padding}

Specifies the padding to be applied when text position is used.

Default Value

  • 2

Example

{% highlight ts %}

this.caption = { indicator: {
padding: 5 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.symbol object

{:#members:captionsettings-indicator-symbol}

Contains property to customize the symbol of indicator.

captionSettings.indicator.symbol.border object

{:#members:captionsettings-indicator-symbol-border}

Contains property to customize the border of indicator symbol.

captionSettings.indicator.symbol.border.color string

{:#members:captionsettings-indicator-symbol-border-color}

Specifies the border color of indicator symbol.

Default Value

  • null

Example

{% highlight ts %}

this.caption = { indicator: {
symbol:{ border:{ color:'green' } } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.symbol.border.width number

{:#members:captionsettings-indicator-symbol-border-width}

Specifies the border width of indicator symbol.

Default Value

  • 1

Example

{% highlight ts %}

this.caption = { indicator: {
symbol:{ border:{ width:2 } } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.symbol.color string

{:#members:captionsettings-indicator-symbol-color}

Specifies the color of indicator symbol.

Default Value

  • null

Example

{% highlight ts %}

this.caption = { indicator: {
symbol:{ color:'green' } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.symbol.imageURL string

{:#members:captionsettings-indicator-symbol-imageurl}

Specifies the URL of image that represents indicator symbol.

Default Value

  • ""

Example

{% highlight ts %}

this.caption = { indicator: {
symbol:{ imageURL :'../BulletIndicator.png' } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.symbol.opacity number

{:#members:captionsettings-indicator-symbol-opacity}

Specifies the opacity of indicator symbol.

Default Value

  • 1

Example

{% highlight ts %}

this.caption = { indicator: {
symbol:{ opacity:0.5 } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.symbol.shape string

{:#members:captionsettings-indicator-symbol-shape}

Specifies the shape of indicator symbol.

Default Value

  • ""

Example

{% highlight ts %}

this.caption = { indicator: {
symbol:{ shape:'triangle' } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.symbol.size object

{:#members:captionsettings-indicator-symbol-size}

Contains property to customize the size of indicator symbol.

captionSettings.indicator.symbol.size.height number

{:#members:captionsettings-indicator-symbol-size-height}

Specifies the height of indicator symbol.

Default Value

  • 10

Example

{% highlight ts %}

this.caption = { indicator: {
symbol:{ size:{ height:10 } } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.symbol.size.width number

{:#members:captionsettings-indicator-symbol-size-width}

Specifies the width of indicator symbol.

Default Value

  • 10

Example

{% highlight ts %}

this.caption = { indicator: {
symbol:{ size:{ width:10 } } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.text string

{:#members:captionsettings-indicator-text}

Specifies the text to be displayed as indicator text. By default difference between current value and target will be displayed

Default Value

  • ""

Example

{% highlight ts %}

this.caption = { indicator: {
text:'Power Production' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.textAlignment enum

{:#members:captionsettings-indicator-textalignment}

Specifies the alignment of indicator with respect to scale based on text position

Name Type Description
Near string The text is aligned near to the scale
Far string The text is aligned far from the scale
Center string The text is aligned center of the scale

Specifies the alignment of indicator with respect to scale based on text position. Alignment will not be applied for float position.

Default Value

  • 'Near'

Example

{% highlight ts %}

this.caption = { indicator: {
textAlignment:'Far' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.textAnchor enum

{:#members:captionsettings-indicator-textanchor}

Specifies where indicator text should be anchored when indicator overlaps with other caption group text. Text will be anchored when overlapping caption group text are at same position. Anchoring is not applicable for float position.

Name Type Description
Start string The Start is used to anchor the text from beginning
Middle string The Middle is used to anchor the text from the center
End string The End is used to anchor the text from the end

Specifies where indicator text should be anchored when indicator overlaps with other caption group text. Text will be anchored when overlapping caption group text are at same position. Anchoring is not applicable for float position.

Default Value

  • 'start'

Example

{% highlight ts %}

this.caption = { indicator: {
textAnchor:'end' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.textAngle number

{:#members:captionsettings-indicator-textangle}

indicator text render in the specified angle.

Default Value

  • 0

Example

{% highlight ts %}

this.caption = { indicator: {
textAngle :10 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.textPosition enum

{:#members:captionsettings-indicator-textposition}

Specifies where indicator should be placed

Name Type Description
Top string The texts are positioned on the top of the quantitative scales
Right string The texts are positioned to the right of the quantitative scales
Left string The texts are positioned to the left of the quantitative scales
Bottom string The texts are positioned to the bottom of the quantitative scales
Float string The text can be placed at any location using the float property

Specifies where indicator should be placed.

Default Value

  • 'float'

Example

{% highlight ts %}

this.caption = { indicator: {
textPosition :'Top' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.textSpacing number

{:#members:captionsettings-indicator-textspacing}

Specifies the space between indicator symbol and text.

Default Value

  • 3

Example

{% highlight ts %}

this.caption = { indicator: {
textSpacing :10 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.indicator.visible boolean

{:#members:captionsettings-indicator-visible}

Specifies whether indicator will be visible or not.

Default Value

  • false

Example

{% highlight ts %}

this.caption = { indicator: {
visible:true } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.location object

{:#members:captionsettings-location}

Contains property to customize the location.

captionSettings.location.x number

{:#members:captionsettings-location-x}

Specifies the position in horizontal direction

Default Value

  • 17

Example

{% highlight ts %}

this.caption = { location:{ x:15 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.location.y number

{:#members:captionsettings-location-y}

Specifies the position in horizontal direction

Default Value

  • 30

Example

{% highlight ts %}

this.caption = { location:{ y:15 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.padding number

{:#members:captionsettings-padding}

Specifies the padding to be applied when text position is used.

Default Value

  • 5

Example

{% highlight ts %}

this.caption = { padding:2 };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle object

{:#members:captionsettings-subtitle}

Contains property to customize the subtitle.

captionSettings.subTitle.font object

{:#members:captionsettings-subtitle-font}

Contains property to customize the font of subtitle.

captionSettings.subTitle.font.color string

{:#members:captionsettings-subtitle-font-color}

Specifies the color of the subtitle's text.

Default Value

  • null

Example

{% highlight ts %}

this.caption = { subTitle: {
font: { color:'green',
} } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.font.fontFamily string

{:#members:captionsettings-subtitle-font-fontfamily}

Specifies the fontFamily of subtitle. Subtitle text render with this fontFamily.

Default Value

  • "Segoe UI"

Example

{% highlight ts %}

this.caption = { subTitle: {
font: { fontFamily:'Algerian',
} } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.font.fontStyle enum

{:#members:captionsettings-subtitle-font-fontstyle}

Specifies the fontStyle of subtitle. Subtitle text render with this fontStyle. See FontStyle

Default Value

  • "Normal"

Example

{% highlight ts %}

this.caption = { subTitle: {
font: { fontStyle :'italic',
} } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.font.fontWeight enum

{:#members:captionsettings-subtitle-font-fontweight}

Specifies the fontWeight of subtitle. Subtitle text render with this fontWeight. See FontWeight

Default Value

  • "regular"

Example

{% highlight ts %}

this.caption = { subTitle: {
font: { fontWeight :'lighter',
} } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.font.opacity number

{:#members:captionsettings-subtitle-font-opacity}

Specifies the opacity of subtitle. Subtitle text render with this opacity.

Default Value

  • 1

Example

{% highlight ts %}

this.caption = { subTitle: {
font: { opacity :0.5,
} } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.font.size string

{:#members:captionsettings-subtitle-font-size}

Specifies the size of subtitle. Subtitle text render with this size.

Default Value

  • "12px"

Example

{% highlight ts %}

this.caption = { subTitle: {
font: { size :'14px',
} } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.location object

{:#members:captionsettings-subtitle-location}

Contains property to customize the location of subtitle.

captionSettings.subTitle.location.x number

{:#members:captionsettings-subtitle-location-x}

Specifies the horizontal position of the subtitle.

Default Value

  • 10

Example

{% highlight ts %}

this.caption = { subTitle: {
location:{ x:12 } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.location.y number

{:#members:captionsettings-subtitle-location-y}

Specifies the vertical position of the subtitle.

Default Value

  • 45

Example

{% highlight ts %}

this.caption = { subTitle: {
location:{ y:50 } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.padding number

{:#members:captionsettings-subtitle-padding}

Specifies the padding to be applied when text position is used.

Default Value

  • 5

Example

{% highlight ts %}

this.caption = { subTitle: {
padding:8 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.text string

{:#members:captionsettings-subtitle-text}

Specifies the text to be displayed as subtitle.

Default Value

  • ""

Example

{% highlight ts %}

this.caption = { subTitle: {
text:'Power Production' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.textAlignment enum

{:#members:captionsettings-subtitle-textalignment}

Specifies the alignment of sub title text with respect to scale. Alignment will not be applied in float position.

Default Value

  • 'Near'

Example

{% highlight ts %}

this.caption = { subTitle: {
textAlignment:'Far' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.textAnchor enum

{:#members:captionsettings-subtitle-textanchor}

Specifies where subtitle text should be anchored when sub title text overlaps with other caption group text. Text will be anchored when overlapping caption group text are at same position. Anchoring is not applicable for float position.

Default Value

  • 'start'

Example

{% highlight ts %}

this.caption = { subTitle: {
textAnchor:'end' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.textAngle number

{:#members:captionsettings-subtitle-textangle}

Subtitle render in the specified angle.

Default Value

  • 0

Example

{% highlight ts %}

this.caption = { subTitle: {
textAngle:10 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.subTitle.textPosition enum

{:#members:captionsettings-subtitle-textposition}

Specifies where sub title text should be placed.

Default Value

  • 'float'

Example

{% highlight ts %}

this.caption = { subTitle: {
textPosition:'Right' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.text string

{:#members:captionsettings-text}

Specifies the text to be displayed on bullet graph.

Default Value

  • ""

Example

{% highlight ts %}

this.caption = { text:'Production' };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.textAlignment enum

{:#members:captionsettings-textalignment}

Specifies the alignment of caption text with respect to scale. This property will not be applied when text position is float.

Default Value

  • 'Near'

Example

{% highlight ts %}

this.caption = {
textAlignment:'Center'
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.textAnchor enum

{:#members:captionsettings-textanchor}

Specifies caption text anchoring when caption text overlaps with other caption group text. Text will be anchored when overlapping caption group text are at same position. Anchoring is not applicable for float position.

Default Value

  • 'start'

Example

{% highlight ts %}

this.caption = {
textAnchor:'middle'
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.textAngle number

{:#members:captionsettings-textangle}

Specifies the angel in which the caption is rendered.

Default Value

  • 0

Example

{% highlight ts %}

this.caption = {
textAngle:5 };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

captionSettings.textPosition enum

{:#members:captionsettings-textposition}

Specifies how caption text should be placed.

Default Value

  • 'float'

Example

{% highlight ts %}

this.caption = {
textPosition:'Top'
};

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [captionSettings]="caption">

{% endhighlight %}

comparativeMeasureValue number

{:#members:comparativemeasurevalue}

Comparative measure bar in bullet graph render till the specified value.

Default Value

  • 0

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [comparativeMeasureValue]=50>

{% endhighlight %}

enableAnimation boolean

{:#members:enableanimation}

Toggles the animation of bullet graph.

Default Value

  • true

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [enableAnimation]="true">

{% endhighlight %}

flowDirection enum

{:#members:flowdirection}

Specifies the direction of flow in bullet graph. Neither it may be backward nor forward.

Name Type Description
Forward string The BulletGraph is rendered from left to right
Backward string The BulletGraph is rendered from right to left

Specifies the direction of flow in bullet graph. Neither it may be backward nor forward.

Default Value

  • "forward"

Example

{% highlight html %}

{% endhighlight %}

height number

{:#members:height}

Specifies the height of the bullet graph.

Default Value

  • 90

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [height]=100>

{% endhighlight %}

isResponsive boolean

{:#members:isresponsive}

Sets a value whether to make the bullet graph responsive on resize.

Default Value

  • true

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [isResponsive]="false">

{% endhighlight %}

orientation enum

{:#members:orientation}

Bullet graph will render in the specified orientation.

Name Type Description
Horizontal string The BulletGraph is oriented in horizontal direction
Vertical string The BulletGraph is oriented in vertical direction

Bullet graph will render in the specified orientation.

Default Value

  • "horizontal"

Example

{% highlight html %}

{% endhighlight %}

qualitativeRanges array

{:#members:qualitativeranges}

Contains property to customize the qualitative ranges.

qualitativeRanges.rangeEnd number

{:#members:qualitativeranges-rangeend}

Specifies the ending range to which the qualitative ranges will render.

Default Value

  • 3

Example

{% highlight html %}

{% endhighlight %}

qualitativeRanges.rangeOpacity number

{:#members:qualitativeranges-rangeopacity}

Specifies the opacity for the qualitative ranges.

Default Value

  • 1

Example

{% highlight html %}

{% endhighlight %}

qualitativeRanges.rangeStroke string

{:#members:qualitativeranges-rangestroke}

Specifies the stroke for the qualitative ranges.

Default Value

  • null

Example

{% highlight html %}

{% endhighlight %}

qualitativeRangeSize number

{:#members:qualitativerangesize}

Size of the qualitative range depends up on the specified value.

Default Value

  • 32

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [qualitativeRangeSize]="35">

{% endhighlight %}

quantitativeScaleLength number

{:#members:quantitativescalelength}

Length of the quantitative range depends up on the specified value.

Default Value

  • 475

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleLength]="500">

{% endhighlight %}

quantitativeScaleSettings object

{:#members:quantitativescalesettings}

Contains all the properties to customize quantitative scale.

quantitativeScaleSettings.comparativeMeasureSettings object

{:#members:quantitativescalesettings-comparativemeasuresettings}

Contains property to customize the comparative measure.

quantitativeScaleSettings.comparativeMeasureSettings.stroke number

{:#members:quantitativescalesettings-comparativemeasuresettings-stroke}

Specifies the stroke of the comparative measure.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { comparativeMeasureSettings: { stroke:'green' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.comparativeMeasureSettings.width number

{:#members:quantitativescalesettings-comparativemeasuresettings-width}

Specifies the width of the comparative measure.

Default Value

  • 5

Example

{% highlight ts %}

this.quantitativeScale = { comparativeMeasureSettings: { width:6 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.featuredMeasureSettings object

{:#members:quantitativescalesettings-featuredmeasuresettings}

Contains property to customize the featured measure.

quantitativeScaleSettings.featuredMeasureSettings.stroke number

{:#members:quantitativescalesettings-featuredmeasuresettings-stroke}

Specifies the Stroke of the featured measure in bullet graph.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { featureMeasureSettings: { stroke:'green' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.featuredMeasureSettings.width number

{:#members:quantitativescalesettings-featuredmeasuresettings-width}

Specifies the width of the featured measure in bullet graph.

Default Value

  • 2

Example

{% highlight ts %}

this.quantitativeScale = { featureMeasureSettings: { width:3 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.featureMeasures array

{:#members:quantitativescalesettings-featuremeasures}

Contains property to customize the featured measure.

quantitativeScaleSettings.featureMeasures.category string

{:#members:quantitativescalesettings-featuremeasures-category}

Specifies the category of feature measure.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { featureMeasures: [ { category: 2010 },
] };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.featureMeasures.comparativeMeasureValue number

{:#members:quantitativescalesettings-featuremeasures-comparativemeasurevalue}

Comparative measure render till the specified value.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { featureMeasures: [ { comparativeMeasureValue: 3 },
] };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.featureMeasures.value number

{:#members:quantitativescalesettings-featuremeasures-value}

Feature measure render till the specified value.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { featureMeasures: [ { value: 3 },
] };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.fields object

{:#members:quantitativescalesettings-fields}

Contains property to customize the fields.

quantitativeScaleSettings.fields.category string

{:#members:quantitativescalesettings-fields-category}

Specifies the category of the bullet graph.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { fields: { category: 'ProductId',
} };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.fields.comparativeMeasure string

{:#members:quantitativescalesettings-fields-comparativemeasure}

Comparative measure render based on the values in the specified field.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { fields: { comparativeMeasure : 5,
} };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.fields.dataSource object

{:#members:quantitativescalesettings-fields-datasource}

Specifies the dataSource for the bullet graph.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { fields: { dataSource: data1 ,
} };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.fields.featureMeasures string

{:#members:quantitativescalesettings-fields-featuremeasures}

Feature measure render based on the values in the specified field.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { fields: { featureMeasures: 'UnitPrice',
} };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.fields.query string

{:#members:quantitativescalesettings-fields-query}

Specifies the query for fetching the values form data source to render the bullet graph.

Default Value

  • null

quantitativeScaleSettings.fields.tableName string

{:#members:quantitativescalesettings-fields-tablename}

Specifies the name of the table.

Default Value

  • null

Example

{% highlight ts %}

this.quantitativeScale = { fields: { tableName: 'Product',
} };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.interval number

{:#members:quantitativescalesettings-interval}

Specifies the interval for the Graph.

Default Value

  • 1

Example

{% highlight ts %}

this.quantitativeScale = { interval:2 };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quantitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings object

{:#members:quantitativescalesettings-labelsettings}

Contains property to customize the labels.

quantitativeScaleSettings.labelSettings.font object

{:#members:quantitativescalesettings-labelsettings-font}

Contains property to customize the font of the labels in bullet graph.

quantitativeScaleSettings.labelSettings.font.fontFamily string

{:#members:quantitativescalesettings-labelsettings-font-fontfamily}

Specifies the fontFamily of labels in bullet graph. Labels render with this fontFamily.

Default Value

  • "Segoe UI"

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ font:{ fontFamily:'Algerian' } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.font.fontStyle enum

{:#members:quantitativescalesettings-labelsettings-font-fontstyle}

Specifies the fontStyle of labels in bullet graph. Labels render with this fontStyle. See FontStyle

Default Value

  • "Normal"

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ font:{ fontStyle:'italic' } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.font.fontWeight enum

{:#members:quantitativescalesettings-labelsettings-font-fontweight}

Specifies the fontWeight of labels in bullet graph. Labels render with this fontWeight. See FontWeight

Default Value

  • "regular"

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ font:{ fontWeight:'lighter' } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.font.opacity number

{:#members:quantitativescalesettings-labelsettings-font-opacity}

Specifies the opacity of labels in bullet graph. Labels render with this opacity

Default Value

  • 1

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ font:{ opacity:0.5 } } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.labelPlacement enum

{:#members:quantitativescalesettings-labelsettings-labelplacement}

Specifies the placement of labels in bullet graph scale.

Name Type Description
Inside string The Quantitative Scale Labels are placed inside the scale
Outside string The Quantitative Scale labels are placed outside the scale

Specifies the placement of labels in bullet graph scale.

Default Value

  • outside

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ labelPlacement:'inside' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.labelPrefix string

{:#members:quantitativescalesettings-labelsettings-labelprefix}

Specifies the prefix to be added with labels in bullet graph.

Default Value

  • Empty string

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ labelPrefix:'$' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.labelSuffix string

{:#members:quantitativescalesettings-labelsettings-labelsuffix}

Specifies the suffix to be added after labels in bullet graph.

Default Value

  • Empty string

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ labelSuffix:'K' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.offset number

{:#members:quantitativescalesettings-labelsettings-offset}

Specifies the horizontal/vertical padding of labels.

Default Value

  • 15

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ offset:10 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.position enum

{:#members:quantitativescalesettings-labelsettings-position}

Specifies the position of the labels to render either above or below the graph. See Position

Name Type Description
Above string The labels are placed above the graph
Below string The labels are placed below the graph

Specifies the position of the labels to render either above or below the graph. See Position

Default Value

  • "below"

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ position:'above' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.size number

{:#members:quantitativescalesettings-labelsettings-size}

Specifies the Size of the labels.

Default Value

  • 12

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ size:10 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.labelSettings.stroke string

{:#members:quantitativescalesettings-labelsettings-stroke}

Specifies the stroke color of the labels in bullet graph.

Default Value

  • null

Example

{% highlight ts %}

this.quatitativeScale = { labelSettings:{ stroke:'green' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.location object

{:#members:quantitativescalesettings-location}

Contains property to customize the position of the quantitative scale

quantitativeScaleSettings.location.x number

{:#members:quantitativescalesettings-location-x}

This property specifies the x position for rendering quantitative scale.

Default Value

  • 10

Example

{% highlight ts %}

this.quatitativeScale = { location:{ x:20 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.location.y number

{:#members:quantitativescalesettings-location-y}

This property specifies the y position for rendering quantitative scale.

Default Value

  • 10

Example

{% highlight ts %}

this.quatitativeScale = { location:{ y:200 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.majorTickSettings object

{:#members:quantitativescalesettings-majorticksettings}

Contains property to customize the major tick lines.

quantitativeScaleSettings.majorTickSettings.size number

{:#members:quantitativescalesettings-majorticksettings-size}

Specifies the size of the major ticks.

Default Value

  • 13

Example

{% highlight ts %}

this.quatitativeScale = { majorTickSettings:{ size:20 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.majorTickSettings.stroke string

{:#members:quantitativescalesettings-majorticksettings-stroke}

Specifies the stroke color of the major tick lines.

Default Value

  • null

Example

{% highlight ts %}

this.quatitativeScale = { majorTickSettings:{ stroke:'green' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.majorTickSettings.width number

{:#members:quantitativescalesettings-majorticksettings-width}

Specifies the width of the major tick lines.

Default Value

  • 2

Example

{% highlight ts %}

this.quatitativeScale = { majorTickSettings:{ width:2 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.maximum number

{:#members:quantitativescalesettings-maximum}

Specifies the maximum value of the Graph.

Default Value

  • 10

Example

{% highlight ts %}

this.quatitativeScale = { maximum:8 };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.minimum number

{:#members:quantitativescalesettings-minimum}

Specifies the minimum value of the Graph.

Default Value

  • 0

Example

{% highlight ts %}

this.quatitativeScale = { minimum:1 };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.minorTickSettings object

{:#members:quantitativescalesettings-minorticksettings}

Contains property to customize the minor ticks.

quantitativeScaleSettings.minorTickSettings.size number

{:#members:quantitativescalesettings-minorticksettings-size}

Specifies the size of minor ticks.

Default Value

  • 7

Example

{% highlight ts %}

this.quatitativeScale = { minorTickSettings:{ size:10 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.minorTickSettings.stroke string

{:#members:quantitativescalesettings-minorticksettings-stroke}

Specifies the stroke color of minor ticks in bullet graph.

Default Value

  • null

Example

{% highlight ts %}

this.quatitativeScale = { minorTickSettings:{ stroke:'green' } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.minorTickSettings.width number

{:#members:quantitativescalesettings-minorticksettings-width}

Specifies the width of the minor ticks in bullet graph.

Default Value

  • 2

Example

{% highlight ts %}

this.quatitativeScale = { minorTickSettings:{ width:2 } };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.minorTicksPerInterval number

{:#members:quantitativescalesettings-minorticksperinterval}

The specified number of minor ticks will be rendered per interval.

Default Value

  • 4

Example

{% highlight ts %}

this.quatitativeScale = { minorTicksPerInterval:5 };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.tickPlacement enum

{:#members:quantitativescalesettings-tickplacement}

Specifies the placement of ticks to render either inside or outside the scale.

Name Type Description
Inside string The quantitative scale ticks are placed inside the scale
Outside string The quantitative scale ticks are placed outside the scale
Specifies the placement of ticks to render either inside or outside the scale. See LabelPlacement

Default Value

  • ej.datavisualization.BulletGraph.TickPlacement.Outside

Example

{% highlight ts %}

this.quatitativeScale = { tickPlacement:'inside' };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

quantitativeScaleSettings.tickPosition enum

{:#members:quantitativescalesettings-tickposition}

Specifies the position of the ticks to render either above,below or inside

Name Type Description
Below string The ticks are positioned below the Quantitative scale
Above string The ticks are positioned above the Quantitative scale
Cross string The ticks are placed inside the Quantitative scale

Specifies the position of the ticks to render either above, below or inside the graph. See LabelPosition

Default Value

  • ej.datavisualization.BulletGraph.TickPosition.Far

Example

{% highlight ts %}

this.quatitativeScale = { tickPosition:'near' };

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="bullet1" [quantitativeScaleSettings]="quatitativeScale">

{% endhighlight %}

theme string

{:#members:theme}

By specifying this property the user can change the theme of the bullet graph.

Default Value

  • "flatlight"

Example

{% highlight html %}

{% endhighlight %}

tooltipSettings object

{:#members:tooltipsettings}

Contains all the properties to customize tooltip.

tooltipSettings.captionTemplate string

{:#members:tooltipsettings-captiontemplate}

Specifies template for caption tooltip

Default Value

  • null

Example

{% highlight html %}

Sales
Current :
Target :

{% endhighlight %}

tooltipSettings.enableCaptionTooltip boolean

{:#members:tooltipsettings-enablecaptiontooltip}

Toggles the visibility of caption tooltip

Default Value

  • false

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [tooltipSettings.enableCaptionTooltip]="true">

{% endhighlight %}

tooltipSettings.template string

{:#members:tooltipsettings-template}

Specifies the ID of a div, which is to be displayed as tooltip.

Default Value

  • null

Example

{% highlight html %}

Sales
Current :
Target :

{% endhighlight %}

tooltipSettings.visible boolean

{:#members:tooltipsettings-visible}

Toggles the visibility of tooltip

Default Value

  • true

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [tooltipSettings.visible]="true">

{% endhighlight %}

value number

{:#members:value}

Feature measure bar in bullet graph render till the specified value.

Default Value

  • 0

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [value]= 1>

{% endhighlight %}

width number

{:#members:width}

Specifies the width of the bullet graph.

Default Value

  • 595

Example

{% highlight html %}

<ej-bulletgraph id="bullet1" [width]= 600>

{% endhighlight %}

Methods

destroy ()

{:#methods:destroy}

To destroy the bullet graph

Returns: void

Example

{% highlight ts %}

destroy(){

 //Do something
 this.bullet.widget.destroy();

}

{% endhighlight %}

redraw()

{:#methods:redraw}

To redraw the bullet graph

Returns: void

Example

{% highlight ts %}

redraw(){

 //Do something
 this.bullet.widget.redraw();

}

{% endhighlight %}

setComparativeMeasureSymbol()

{:#methods:setcomparativemeasuresymbol}

To set the value for comparative measure in bullet graph.

Name Type Description
{% highlight html %} argument.Index{% endhighlight %} number value for the graph
{% highlight html %} argument.Measure{% endhighlight %} number value for the graph

Returns: void

Example

{% highlight ts %}

setComparativeMeasureSymbol(){

 //Do something
 this.range.widget.setComparativeMeasureSymbol();

}

{% endhighlight %}

setFeatureMeasureBarValue()

{:#methods:setfeaturemeasurebarvalue}

To set the value for feature measure bar.

Name Type Description
{% highlight html %} argument.Index{% endhighlight %} number value for the graph
{% highlight html %} argument.Measure{% endhighlight %} number value for the graph

Returns: void

Example

{% highlight ts %}

setFeatureMeasureBarValue(){

 //Do something
 this.range.widget.setFeatureMeasureBarValue();

}

{% endhighlight %}

Events

drawCaption

{:#events:drawcaption}

Fires on rendering the caption of bullet graph.

Name Type Description
{% highlight html %} Object{% endhighlight %} Object returns the object of the bullet graph.
{% highlight html %} scaleElement{% endhighlight %} Element returns the options of the scale element.
{% highlight html %} captionElement{% endhighlight %} Element returns the current captionSettings element.
{% highlight html %} captionType{% endhighlight %} string returns the type of the captionSettings.

Example

{% highlight ts %}

ondrawcaption(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (drawCaption)="ondrawcaption($event)">

{% endhighlight %}

drawCategory

{:#events:drawcategory}

Fires on rendering the category.

Name Type Description
{% highlight html %} Object{% endhighlight %} Object returns the object of the bullet graph.
{% highlight html %} scaleElement{% endhighlight %} Element returns the options of the scale element.
{% highlight html %} categoryElement{% endhighlight %} Element returns the options of category element.
{% highlight html %} Value{% endhighlight %} string returns the text value of the category that is drawn.

Example

{% highlight ts %}

ondrawcategory(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (drawCategory)="ondrawcategory($event)">

{% endhighlight %}

drawComparativeMeasureSymbol

{:#events:drawcomparativemeasuresymbol}

Fires on rendering the comparative measure symbol.

Name Type Description
{% highlight html %} Object{% endhighlight %} Object returns the object of the bullet graph.
{% highlight html %} scaleElement{% endhighlight %} Element returns the options of the scale element.
{% highlight html %} targetElement{% endhighlight %} Element returns the options of comparative measure element.
{% highlight html %} Value{% endhighlight %} number returns the value of the comparative measure symbol.

Example

{% highlight ts %}

ondrawcomparativemeasuresymbol(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (drawComparativeMeasureSymbol)="ondrawcomparativemeasuresymbol($event)">

{% endhighlight %}

drawFeatureMeasureBar

{:#events:drawfeaturemeasurebar}

Fires on rendering the feature measure bar.

Name Type Description
{% highlight html %} Object{% endhighlight %} Object returns the object of the bullet graph.
{% highlight html %} scaleElement{% endhighlight %} Element returns the options of the scale element.
{% highlight html %} currentElement{% endhighlight %} Element returns the options of feature measure element.
{% highlight html %} Value{% endhighlight %} number returns the value of the feature measure bar.

Example

{% highlight ts %}

ondrawfeaturemeasurebar(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (drawFeatureMeasureBar)="ondrawfeaturemeasurebar($event)">

{% endhighlight %}

drawIndicator

{:#events:drawindicator}

Fires on rendering the indicator of bullet graph.

Name Type Description
{% highlight html %} indicatorSettings{% endhighlight %} Object returns an object to customize bullet graph indicator text and symbol before rendering it.
{% highlight html %} model{% endhighlight %} Object returns the object of bullet graph.
{% highlight html %} type{% endhighlight %} string returns the type of event.
{% highlight html %} cancel{% endhighlight %} boolean for canceling the event.

Example

{% highlight ts %}

ondrawindicator(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (drawIndicator)="ondrawindicator($event)">

{% endhighlight %}

drawLabels

{:#events:drawlabels}

Fires on rendering the labels.

Name Type Description
{% highlight html %} Object{% endhighlight %} Object returns the object of the bullet graph.
{% highlight html %} scaleElement{% endhighlight %} Element returns the options of the scale element.
{% highlight html %} tickElement{% endhighlight %} Element returns the current label element.
{% highlight html %} labelType{% endhighlight %} string returns the label type.

Example

{% highlight ts %}

ondrawlabels(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (drawLabels)="ondrawlabels($event)">

{% endhighlight %}

drawTicks

{:#events:drawticks}

Fires on rendering the ticks.

Name Type Description
{% highlight html %} model{% endhighlight %} object returns the model of the bullet graph.
{% highlight html %} type{% endhighlight %} string returns the name of the event.
{% highlight html %} cancel{% endhighlight %} boolean if the event should be canceled; otherwise, false.
{% highlight html %} majorTickSettings{% endhighlight %} object returns the settings for majorTicks.
{% highlight html %} minorTickSettings{% endhighlight %} object returns the settings for minorTicks.
{% highlight html %} maximum{% endhighlight %} number returns the maximum value.
{% highlight html %} minimum{% endhighlight %} number returns the minimum value.
{% highlight html %} interval{% endhighlight %} number returns the interval value.
{% highlight html %} minorTickPerInterval{% endhighlight %} number returns the value of minorTicksPerInterval.

Example

{% highlight ts %}

ondrawticks(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (drawTicks)="ondrawticks($event)">

{% endhighlight %}

drawQualitativeRanges

{:#events:drawqualitativeranges}

Fires on rendering the qualitative ranges.

Name Type Description
{% highlight html %} Object{% endhighlight %} Object returns the object of the bullet graph.
{% highlight html %} rangeIndex{% endhighlight %} number returns the index of current range.
{% highlight html %} rangeOptions{% endhighlight %} Object returns the settings for current range.
{% highlight html %} rangeEndValue{% endhighlight %} number returns the end value of current range.

Example

{% highlight ts %}

ondrawqualitativeranges(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (drawQualitativeRanges)="ondrawqualitativeranges($event)">

{% endhighlight %}

load

{:#events:load}

Fires on loading bullet graph.

Name Type Description
{% highlight html %} model{% endhighlight %} object returns the model of the bullet graph.
{% highlight html %} type{% endhighlight %} string returns the name of the event.
{% highlight html %} cancel{% endhighlight %} boolean if the event should be canceled; otherwise, false.

Example

{% highlight ts %}

onload(sender){

 //Do something

}

{% endhighlight %}

{% highlight html %}

<ej-bulletgraph id="events" (load)="onload($event)">

{% endhighlight %}