/** * Copyright (c) 2020, 2021, 2022, 2023, 2024 Visa, Inc. * * This source code is licensed under the MIT license * https://github.com/visa/visa-chart-components/blob/master/LICENSE * **/ import { EventEmitter } from '../../stencil-public-runtime'; import { IBoxModelType, ILocalizationType, IHoverStyleType, IClickStyleType, IAxisType, IReferenceStyleType, IDataLabelType, ITooltipLabelType, IAccessibilityType, IAnimationConfig, ILegendType, ISeriesLabelType, ISecondaryLinesType, ISubTitleType } from '@visa/charts-types'; import 'd3-transition'; export declare class LineChart { clickEvent: EventEmitter; hoverEvent: EventEmitter; mouseOutEvent: EventEmitter; initialLoadEvent: EventEmitter; initialLoadEndEvent: EventEmitter; drawStartEvent: EventEmitter; drawEndEvent: EventEmitter; transitionEndEvent: EventEmitter; localization: ILocalizationType; mainTitle: string; subTitle: string | ISubTitleType; height: number; width: number; highestHeadingLevel: string | number; margin: IBoxModelType; padding: IBoxModelType; data: object[]; uniqueID: string; ordinalAccessor: string; valueAccessor: string; seriesAccessor: string; xAxis: IAxisType; yAxis: IAxisType; wrapLabel: boolean; showBaselineX: boolean; colorPalette: string; colors: string[]; hoverStyle: IHoverStyleType; clickStyle: IClickStyleType; referenceStyle: IReferenceStyleType; cursor: string; hoverOpacity: number; animationConfig: IAnimationConfig; strokeWidth: number; showDots: boolean; dotRadius: number; lineCurve: string; dataLabel: IDataLabelType; dataKeyNames: object; showTooltip: boolean; tooltipLabel: ITooltipLabelType; accessibility: IAccessibilityType; legend: ILegendType; annotations: object[]; seriesLabel: ISeriesLabelType; maxValueOverride: number; minValueOverride: number; referenceLines: object[]; secondaryLines: ISecondaryLinesType; suppressEvents: boolean; hoverHighlight: object; clickHighlight: object[]; interactionKeys: string[]; unitTest: boolean; lineChartEl: HTMLElement; shouldValidateAccessibility: boolean; shouldValidateLocalization: boolean; svg: any; root: any; rootG: any; gridG: any; lineG: any; dotG: any; seriesLabelG: any; line: any; x: any; y: any; xIndex: any; nest: any; dotNest: any; map: any; interpolating: any; innerHeight: number; innerWidth: number; innerPaddedHeight: number; innerPaddedWidth: number; referencesG: any; defaults: boolean; duration: number; legendG: any; tooltipG: any; subTitleG: any; labels: any; displayOnlyLabelData: any; colorArr: any; rawColors: any; textColors: any; seriesInteraction: any; tableData: any; tableColumns: any; updated: boolean; enterSize: number; exitSize: number; enter: any; exit: any; update: any; enterDotWrappers: any; updateDotWrappers: any; exitDotWrappers: any; enterDots: any; updateDots: any; exitDots: any; enteringLabelGroups: any; exitingLabelGroups: any; updatingLabelGroups: any; enteringLabels: any; exitingLabels: any; updatingLabels: any; seriesLabelEnter: any; seriesLabelUpdate: any; seriesLabelExit: any; labelDetails: any; isRight: any; time: { timemillisecond: any; timesecond: any; timeminute: any; timehour: any; timeday: any; timeweek: any; timemonth: any; timeyear: any; }; curveOptions: { linear: any; step: any; catmullRom: any; }; chartID: string; innerInteractionKeys: any; innerLabelAccessor: string; shouldUpdateXAxis: boolean; shouldUpdateYAxis: boolean; shouldUpdateXGrid: boolean; shouldUpdateYGrid: boolean; shouldValidate: boolean; shouldUpdateData: boolean; shouldSetDimensions: boolean; shouldUpdateScales: boolean; shouldUpdateTableData: boolean; shouldUpdateLabels: boolean; shouldUpdateAnnotations: boolean; shouldDrawInteractionState: boolean; shouldSetSelectionClass: boolean; shouldUpdateCursor: boolean; shouldSetColors: boolean; shouldSetSubTitle: boolean; shouldUpdateLines: boolean; shouldUpdatePoints: boolean; shouldUpdateLegend: boolean; shouldUpdateReferenceLines: boolean; shouldBindInteractivity: boolean; shouldUpdateLegendInteractivity: boolean; shouldResetRoot: boolean; shouldUpdateBaseline: boolean; shouldValidateInteractionKeys: boolean; shouldUpdateLabelData: boolean; shouldValidateDataLabelAccessor: boolean; shouldEnterUpdateExit: boolean; shouldSetGlobalSelections: boolean; shouldSetTestingAttributes: boolean; shouldSetLabelOpacity: boolean; shouldSetSeriesLabelOpacity: boolean; shouldSetLegendCursor: boolean; shouldAddStrokeUnder: boolean; shouldValidateSeriesLabels: boolean; shouldUpdateSeriesLabels: boolean; shouldUpdateColors: boolean; shouldUpdateStrokeWidth: boolean; shouldUpdateInterpolationData: boolean; shouldUpdateDotRadius: boolean; shouldUpdateDescriptionWrapper: boolean; shouldSetChartAccessibilityTitle: boolean; shouldSetChartAccessibilitySubtitle: boolean; shouldSetChartAccessibilityLongDescription: boolean; shouldSetChartAccessibilityExecutiveSummary: boolean; shouldSetChartAccessibilityStatisticalNotes: boolean; shouldSetChartAccessibilityStructureNotes: boolean; shouldSetParentSVGAccessibility: boolean; shouldSetGeometryAccessibilityAttributes: boolean; shouldSetGeometryAriaLabels: boolean; shouldSetGroupAccessibilityLabel: boolean; shouldSetChartAccessibilityPurpose: boolean; shouldSetChartAccessibilityContext: boolean; shouldRedrawWrapper: boolean; shouldSetTagLevels: boolean; shouldSetChartAccessibilityCount: boolean; shouldSetYAxisAccessibility: boolean; shouldSetXAxisAccessibility: boolean; shouldSetAnnotationAccessibility: boolean; shouldUpdateDashPatterns: boolean; shouldSetLocalizationConfig: boolean; topLevel: string; bottomLevel: string; strokes: any; b: string; short: string; med: string; long: string; dashPatterns: any; bitmaps: any; hiddenHash: object; collisionSettings: object; dataWatcher(_newData: any, _oldData: any): void; idWatcher(newID: any, _oldID: any): void; headingWatcher(_newVal: any, _oldVal: any): void; titleWatcher(_newVal: any, _oldVal: any): void; subtitleWatcher(_newVal: any, _oldVal: any): void; dimensionWatcher(_newVal: any, _oldVal: any): void; seriesAccessorWatcher(_newVal: any, _oldVal: any): void; ordinalAccessorWatcher(_newVal: any, _oldVal: any): void; valueAccessorWatcher(_newVal: any, _oldVal: any): void; xAxisWatcher(_newVal: any, _oldVal: any): void; yAxisWatcher(_newVal: any, _oldVal: any): void; wrapLabelWatcher(_newVal: any, _oldVal: any): void; showBaselineXWatcher(_newVal: any, _oldVal: any): void; paletteWatcher(_newVal: any, _oldVal: any): void; colorsWatcher(_newVal: any, _oldVal: any): void; clickStyleWatcher(_newVal: any, _oldVal: any): void; hoverStyleWatcher(_newVal: any, _oldVal: any): void; referenceWatcher(_newVal: any, _oldVal: any): void; cursorWatcher(_newVal: any, _oldVal: any): void; strokeWidthWatcher(_newVal: any, _oldVal: any): void; showDotsWatcher(_newVal: any, _oldVal: any): void; dotRadiusWatcher(_newVal: any, _oldVal: any): void; lineCurveWatcher(_newLineCurve: any, _oldLineCurve: any): void; hoverOpacityWatcher(_newVal: any, _oldVal: any): void; dataLabelWatcher(_newVal: any, _oldVal: any): void; seriesLabelWatcher(_newVal: any, _oldVal: any): void; tooltipLabelWatcher(_newVal: any, _oldVal: any): void; showTooltipWatcher(_newVal: any, _oldVal: any): void; accessibilityWatcher(_newVal: any, _oldVal: any): void; localizationWatcher(_newVal: any, _oldVal: any): void; legendWatcher(_newVal: any, _oldVal: any): void; annotationsWatcher(_newVal: any, _oldVal: any): void; valueOverrideWatcher(_newVal: any, _oldVal: any): void; secondaryLinesWatcher(_newVal: any, _oldVal: any): void; clickWatcher(_newVal: any, _oldVal: any): void; hoverWatcher(_newVal: any, _oldVal: any): void; interactionWatcher(_newVal: any, _oldVal: any): void; dataKeyNamesWatcher(_newVal: any, _oldVal: any): void; suppressWatcher(_newVal: any, _oldVal: any): void; unitTestWatcher(_newVal: any, _oldVal: any): void; componentWillLoad(): Promise; componentWillUpdate(): Promise; componentDidLoad(): Promise>; componentDidUpdate(): Promise>; shouldValidateLocalizationProps(): void; shouldValidateAccessibilityProps(): void; setDimensions(): void; validateInteractionKeys(): void; validateDataLabelAccessor(): void; getLanguageString(): any; setLocalizationConfig(): void; prepareScales(): void; prepareData(): void; prepareLabelData(): void; updateInterpolationData(): void; setSubTitleElements(): void; setColors(): void; innerScopeDataKeys(): any; setTableData(): void; addStrokeUnder(): void; renderRootElements(): void; reSetRoot(): void; setGlobalSelections(): void; setTestingAttributes(): void; drawXAxis(): void; drawYAxis(): void; setXAxisAccessibility(): void; setYAxisAccessibility(): void; drawBaseline(): void; drawXGrid(): void; drawYGrid(): void; enterLines(): void; updateLines(): void; exitLines(): void; drawLines(): void; enterPoints(): void; updatePoints(): void; exitPoints(): void; drawPoints(): void; updateStrokePattern(): void; handleStrokeDasharray: (d: any, i: any) => any; updateDotRadius(): void; setSelectedClass(): void; validateSeriesLabels(): void; enterSeriesLabels(): void; updateSeriesLabels(): void; exitSeriesLabels(): void; drawSeriesLabels(): void; enterDataLabels(): void; updateDataLabels(): void; exitDataLabels(): void; drawDataLabels(): void; updateStrokeWidth(): void; calculateStrokeWidth: (data: any, useChildData?: any) => string | number; handleDotStroke: (d: any, i: any, n: any) => any; handleLineStroke: (data: any, i: any) => any; handleSeriesTextFill: (data: any, i: any) => any; handleTextFill: (d: any, i: any, n: any) => any; updateColors(): void; setLabelOpacity(): void; setSeriesLabelOpacity(): void; updateInteractionState(): void; updateCursor(): void; drawReferenceLines(): void; drawAnnotations(): void; setAnnotationAccessibility(): void; drawLegendElements(): void; bindLegendInteractivity(): void; setLegendCursor(): void; bindInteractivity(): void; setTagLevels(): void; setChartDescriptionWrapper(): void; setParentSVGAccessibility(): void; setGeometryAccessibilityAttributes(): void; setGeometryAriaLabels(): void; setGroupAccessibilityID(): void; setChartAccessibilityTitle(): void; setChartAccessibilitySubtitle(): void; setChartAccessibilityLongDescription(): void; setChartAccessibilityExecutiveSummary(): void; setChartAccessibilityPurpose(): void; setChartAccessibilityContext(): void; setChartAccessibilityStatisticalNotes(): void; setChartCountAccessibility(): void; setChartAccessibilityStructureNotes(): void; onChangeHandler(): void; onClickHandler(d: any, n: any): void; onHoverHandler(d: any, n: any, hasTooltip: any): void; onMouseOutHandler(): void; setTooltipInitialStyle(): void; eventsTooltip({ data, evt, isToShow }: { data?: any; evt?: any; isToShow: boolean; }): void; render(): any; private init; }