/** * 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 'd3-transition'; import { IBoxModelType, ILocalizationType, IHoverStyleType, IClickStyleType, IAxisType, IReferenceStyleType, IDataLabelType, ITooltipLabelType, IAccessibilityType, IAnimationConfig, ILegendType, ISubTitleType } from '@visa/charts-types'; export declare class StackedBarChart { clickEvent: EventEmitter; hoverEvent: EventEmitter; mouseOutEvent: EventEmitter; initialLoadEvent: EventEmitter; initialLoadEndEvent: EventEmitter; drawStartEvent: EventEmitter; drawEndEvent: EventEmitter; transitionEndEvent: EventEmitter; mainTitle: string; subTitle: string | ISubTitleType; height: number; width: number; layout: string; highestHeadingLevel: string | number; margin: IBoxModelType; padding: IBoxModelType; data: object[]; uniqueID: string; localization: ILocalizationType; ordinalAccessor: string; valueAccessor: string; groupAccessor: string; sortOrder: string; xAxis: IAxisType; yAxis: IAxisType; wrapLabel: boolean; normalized: boolean; colorPalette: string; colors: string[]; hoverStyle: IHoverStyleType; clickStyle: IClickStyleType; referenceStyle: IReferenceStyleType; cursor: string; roundedCorner: number; barIntervalRatio: number; hoverOpacity: number; animationConfig: IAnimationConfig; textureOrder: string[]; dataLabel: IDataLabelType; dataKeyNames: object; showTotalValue: boolean; showTooltip: boolean; tooltipLabel: ITooltipLabelType; accessibility: IAccessibilityType; legend: ILegendType; annotations: object[]; showZeroLabels: boolean; minValueOverride: number; maxValueOverride: number; referenceLines: object[]; suppressEvents: boolean; hoverHighlight: object; clickHighlight: object[]; interactionKeys: string[]; unitTest: boolean; stackedBarChartEl: HTMLElement; shouldValidateAccessibility: boolean; shouldValidateLocalization: boolean; svg: any; root: any; rootG: any; gridG: any; barG: any; bars: any; labelG: any; labels: any; totalLabels: any; defaults: boolean; current: any; enter: any; exit: any; update: any; enterBarWrappers: any; exitBarWrappers: any; updateBarWrappers: any; x: any; y: any; innerHeight: number; innerWidth: number; innerPaddedHeight: number; innerPaddedWidth: number; innerXAxis: any; innerYAxis: any; series: any; extent: any; datakeys: any; colorArr: any; preparedColors: any; duration: any; referencesG: any; legendG: any; subTitleG: any; tooltipG: any; interpolating: any; stackOrder: any; updated: boolean; enterSize: number; exitSize: number; enterLabels: any; exitLabels: any; updateLabels: any; enterLabelWrappers: any; updateLabelWrappers: any; exitLabelWrappers: any; enterTotalLabels: any; updateTotalLabels: any; exitTotalLabels: any; tableData: any; tableColumns: any; chartID: string; innerInteractionKeys: any; innerLabelAccessor: string; legendData: any; shouldValidateInteractionKeys: boolean; shouldValidate: boolean; shouldUpdateData: boolean; shouldSetDimensions: boolean; shouldUpdateTableData: boolean; shouldSetColors: boolean; shouldSetSubTitle: boolean; shouldValidateAxes: boolean; shouldValidateClickHighlight: boolean; shouldUpdateScales: boolean; shouldUpdateAnnotations: boolean; shouldResetRoot: boolean; shouldEnterUpdateExit: boolean; shouldSetGlobalSelections: boolean; shouldSetTestingAttributes: boolean; shouldUpdateGeometries: boolean; shouldCheckValueAxis: boolean; shouldCheckLabelAxis: boolean; shouldUpdateXAxis: boolean; shouldUpdateYAxis: boolean; shouldUpdateXGrid: boolean; shouldUpdateYGrid: boolean; shouldUpdateBaseline: boolean; shouldSetSelectionClass: boolean; shouldUpdateCursor: boolean; shouldUpdateCorners: boolean; shouldUpdateLegendData: boolean; shouldValidateLabelPlacement: boolean; shouldValidateDataLabelAccessor: boolean; shouldUpdateLegend: boolean; shouldUpdateLegendInteractivity: boolean; shouldUpdateReferenceLines: boolean; shouldDrawInteractionState: boolean; shouldBindInteractivity: boolean; shouldSetLabelOpacity: boolean; shouldUpdateLabels: boolean; shouldUpdateTotalLabels: boolean; shouldCheckLabelColor: 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; shouldSetTextures: boolean; shouldSetStrokes: boolean; shouldSetLocalizationConfig: boolean; isSafari: boolean; strokes: any; textStrokes: any; topLevel: string; bottomLevel: string; bitmaps: any; 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; layoutWatcher(_newVal: any, _oldVal: any): void; ordinalAccessorWatcher(_newVal: any, _oldVal: any): void; valueAccessorWatcher(_newVal: any, _oldVal: any): void; groupAccessorWatcher(_newVal: any, _oldVal: any): void; sortWatcher(_newVal: any, _oldVal: any): void; xAxisWatcher(_newVal: any, _oldVal: any): void; yAxisWatcher(_newVal: any, _oldVal: any): void; wrapLabelWatcher(_newVal: any, _oldVal: any): void; normalizedWatcher(_newVal: any, _oldVal: any): void; colorsWatcher(_newVal: any, _oldVal: any): void; hoverStyleWatcher(_newVal: any, _oldVal: any): void; clickStyleWatcher(_newVal: any, _oldVal: any): void; referenceWatcher(_newVal: any, _oldVal: any): void; cursorWatcher(_newVal: any, _oldVal: any): void; cornerWatcher(_newVal: any, _oldVal: any): void; intervalRatioWatcher(_newVal: any, _oldVal: any): void; hoverOpacityWatcher(_newVal: any, _oldVal: any): void; labelWatcher(_newVal: any, _oldVal: any): void; showTotalValueWatcher(_newVal: any, _oldVal: any): void; showTooltipWatcher(_newVal: any, _oldVal: any): void; tooltipLabelWatcher(_newVal: any, _oldVal: any): void; localizationWatcher(_newVal: any, _oldVal: any): void; accessibilityWatcher(_newVal: any, _oldVal: any): void; showZeroLabelsWatcher(_newVal: any, _oldVal: any): void; legendWatcher(_newVal: any, _oldVal: any): void; annotationsWatcher(_newVal: any, _oldVal: any): void; valueOverrideWatcher(_newVal: any, _oldVal: any): void; interactionWatcher(_newVal: any, _oldVal: any): void; dataKeyNamesWatcher(_newVal: any, _oldVal: any): void; hoverWatcher(_newVal: any, _oldVal: any): void; clickWatcher(_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; validateLabelPlacement(): void; validateInteractionKeys(): void; validateDataLabelAccessor(): void; validateAxes(): void; getLanguageString(): any; setLocalizationConfig(): void; modifier(d: any): any; setDimensions(): void; prepareData(): void; prepareLegendData(): void; validateClickHighlight(): void; setTableData(): void; setSubTitleElements(): void; setColors(): void; setTextures(): void; setStrokes(): void; prepareScales(): void; renderRootElements(): void; setTestingAttributes(): void; reSetRoot(): void; drawXAxis(): void; drawYAxis(): void; setXAxisAccessibility(): void; setYAxisAccessibility(): void; drawBaseline(): void; drawXGrid(): void; drawYGrid(): void; setGlobalSelections(): void; enterGeometries(): void; updateGeometries(): void; exitGeometries(): void; drawGeometries(): void; updateInteractionState(): void; setLabelOpacity(): void; processLabelOpacity(selection: any, addCollisionClass?: any): void; checkLabelColorAgainstBackground(): void; textTreatmentHandler: (d: any, i: any, n: any) => any; bindInteractivity(): void; setRoundedCorners(): void; setSelectedClass(): void; updateCursor(): void; enterDataLabels(): void; updateDataLabels(): void; exitDataLabels(): void; drawDataLabels(): void; enterTotalDataLabels(): void; updateTotalDataLabels(): void; exitTotalDataLabels(): void; drawTotalDataLabels(): void; drawReferenceLines(): void; drawAnnotations(): void; setAnnotationAccessibility(): void; drawLegendElements(): void; bindLegendInteractivity(): 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): void; onMouseOutHandler(): void; setTooltipInitialStyle(): void; eventsTooltip({ data, evt, isToShow }: { data?: any; evt?: any; isToShow: boolean; }): void; render(): any; private init; }