UNPKG

5.28 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef, TrackByFunction } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { DataItem } from '../models/chart-data.model';
4import { BaseChartComponent } from '../common/base-chart.component';
5import { LegendOptions, LegendPosition } from '../common/types/legend.model';
6import { ScaleType } from '../common/types/scale-type.enum';
7import { ViewDimensions } from '../common/types/view-dimension.interface';
8import { BarOrientation } from '../common/types/bar-orientation.enum';
9import * as i0 from "@angular/core";
10export declare class BarVertical2DComponent 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 scaleType: ScaleType;
22 gradient: boolean;
23 showGridLines: boolean;
24 activeEntries: any[];
25 schemeType: ScaleType;
26 trimXAxisTicks: boolean;
27 trimYAxisTicks: boolean;
28 rotateXAxisTicks: boolean;
29 maxXAxisTickLength: number;
30 maxYAxisTickLength: number;
31 xAxisTickFormatting: any;
32 yAxisTickFormatting: any;
33 xAxisTicks: any[];
34 yAxisTicks: any[];
35 groupPadding: number;
36 barPadding: number;
37 roundDomains: boolean;
38 roundEdges: boolean;
39 yScaleMax: number;
40 showDataLabel: boolean;
41 dataLabelFormatting: any;
42 noBarWhenZero: boolean;
43 wrapTicks: boolean;
44 activate: EventEmitter<any>;
45 deactivate: EventEmitter<any>;
46 tooltipTemplate: TemplateRef<any>;
47 dims: ViewDimensions;
48 groupDomain: string[];
49 innerDomain: string[];
50 valueDomain: [number, number];
51 groupScale: any;
52 innerScale: any;
53 valueScale: any;
54 transform: string;
55 colors: ColorHelper;
56 margin: number[];
57 xAxisHeight: number;
58 yAxisWidth: number;
59 legendOptions: LegendOptions;
60 dataLabelMaxHeight: any;
61 isSSR: boolean;
62 barOrientation: typeof BarOrientation;
63 ngOnInit(): void;
64 update(): void;
65 onDataLabelMaxHeightChanged(event: any, groupIndex: number): void;
66 getGroupScale(): any;
67 getInnerScale(): any;
68 getValueScale(): any;
69 getGroupDomain(): string[];
70 getInnerDomain(): string[];
71 getValueDomain(): [number, number];
72 groupTransform(group: DataItem): string;
73 onClick(data: any, group?: DataItem): void;
74 trackBy: TrackByFunction<DataItem>;
75 setColors(): void;
76 getLegendOptions(): LegendOptions;
77 updateYAxisWidth({ width }: {
78 width: number;
79 }): void;
80 updateXAxisHeight({ height }: {
81 height: number;
82 }): void;
83 onActivate(event: any, group: DataItem, fromLegend?: boolean): void;
84 onDeactivate(event: any, group: DataItem, fromLegend?: boolean): void;
85 static ɵfac: i0.ɵɵFactoryDeclaration<BarVertical2DComponent, never>;
86 static ɵcmp: i0.ɵɵComponentDeclaration<BarVertical2DComponent, "ngx-charts-bar-vertical-2d", 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; }; "scaleType": { "alias": "scaleType"; "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; }; "groupPadding": { "alias": "groupPadding"; "required": false; }; "barPadding": { "alias": "barPadding"; "required": false; }; "roundDomains": { "alias": "roundDomains"; "required": false; }; "roundEdges": { "alias": "roundEdges"; "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>;
87}