Represents a sparkline chart.

IgxSparklineComponent

new IgxSparklineComponent(_renderer: Renderer2, _elRef: ViewContainerRef, _ngZone: NgZone, _injector: Injector): IgxSparklineComponent

Returns IgxSparklineComponent

_dynamicContent: ViewContainerRef

ngAcceptInputType_actualPixelScalingRatio

Section titled "ngAcceptInputType_actualPixelScalingRatio"
ngAcceptInputType_actualPixelScalingRatio: string | number

ngAcceptInputType_displayNormalRangeInFront

Section titled "ngAcceptInputType_displayNormalRangeInFront"
ngAcceptInputType_displayNormalRangeInFront: string | boolean
ngAcceptInputType_displayType: string | SparklineDisplayType
ngAcceptInputType_firstMarkerSize: string | number

ngAcceptInputType_firstMarkerVisibility

Section titled "ngAcceptInputType_firstMarkerVisibility"
ngAcceptInputType_firstMarkerVisibility: any
ngAcceptInputType_highMarkerSize: string | number

ngAcceptInputType_highMarkerVisibility

Section titled "ngAcceptInputType_highMarkerVisibility"
ngAcceptInputType_highMarkerVisibility: any

ngAcceptInputType_horizontalAxisVisibility

Section titled "ngAcceptInputType_horizontalAxisVisibility"
ngAcceptInputType_horizontalAxisVisibility: any

ngAcceptInputType_horizontalLabelFormatSpecifiers

Section titled "ngAcceptInputType_horizontalLabelFormatSpecifiers"
ngAcceptInputType_horizontalLabelFormatSpecifiers: string | any[]
ngAcceptInputType_lastMarkerSize: string | number

ngAcceptInputType_lastMarkerVisibility

Section titled "ngAcceptInputType_lastMarkerVisibility"
ngAcceptInputType_lastMarkerVisibility: any
ngAcceptInputType_lineThickness: string | number
ngAcceptInputType_lowMarkerSize: string | number

ngAcceptInputType_lowMarkerVisibility

Section titled "ngAcceptInputType_lowMarkerVisibility"
ngAcceptInputType_lowMarkerVisibility: any
ngAcceptInputType_markerSize: string | number
ngAcceptInputType_markerVisibility: any
ngAcceptInputType_maximum: string | number
ngAcceptInputType_minimum: string | number

ngAcceptInputType_negativeMarkerSize

Section titled "ngAcceptInputType_negativeMarkerSize"
ngAcceptInputType_negativeMarkerSize: string | number

ngAcceptInputType_negativeMarkerVisibility

Section titled "ngAcceptInputType_negativeMarkerVisibility"
ngAcceptInputType_negativeMarkerVisibility: any

ngAcceptInputType_normalRangeMaximum

Section titled "ngAcceptInputType_normalRangeMaximum"
ngAcceptInputType_normalRangeMaximum: string | number

ngAcceptInputType_normalRangeMinimum

Section titled "ngAcceptInputType_normalRangeMinimum"
ngAcceptInputType_normalRangeMinimum: string | number

ngAcceptInputType_normalRangeVisibility

Section titled "ngAcceptInputType_normalRangeVisibility"
ngAcceptInputType_normalRangeVisibility: any

ngAcceptInputType_pixelScalingRatio

Section titled "ngAcceptInputType_pixelScalingRatio"
ngAcceptInputType_pixelScalingRatio: string | number
ngAcceptInputType_trendLinePeriod: string | number

ngAcceptInputType_trendLineThickness

Section titled "ngAcceptInputType_trendLineThickness"
ngAcceptInputType_trendLineThickness: string | number
ngAcceptInputType_trendLineType: any

ngAcceptInputType_unknownValuePlotting

Section titled "ngAcceptInputType_unknownValuePlotting"
ngAcceptInputType_unknownValuePlotting: any

ngAcceptInputType_verticalAxisVisibility

Section titled "ngAcceptInputType_verticalAxisVisibility"
ngAcceptInputType_verticalAxisVisibility: any

ngAcceptInputType_verticalLabelFormatSpecifiers

Section titled "ngAcceptInputType_verticalLabelFormatSpecifiers"
ngAcceptInputType_verticalLabelFormatSpecifiers: string | any[]
ɵcmp: ɵɵComponentDeclaration<IgxSparklineComponent, "igx-sparkline", never, object, object, never, never, true, never>
ɵfac: ɵɵFactoryDeclaration<IgxSparklineComponent, never>

Gets the actual scaling value used by the component to affect the pixel density of the control. A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control to appear blurry.

get actualPixelScalingRatio(): number

Returns number

set actualPixelScalingRatio(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the sparkline brush.

get brush(): string

Returns string

set brush(v: string): void

Parameters

  • v: string

Returns void

get dataSource(): any

Returns any

set dataSource(value: any): void

Parameters

  • value: any

Returns void

Gets or sets the position of the normal range on the sparkline.

get displayNormalRangeInFront(): boolean

Returns boolean

set displayNormalRangeInFront(v: boolean): void

Parameters

  • v: boolean

Returns void

Gets or sets the display type of the sparkline.

get displayType(): SparklineDisplayType

Returns SparklineDisplayType

set displayType(v: SparklineDisplayType): void

Parameters

Returns void

Gets or sets the first marker brush of the sparkline.

get firstMarkerBrush(): string

Returns string

set firstMarkerBrush(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the first marker size of the sparkline.

get firstMarkerSize(): number

Returns number

set firstMarkerSize(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the first marker visibility of the sparkline.

get firstMarkerVisibility(): Visibility

Returns Visibility

set firstMarkerVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Sets or gets a function which takes an object that produces a formatted label for displaying in the chart.

get formatLabel(): object

Returns object

set formatLabel(v: object): void

Parameters

  • v: object

Returns void

get height(): string

Returns string

set height(value: string): void

Parameters

  • value: string

Returns void

Gets or sets the high marker brush of the sparkline.

get highMarkerBrush(): string

Returns string

set highMarkerBrush(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the high marker size of the sparkline.

get highMarkerSize(): number

Returns number

set highMarkerSize(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the high marker visibility of the sparkline.

get highMarkerVisibility(): Visibility

Returns Visibility

set highMarkerVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the horizontal axis line brush of the sparkline.

get horizontalAxisBrush(): string

Returns string

set horizontalAxisBrush(v: string): void

Parameters

  • v: string

Returns void

The value or content to display on the horizontal axis. This can be set to a formatted string, such as "{0}", or it can be set to a DataTemplate.

get horizontalAxisLabel(): any

Returns any

set horizontalAxisLabel(v: any): void

Parameters

  • v: any

Returns void

Gets or sets the display state of the horizontal axis.

get horizontalAxisVisibility(): Visibility

Returns Visibility

set horizontalAxisVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the label composite format used when creating label values.

get horizontalLabelFormat(): string

Returns string

set horizontalLabelFormat(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the format specifiers to use with the HorizontalLabelFormat string.

get horizontalLabelFormatSpecifiers(): any[]

Returns any[]

set horizontalLabelFormatSpecifiers(v: any[]): void

Parameters

  • v: any[]

Returns void

String identifier of a column or property name to get labels from on each item in the data source. These labels will be retrieved from the first and last item, and displayed by the horizontal axis.

get labelMemberPath(): string

Returns string

set labelMemberPath(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the last marker brush of the sparkline.

get lastMarkerBrush(): string

Returns string

set lastMarkerBrush(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the last marker size of the sparkline.

get lastMarkerSize(): number

Returns number

set lastMarkerSize(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the last marker visibility of the sparkline.

get lastMarkerVisibility(): Visibility

Returns Visibility

set lastMarkerVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the line thickness of the sparkline.

get lineThickness(): number

Returns number

set lineThickness(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the low marker brush of the sparkline.

get lowMarkerBrush(): string

Returns string

set lowMarkerBrush(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the low marker size of the sparkline.

get lowMarkerSize(): number

Returns number

set lowMarkerSize(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the low marker visibility of the sparkline.

get lowMarkerVisibility(): Visibility

Returns Visibility

set lowMarkerVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the marker brush of the sparkline.

get markerBrush(): string

Returns string

set markerBrush(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the marker size of the sparkline.

get markerSize(): number

Returns number

set markerSize(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the marker visibility of the sparkline.

get markerVisibility(): Visibility

Returns Visibility

set markerVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the maximum value of the y axis.

get maximum(): number

Returns number

set maximum(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the minimum value of the y axis.

get minimum(): number

Returns number

set minimum(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the negative brush of the sparkline.

get negativeBrush(): string

Returns string

set negativeBrush(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the negative marker brush of the sparkline.

get negativeMarkerBrush(): string

Returns string

set negativeMarkerBrush(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the negative marker size of the sparkline.

get negativeMarkerSize(): number

Returns number

set negativeMarkerSize(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the negative marker visibility of the sparkline.

get negativeMarkerVisibility(): Visibility

Returns Visibility

set negativeMarkerVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the normal range brush of the sparkline.

get normalRangeFill(): string

Returns string

set normalRangeFill(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the maximum value of the normal range.

get normalRangeMaximum(): number

Returns number

set normalRangeMaximum(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the minimum value of the normal range.

get normalRangeMinimum(): number

Returns number

set normalRangeMinimum(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the normal range visibility of the sparkline.

get normalRangeVisibility(): Visibility

Returns Visibility

set normalRangeVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the scaling value used to affect the pixel density of the control. A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control to appear blurry.

get pixelScalingRatio(): number

Returns number

set pixelScalingRatio(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the text color for the axis labels.

get textColor(): string

Returns string

set textColor(v: string): void

Parameters

  • v: string

Returns void

Gets or sets CSS font property for labels on X-axis

get textStyle(): string

Returns string

set textStyle(v: string): void

Parameters

  • v: string

Returns void

get tooltipTemplate(): TemplateRef<any>

Returns TemplateRef<any>

set tooltipTemplate(value: TemplateRef<any>): void

Parameters

  • value: TemplateRef<any>

Returns void

Gets or sets the trendline brush of the sparkline.

get trendLineBrush(): string

Returns string

set trendLineBrush(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the trendline period used by the sparkline.

get trendLinePeriod(): number

Returns number

set trendLinePeriod(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the thickness of the sparkline's trendline.

get trendLineThickness(): number

Returns number

set trendLineThickness(v: number): void

Parameters

  • v: number

Returns void

Gets or sets the type of trendline used by the sparkline.

get trendLineType(): TrendLineType

Returns TrendLineType

set trendLineType(v: TrendLineType): void

Parameters

  • v: TrendLineType

Returns void

Gets or sets the way null values are interpreted.

get unknownValuePlotting(): UnknownValuePlotting

Returns UnknownValuePlotting

set unknownValuePlotting(v: UnknownValuePlotting): void

Parameters

  • v: UnknownValuePlotting

Returns void

Gets or sets the string path to the value column.

get valueMemberPath(): string

Returns string

set valueMemberPath(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the vertical axis line brush of the sparkline.

get verticalAxisBrush(): string

Returns string

set verticalAxisBrush(v: string): void

Parameters

  • v: string

Returns void

The value or content to display on the vertical axis. This can be set to a formatted string, such as "{0:n}", or it can be set to a DataTemplate.

get verticalAxisLabel(): any

Returns any

set verticalAxisLabel(v: any): void

Parameters

  • v: any

Returns void

Gets or sets the display state of the vertical axis.

get verticalAxisVisibility(): Visibility

Returns Visibility

set verticalAxisVisibility(v: Visibility): void

Parameters

  • v: Visibility

Returns void

Gets or sets the label composite format used when creating label values.

get verticalLabelFormat(): string

Returns string

set verticalLabelFormat(v: string): void

Parameters

  • v: string

Returns void

Gets or sets the format specifiers to use with the VerticalLabelFormat string.

get verticalLabelFormatSpecifiers(): any[]

Returns any[]

set verticalLabelFormatSpecifiers(v: any[]): void

Parameters

  • v: any[]

Returns void

get width(): string

Returns string

set width(value: string): void

Parameters

  • value: string

Returns void

Returns visuals as a serialized string.

exportSerializedVisualData(): string

Returns string

Returns the sparkline visuals expressed as a SparklineVisualData object.

exportVisualData(): SparklineVisualData

Returns SparklineVisualData

findByName(name: string): any

Parameters

  • name: string

Returns any

ngAfterContentInit(): void

Returns void

ngOnDestroy(): void

Returns void

Used to manually notify the IgxSparklineComponent that the data source has reset or cleared its items. Invoking this method is only necessary if that datasource is not observable.

notifyClearItems(source_: any): void

Parameters

  • source_: any
    • The data source which was cleared or reset.

Returns void

notifyInsertItem(source_: any, index: number, newItem: any): void

Parameters

  • source_: any
  • index: number
  • newItem: any

Returns void

notifyRemoveItem(source_: any, index: number, oldItem: any): void

Parameters

  • source_: any
  • index: number
  • oldItem: any

Returns void

Notify that the control has resized.

notifyResized(): void

Returns void

notifySetItem(source_: any, index: number, oldItem: any, newItem: any): void

Parameters

  • source_: any
  • index: number
  • oldItem: any
  • newItem: any

Returns void

Provides a container to the sparkline control.

provideContainer(container: any): void

Parameters

  • container: any
    • The container.

Returns void

_createFromInternal(internal: any): IgxSparklineComponent

Parameters

  • internal: any

Returns IgxSparklineComponent