UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

379 lines (373 loc) 16.6 kB
import { OnDestroy, TemplateRef, Injector, ComponentFactoryResolver, AfterContentInit, Renderer2, NgZone, ViewContainerRef } from '@angular/core'; import { Visibility } from "igniteui-angular-core"; import { XamSparkline } from './XamSparkline'; import { SparklineVisualData } from './SparklineVisualData'; import { TrendLineType } from "igniteui-angular-core"; import { SparklineDisplayType } from './SparklineDisplayType'; import { UnknownValuePlotting } from "igniteui-angular-core"; import * as i0 from "@angular/core"; /** * Represents a sparkline chart. */ export declare class IgxSparklineComponent implements AfterContentInit, OnDestroy { private _renderer; private _elRef; private _ngZone; private _componentFactoryResolver; private _injector; _dynamicContent: ViewContainerRef; private _height; private _width; set height(value: string); get height(): string; set width(value: string); get width(): string; private _container; private _dataSource; set dataSource(value: any); get dataSource(): any; private _root; constructor(_renderer: Renderer2, _elRef: ViewContainerRef, _ngZone: NgZone, _componentFactoryResolver: ComponentFactoryResolver, _injector: Injector); ngOnDestroy(): void; private _wrapper; protected createImplementation(): XamSparkline; private _sparkline; ngAfterContentInit(): void; protected _zoneRunner: (act: () => void) => void; protected _runInZone(act: () => void): void; private _tooltipTemplate; private _tooltipContent; set tooltipTemplate(value: TemplateRef<any>); get tooltipTemplate(): TemplateRef<any>; private _ensureTooltipCreated; private createWrapper; private _defaultTooltips; private _ensureDefaultTooltip; private _onDefaultTooltipsReady; private createTooltip; protected _implementation: any; /** * @hidden */ get i(): XamSparkline; /** * @hidden */ static _createFromInternal(internal: any): IgxSparklineComponent; /** * Gets or sets the sparkline brush. */ get brush(): string; set brush(v: string); /** * Gets or sets the negative brush of the sparkline. */ get negativeBrush(): string; set negativeBrush(v: string); /** * Gets or sets the marker brush of the sparkline. */ get markerBrush(): string; set markerBrush(v: string); /** * Gets or sets the negative marker brush of the sparkline. */ get negativeMarkerBrush(): string; set negativeMarkerBrush(v: string); /** * Gets or sets the first marker brush of the sparkline. */ get firstMarkerBrush(): string; set firstMarkerBrush(v: string); /** * Gets or sets the last marker brush of the sparkline. */ get lastMarkerBrush(): string; set lastMarkerBrush(v: string); /** * Gets or sets the high marker brush of the sparkline. */ get highMarkerBrush(): string; set highMarkerBrush(v: string); /** * Gets or sets the low marker brush of the sparkline. */ get lowMarkerBrush(): string; set lowMarkerBrush(v: string); /** * Gets or sets the trendline brush of the sparkline. */ get trendLineBrush(): string; set trendLineBrush(v: string); /** * Gets or sets the horizontal axis line brush of the sparkline. */ get horizontalAxisBrush(): string; set horizontalAxisBrush(v: string); /** * Gets or sets the vertical axis line brush of the sparkline. */ get verticalAxisBrush(): string; set verticalAxisBrush(v: string); /** * Gets or sets the normal range brush of the sparkline. */ get normalRangeFill(): string; set normalRangeFill(v: string); /** * Gets or sets the display state of the horizontal axis. */ get horizontalAxisVisibility(): Visibility; set horizontalAxisVisibility(v: Visibility); static ngAcceptInputType_horizontalAxisVisibility: Visibility | string; /** * Gets or sets the display state of the vertical axis. */ get verticalAxisVisibility(): Visibility; set verticalAxisVisibility(v: Visibility); static ngAcceptInputType_verticalAxisVisibility: Visibility | string; /** * Gets or sets the marker visibility of the sparkline. */ get markerVisibility(): Visibility; set markerVisibility(v: Visibility); static ngAcceptInputType_markerVisibility: Visibility | string; /** * Gets or sets the negative marker visibility of the sparkline. */ get negativeMarkerVisibility(): Visibility; set negativeMarkerVisibility(v: Visibility); static ngAcceptInputType_negativeMarkerVisibility: Visibility | string; /** * Gets or sets the first marker visibility of the sparkline. */ get firstMarkerVisibility(): Visibility; set firstMarkerVisibility(v: Visibility); static ngAcceptInputType_firstMarkerVisibility: Visibility | string; /** * Gets or sets the last marker visibility of the sparkline. */ get lastMarkerVisibility(): Visibility; set lastMarkerVisibility(v: Visibility); static ngAcceptInputType_lastMarkerVisibility: Visibility | string; /** * Gets or sets the low marker visibility of the sparkline. */ get lowMarkerVisibility(): Visibility; set lowMarkerVisibility(v: Visibility); static ngAcceptInputType_lowMarkerVisibility: Visibility | string; /** * Gets or sets the high marker visibility of the sparkline. */ get highMarkerVisibility(): Visibility; set highMarkerVisibility(v: Visibility); static ngAcceptInputType_highMarkerVisibility: Visibility | string; /** * Gets or sets the normal range visibility of the sparkline. */ get normalRangeVisibility(): Visibility; set normalRangeVisibility(v: Visibility); static ngAcceptInputType_normalRangeVisibility: Visibility | string; /** * Gets or sets the position of the normal range on the sparkline. */ get displayNormalRangeInFront(): boolean; set displayNormalRangeInFront(v: boolean); static ngAcceptInputType_displayNormalRangeInFront: boolean | string; /** * Gets or sets the marker size of the sparkline. */ get markerSize(): number; set markerSize(v: number); static ngAcceptInputType_markerSize: number | string; /** * Gets or sets the first marker size of the sparkline. */ get firstMarkerSize(): number; set firstMarkerSize(v: number); static ngAcceptInputType_firstMarkerSize: number | string; /** * Gets or sets the last marker size of the sparkline. */ get lastMarkerSize(): number; set lastMarkerSize(v: number); static ngAcceptInputType_lastMarkerSize: number | string; /** * Gets or sets the high marker size of the sparkline. */ get highMarkerSize(): number; set highMarkerSize(v: number); static ngAcceptInputType_highMarkerSize: number | string; /** * Gets or sets the low marker size of the sparkline. */ get lowMarkerSize(): number; set lowMarkerSize(v: number); static ngAcceptInputType_lowMarkerSize: number | string; /** * Gets or sets the negative marker size of the sparkline. */ get negativeMarkerSize(): number; set negativeMarkerSize(v: number); static ngAcceptInputType_negativeMarkerSize: number | string; /** * Gets or sets the line thickness of the sparkline. */ get lineThickness(): number; set lineThickness(v: number); static ngAcceptInputType_lineThickness: number | string; /** * Gets or sets the minimum value of the y axis. */ get minimum(): number; set minimum(v: number); static ngAcceptInputType_minimum: number | string; /** * Gets or sets the maximum value of the y axis. */ get maximum(): number; set maximum(v: number); static ngAcceptInputType_maximum: number | string; /** * Gets or sets the string path to the value column. */ get valueMemberPath(): string; set valueMemberPath(v: string); /** * 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; set labelMemberPath(v: string); /** * Gets or sets the type of trendline used by the sparkline. */ get trendLineType(): TrendLineType; set trendLineType(v: TrendLineType); static ngAcceptInputType_trendLineType: TrendLineType | string; /** * Gets or sets the trendline period used by the sparkline. */ get trendLinePeriod(): number; set trendLinePeriod(v: number); static ngAcceptInputType_trendLinePeriod: number | string; /** * Gets or sets the thickness of the sparkline's trendline. */ get trendLineThickness(): number; set trendLineThickness(v: number); static ngAcceptInputType_trendLineThickness: number | string; /** * Gets or sets the minimum value of the normal range. */ get normalRangeMinimum(): number; set normalRangeMinimum(v: number); static ngAcceptInputType_normalRangeMinimum: number | string; /** * Gets or sets the maximum value of the normal range. */ get normalRangeMaximum(): number; set normalRangeMaximum(v: number); static ngAcceptInputType_normalRangeMaximum: number | string; /** * Gets or sets the display type of the sparkline. */ get displayType(): SparklineDisplayType; set displayType(v: SparklineDisplayType); static ngAcceptInputType_displayType: SparklineDisplayType | string; /** * Gets or sets the way null values are interpreted. */ get unknownValuePlotting(): UnknownValuePlotting; set unknownValuePlotting(v: UnknownValuePlotting); static ngAcceptInputType_unknownValuePlotting: UnknownValuePlotting | string; /** * 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; set verticalAxisLabel(v: any); /** * 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; set horizontalAxisLabel(v: any); /** * Sets or gets a function which takes an object that produces a formatted label for displaying in the chart. */ get formatLabel(): (arg1: any) => string; set formatLabel(v: (arg1: any) => string); /** * Gets or sets the label composite format used when creating label values. */ get horizontalLabelFormat(): string; set horizontalLabelFormat(v: string); /** * Gets or sets the format specifiers to use with the HorizontalLabelFormat string. */ get horizontalLabelFormatSpecifiers(): any[]; set horizontalLabelFormatSpecifiers(v: any[]); static ngAcceptInputType_horizontalLabelFormatSpecifiers: any[] | string; /** * Gets or sets the label composite format used when creating label values. */ get verticalLabelFormat(): string; set verticalLabelFormat(v: string); /** * Gets or sets the format specifiers to use with the VerticalLabelFormat string. */ get verticalLabelFormatSpecifiers(): any[]; set verticalLabelFormatSpecifiers(v: any[]); static ngAcceptInputType_verticalLabelFormatSpecifiers: any[] | string; /** * 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; set pixelScalingRatio(v: number); static ngAcceptInputType_pixelScalingRatio: number | string; /** * 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; set actualPixelScalingRatio(v: number); static ngAcceptInputType_actualPixelScalingRatio: number | string; findByName(name: string): any; protected __p: string; protected _hasUserValues: Set<string>; protected get hasUserValues(): Set<string>; protected __m(propertyName: string): void; protected _stylingContainer: any; protected _stylingParent: any; protected _inStyling: boolean; protected _styling(container: any, component: any, parent?: any): void; /** * Provides a container to the sparkline control. * @param container * The container. */ provideContainer(container: any): void; /** * Notify that the control has resized. */ notifyResized(): void; notifySetItem(source_: any, index: number, oldItem: any, newItem: any): 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. * @param source_ * The data source which was cleared or reset. */ notifyClearItems(source_: any): void; notifyInsertItem(source_: any, index: number, newItem: any): void; notifyRemoveItem(source_: any, index: number, oldItem: any): void; /** * Returns the sparkline visuals expressed as a SparklineVisualData object. */ exportVisualData(): SparklineVisualData; /** * Returns visuals as a serialized string. */ exportSerializedVisualData(): string; static ɵfac: i0.ɵɵFactoryDeclaration<IgxSparklineComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<IgxSparklineComponent, "igx-sparkline", never, { "height": "height"; "width": "width"; "dataSource": "dataSource"; "tooltipTemplate": "tooltipTemplate"; "brush": "brush"; "negativeBrush": "negativeBrush"; "markerBrush": "markerBrush"; "negativeMarkerBrush": "negativeMarkerBrush"; "firstMarkerBrush": "firstMarkerBrush"; "lastMarkerBrush": "lastMarkerBrush"; "highMarkerBrush": "highMarkerBrush"; "lowMarkerBrush": "lowMarkerBrush"; "trendLineBrush": "trendLineBrush"; "horizontalAxisBrush": "horizontalAxisBrush"; "verticalAxisBrush": "verticalAxisBrush"; "normalRangeFill": "normalRangeFill"; "horizontalAxisVisibility": "horizontalAxisVisibility"; "verticalAxisVisibility": "verticalAxisVisibility"; "markerVisibility": "markerVisibility"; "negativeMarkerVisibility": "negativeMarkerVisibility"; "firstMarkerVisibility": "firstMarkerVisibility"; "lastMarkerVisibility": "lastMarkerVisibility"; "lowMarkerVisibility": "lowMarkerVisibility"; "highMarkerVisibility": "highMarkerVisibility"; "normalRangeVisibility": "normalRangeVisibility"; "displayNormalRangeInFront": "displayNormalRangeInFront"; "markerSize": "markerSize"; "firstMarkerSize": "firstMarkerSize"; "lastMarkerSize": "lastMarkerSize"; "highMarkerSize": "highMarkerSize"; "lowMarkerSize": "lowMarkerSize"; "negativeMarkerSize": "negativeMarkerSize"; "lineThickness": "lineThickness"; "minimum": "minimum"; "maximum": "maximum"; "valueMemberPath": "valueMemberPath"; "labelMemberPath": "labelMemberPath"; "trendLineType": "trendLineType"; "trendLinePeriod": "trendLinePeriod"; "trendLineThickness": "trendLineThickness"; "normalRangeMinimum": "normalRangeMinimum"; "normalRangeMaximum": "normalRangeMaximum"; "displayType": "displayType"; "unknownValuePlotting": "unknownValuePlotting"; "verticalAxisLabel": "verticalAxisLabel"; "horizontalAxisLabel": "horizontalAxisLabel"; "formatLabel": "formatLabel"; "horizontalLabelFormat": "horizontalLabelFormat"; "horizontalLabelFormatSpecifiers": "horizontalLabelFormatSpecifiers"; "verticalLabelFormat": "verticalLabelFormat"; "verticalLabelFormatSpecifiers": "verticalLabelFormatSpecifiers"; "pixelScalingRatio": "pixelScalingRatio"; "actualPixelScalingRatio": "actualPixelScalingRatio"; }, {}, never, never>; }