UNPKG

2.73 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';
9export declare class BarVertical2DComponent extends BaseChartComponent {
10 legend: boolean;
11 legendTitle: string;
12 legendPosition: LegendPosition;
13 xAxis: any;
14 yAxis: any;
15 showXAxisLabel: boolean;
16 showYAxisLabel: boolean;
17 xAxisLabel: string;
18 yAxisLabel: string;
19 tooltipDisabled: boolean;
20 scaleType: ScaleType;
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 groupPadding: number;
35 barPadding: number;
36 roundDomains: boolean;
37 roundEdges: boolean;
38 yScaleMax: number;
39 showDataLabel: boolean;
40 dataLabelFormatting: any;
41 noBarWhenZero: boolean;
42 activate: EventEmitter<any>;
43 deactivate: EventEmitter<any>;
44 tooltipTemplate: TemplateRef<any>;
45 dims: ViewDimensions;
46 groupDomain: string[];
47 innerDomain: string[];
48 valueDomain: [number, number];
49 groupScale: any;
50 innerScale: any;
51 valueScale: any;
52 transform: string;
53 colors: ColorHelper;
54 margin: number[];
55 xAxisHeight: number;
56 yAxisWidth: number;
57 legendOptions: LegendOptions;
58 dataLabelMaxHeight: any;
59 barOrientation: typeof BarOrientation;
60 update(): void;
61 onDataLabelMaxHeightChanged(event: any, groupIndex: number): void;
62 getGroupScale(): any;
63 getInnerScale(): any;
64 getValueScale(): any;
65 getGroupDomain(): string[];
66 getInnerDomain(): string[];
67 getValueDomain(): [number, number];
68 groupTransform(group: DataItem): string;
69 onClick(data: any, group?: DataItem): void;
70 trackBy: TrackByFunction<DataItem>;
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: DataItem, fromLegend?: boolean): void;
80 onDeactivate(event: any, group: DataItem, fromLegend?: boolean): void;
81}