/** * Copyright (c) 2020, 2021, 2022, 2023, 2024, 2025 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, ISubTitleType } from '@visa/charts-types'; import 'd3-transition'; export declare class BarChart { 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; layout: string; highestHeadingLevel: string | number; margin: IBoxModelType; padding: IBoxModelType; data: object[]; uniqueID: string; ordinalAccessor: string; valueAccessor: string; groupAccessor: string; sortOrder: string; xAxis: IAxisType; yAxis: IAxisType; wrapLabel: boolean; colorPalette: string; colors: string[]; textureOrder: string[]; hoverStyle: IHoverStyleType; clickStyle: IClickStyleType; referenceStyle: IReferenceStyleType; cursor: string; roundedCorner: number; barIntervalRatio: number; hoverOpacity: number; animationConfig: IAnimationConfig; dataLabel: IDataLabelType; dataKeyNames: object; showTooltip: boolean; tooltipLabel: ITooltipLabelType; accessibility: IAccessibilityType; legend: ILegendType; annotations: object[]; maxValueOverride: number; minValueOverride: number; referenceLines: object[]; suppressEvents: boolean; hoverHighlight: object; clickHighlight: object[]; interactionKeys: string[]; unitTest: boolean; barChartEl: HTMLElement; shouldValidateAccessibility: boolean; shouldValidateLocalization: boolean; svg: any; root: any; rootG: any; gridG: any; bars: any; labels: any; nest: any; referencesG: any; defaults: boolean; duration: number; enter: any; exit: any; update: any; enteringLabels: any; exitingLabels: any; updatingLabels: any; x: any; y: any; innerHeight: number; innerWidth: number; innerPaddedHeight: number; innerPaddedWidth: number; colorArr: any; preppedData: any; displayOnlyLabelData: any; placement: string; legendG: any; subTitleG: any; tooltipG: any; legendData: any; updated: boolean; enterSize: number; exitSize: number; tableData: any; tableColumns: any; chartID: string; innerClickStyle: any; innerHoverStyle: any; innerInteractionKeys: any; preparedColors: any; fillColors: any; strokeColors: any; innerLabelAccessor: string; shouldUpdateXAxis: boolean; shouldUpdateYAxis: boolean; shouldUpdateXGrid: boolean; shouldUpdateYGrid: boolean; shouldValidate: boolean; shouldUpdateData: boolean; shouldUpdateLayoutVariables: boolean; shouldUpdateScales: boolean; shouldUpdateTableData: boolean; shouldUpdateAnnotations: boolean; shouldDrawInteractionState: boolean; shouldValidateClickStyle: boolean; shouldValidateHoverStyle: boolean; shouldSetSelectionClass: boolean; shouldUpdateCursor: boolean; shouldSetColors: boolean; shouldSetSubTitle: boolean; shouldUpdateGeometries: boolean; shouldUpdateLegend: boolean; shouldUpdateReferenceLines: boolean; shouldBindInteractivity: boolean; shouldUpdateLegendInteractivity: boolean; shouldResetRoot: boolean; shouldUpdateBaseline: boolean; shouldValidateInteractionKeys: boolean; shouldUpdateLabelData: boolean; shouldUpdateLegendData: boolean; shouldCheckValueAxis: boolean; shouldCheckLabelAxis: boolean; shouldUpdateCorners: boolean; shouldEnterUpdateExit: boolean; shouldSetGlobalSelections: boolean; shouldSetTestingAttributes: boolean; shouldValidateLabelPlacement: boolean; shouldValidateDataLabelAccessor: boolean; shouldCheckLabelColor: boolean; shouldSetLabelOpacity: boolean; shouldSetLabelPosition: boolean; shouldSetLabelContent: boolean; shouldUpdateDescriptionWrapper: boolean; shouldSetChartAccessibilityTitle: boolean; shouldSetChartAccessibilitySubtitle: boolean; shouldSetChartAccessibilityLongDescription: boolean; shouldSetChartAccessibilityExecutiveSummary: boolean; shouldSetChartAccessibilityStatisticalNotes: boolean; shouldSetChartAccessibilityStructureNotes: boolean; shouldSetParentSVGAccessibility: boolean; shouldSetGeometryAccessibilityAttributes: boolean; shouldSetGeometryAriaLabels: boolean; shouldSetGroupAccessibilityAttributes: boolean; shouldSetGroupAccessibilityLabel: boolean; shouldSetChartAccessibilityPurpose: boolean; shouldSetChartAccessibilityContext: boolean; shouldSetLegendCursor: boolean; shouldRedrawWrapper: boolean; shouldSetTagLevels: boolean; shouldSetChartAccessibilityCount: boolean; shouldSetYAxisAccessibility: boolean; shouldSetXAxisAccessibility: boolean; shouldSetAnnotationAccessibility: boolean; shouldSetStrokes: boolean; shouldSetTextures: boolean; shouldSetLocalizationConfig: boolean; topLevel: string; bottomLevel: string; strokes: any; bitmaps: any; dataWatcher(_newVal: any, _oldVal: any): void; sortWatcher(_newVal: any, _oldVal: any): void; groupAccessorWatcher(_newVal: any, _oldVal: any): void; ordinalAccessorWatcher(_newVal: any, _oldVal: any): void; valueAccessorWatcher(_newVal: any, _oldVal: any): void; valueOverrideWatcher(_newVal: any, _oldVal: any): void; headingWatcher(_newVal: any, _oldVal: any): void; titleWatcher(_newVal: any, _oldVal: any): void; subtitleWatcher(_newVal: any, _oldVal: any): void; xAxisWatcher(_newVal: any, _oldVal: any): void; yAxisWatcher(_newVal: any, _oldVal: any): void; wrapLabelWatcher(_newVal: any, _oldVal: any): void; colorsWatcher(_newVal: any, _oldVal: any): void; layoutWatcher(_newVal: any, _oldVal: any): void; dimensionWatcher(_newVal: any, _oldVal: any): void; cornerWatcher(_newVal: any, _oldVal: any): void; intervalRatioWatcher(_newVal: any, _oldVal: any): void; labelWatcher(_newVal: any, _oldVal: any): void; legendWatcher(_newVal: any, _oldVal: any): void; tooltipLabelWatcher(_newVal: any, _oldVal: any): void; showTooltipWatcher(_newVal: any, _oldVal: any): void; hoverOpacityWatcher(_newVal: any, _oldVal: any): void; clickStyleWatcher(_newVal: any, _oldVal: any): void; hoverStyleWatcher(_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; cursorWatcher(_newVal: any, _oldVal: any): void; accessibilityWatcher(_newVal: any, _oldVal: any): void; referenceLinesWatcher(_newVal: any, _oldVal: any): void; annotationsWatcher(_newVal: any, _oldVal: any): void; localizationWatcher(_newVal: any, _oldVal: any): void; idWatcher(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; validateInteractionKeys(): void; validateDataLabelAccessor(): void; getLanguageString(): any; setLocalizationConfig(): void; setTagLevels(): void; updateChartVariable(): void; prepareData(): void; prepareLegendData(): void; prepareLabelData(): void; setSubTitleElements(): void; setColors(): void; setTextures(): void; setStrokes(): void; setTableData(): void; validateLabelPlacement(): void; shouldCenterBaseline(): boolean; prepareScales(): void; reSetRoot(): void; checkHideAxisState(axisName: string, relevantLayout: string, minValue: number): boolean; drawXAxis(): void; drawYAxis(): void; drawBaseline(): void; setXAxisAccessibility(): void; setYAxisAccessibility(): void; drawXGrid(): void; drawYGrid(): void; enterGeometries(): void; updateGeometries(): void; exitGeometries(): void; drawGeometries(): void; setGlobalSelections(): void; setTestingAttributes(): void; renderRootElements(): void; setRoundedCorners(): void; validateClickStyle(): void; validateHoverStyle(): void; updateInteractionState(): void; setLabelOpacity(): void; processLabelOpacity(selection: any, addCollisionClass?: any): void; checkLabelColorAgainstBackground(): void; textTreatmentHandler: (d: any, i: any, n: any) => any; setSelectedClass(): void; updateCursor(): void; bindLegendInteractivity(): void; setLegendCursor(): void; bindInteractivity(): void; enterLabels(): void; updateLabels(): void; exitLabels(): void; setLabelContent(): void; setLabelPosition(): void; processLabelPosition(selection: any, runTransition?: any, redrawBitmap?: any, suppressMarkDraw?: any): void; drawReferenceLines(): void; drawLegendElements(): void; drawAnnotations(): void; setAnnotationAccessibility(): void; setChartDescriptionWrapper(): void; setParentSVGAccessibility(): void; setGeometryAccessibilityAttributes(): void; setGeometryAriaLabels(): void; setGroupAccessibilityAttributes(): 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, isLegend?: any): void; onMouseOutHandler(): void; setTooltipInitialStyle(): void; eventsTooltip({ data, evt, isToShow }: { data?: any; evt?: any; isToShow: boolean; }): void; render(): any; private init; }