UNPKG

4.96 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef, TrackByFunction } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { Series } from '../models/chart-data.model';
4import { BaseChartComponent } from '../common/base-chart.component';
5import { BarChartType } from './types/bar-chart-type.enum';
6import { LegendOptions, LegendPosition } from '../common/types/legend.model';
7import { ScaleType } from '../common/types/scale-type.enum';
8import { ViewDimensions } from '../common/types/view-dimension.interface';
9import * as i0 from "@angular/core";
10export declare class BarHorizontalStackedComponent extends BaseChartComponent {
11 legend: boolean;
12 legendTitle: string;
13 legendPosition: LegendPosition;
14 xAxis: any;
15 yAxis: any;
16 showXAxisLabel: boolean;
17 showYAxisLabel: boolean;
18 xAxisLabel: string;
19 yAxisLabel: string;
20 tooltipDisabled: boolean;
21 gradient: boolean;
22 showGridLines: boolean;
23 activeEntries: any[];
24 schemeType: ScaleType;
25 trimXAxisTicks: boolean;
26 trimYAxisTicks: boolean;
27 rotateXAxisTicks: boolean;
28 maxXAxisTickLength: number;
29 maxYAxisTickLength: number;
30 xAxisTickFormatting: any;
31 yAxisTickFormatting: any;
32 xAxisTicks: any[];
33 yAxisTicks: any[];
34 barPadding: number;
35 roundDomains: boolean;
36 xScaleMax: number;
37 showDataLabel: boolean;
38 dataLabelFormatting: any;
39 noBarWhenZero: boolean;
40 wrapTicks: boolean;
41 activate: EventEmitter<any>;
42 deactivate: EventEmitter<any>;
43 tooltipTemplate: TemplateRef<any>;
44 dims: ViewDimensions;
45 groupDomain: string[];
46 innerDomain: string[];
47 valueDomain: [number, number];
48 xScale: any;
49 yScale: any;
50 transform: string;
51 colors: ColorHelper;
52 margin: number[];
53 xAxisHeight: number;
54 yAxisWidth: number;
55 legendOptions: LegendOptions;
56 dataLabelMaxWidth: any;
57 barChartType: typeof BarChartType;
58 isSSR: boolean;
59 ngOnInit(): void;
60 update(): void;
61 getGroupDomain(): string[];
62 getInnerDomain(): string[];
63 getValueDomain(): [number, number];
64 getYScale(): any;
65 getXScale(): any;
66 groupTransform(group: Series): string;
67 onClick(data: any, group?: Series): void;
68 trackBy: TrackByFunction<Series>;
69 setColors(): void;
70 getLegendOptions(): LegendOptions;
71 updateYAxisWidth({ width }: {
72 width: number;
73 }): void;
74 updateXAxisHeight({ height }: {
75 height: number;
76 }): void;
77 onDataLabelMaxWidthChanged(event: any, groupIndex: number): void;
78 onActivate(event: any, group: Series, fromLegend?: boolean): void;
79 onDeactivate(event: any, group: Series, fromLegend?: boolean): void;
80 static ɵfac: i0.ɵɵFactoryDeclaration<BarHorizontalStackedComponent, never>;
81 static ɵcmp: i0.ɵɵComponentDeclaration<BarHorizontalStackedComponent, "ngx-charts-bar-horizontal-stacked", never, { "legend": { "alias": "legend"; "required": false; }; "legendTitle": { "alias": "legendTitle"; "required": false; }; "legendPosition": { "alias": "legendPosition"; "required": false; }; "xAxis": { "alias": "xAxis"; "required": false; }; "yAxis": { "alias": "yAxis"; "required": false; }; "showXAxisLabel": { "alias": "showXAxisLabel"; "required": false; }; "showYAxisLabel": { "alias": "showYAxisLabel"; "required": false; }; "xAxisLabel": { "alias": "xAxisLabel"; "required": false; }; "yAxisLabel": { "alias": "yAxisLabel"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "showGridLines": { "alias": "showGridLines"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "schemeType": { "alias": "schemeType"; "required": false; }; "trimXAxisTicks": { "alias": "trimXAxisTicks"; "required": false; }; "trimYAxisTicks": { "alias": "trimYAxisTicks"; "required": false; }; "rotateXAxisTicks": { "alias": "rotateXAxisTicks"; "required": false; }; "maxXAxisTickLength": { "alias": "maxXAxisTickLength"; "required": false; }; "maxYAxisTickLength": { "alias": "maxYAxisTickLength"; "required": false; }; "xAxisTickFormatting": { "alias": "xAxisTickFormatting"; "required": false; }; "yAxisTickFormatting": { "alias": "yAxisTickFormatting"; "required": false; }; "xAxisTicks": { "alias": "xAxisTicks"; "required": false; }; "yAxisTicks": { "alias": "yAxisTicks"; "required": false; }; "barPadding": { "alias": "barPadding"; "required": false; }; "roundDomains": { "alias": "roundDomains"; "required": false; }; "xScaleMax": { "alias": "xScaleMax"; "required": false; }; "showDataLabel": { "alias": "showDataLabel"; "required": false; }; "dataLabelFormatting": { "alias": "dataLabelFormatting"; "required": false; }; "noBarWhenZero": { "alias": "noBarWhenZero"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate"], never, false, never>;
82}