UNPKG

5 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 BarVerticalStackedComponent 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 yScaleMax: 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 tickFormatting: (label: string) => string;
52 colors: ColorHelper;
53 margin: number[];
54 xAxisHeight: number;
55 yAxisWidth: number;
56 legendOptions: LegendOptions;
57 dataLabelMaxHeight: any;
58 isSSR: boolean;
59 barChartType: typeof BarChartType;
60 ngOnInit(): void;
61 update(): void;
62 getGroupDomain(): string[];
63 getInnerDomain(): string[];
64 getValueDomain(): [number, number];
65 getXScale(): any;
66 getYScale(): any;
67 onDataLabelMaxHeightChanged(event: any, groupIndex: number): void;
68 groupTransform(group: Series): string;
69 onClick(data: any, group?: Series): void;
70 trackBy: TrackByFunction<Series>;
71 setColors(): void;
72 getLegendOptions(): LegendOptions;
73 updateYAxisWidth({ width }: {
74 width: number;
75 }): void;
76 updateXAxisHeight({ height }: {
77 height: number;
78 }): void;
79 onActivate(event: any, group: any, fromLegend?: boolean): void;
80 onDeactivate(event: any, group: Series, fromLegend?: boolean): void;
81 static ɵfac: i0.ɵɵFactoryDeclaration<BarVerticalStackedComponent, never>;
82 static ɵcmp: i0.ɵɵComponentDeclaration<BarVerticalStackedComponent, "ngx-charts-bar-vertical-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; }; "yScaleMax": { "alias": "yScaleMax"; "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>;
83}