UNPKG

2.47 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { DataItem } from '../models/chart-data.model';
4import { BaseChartComponent } from '../common/base-chart.component';
5import { ViewDimensions, LegendPosition, ScaleType, LegendOptions } from '../common/types';
6export declare class BarHorizontal2DComponent extends BaseChartComponent {
7 legend: boolean;
8 legendTitle: string;
9 legendPosition: LegendPosition;
10 xAxis: any;
11 yAxis: any;
12 showXAxisLabel: boolean;
13 showYAxisLabel: boolean;
14 xAxisLabel: string;
15 yAxisLabel: string;
16 tooltipDisabled: boolean;
17 gradient: boolean;
18 showGridLines: boolean;
19 activeEntries: any[];
20 schemeType: ScaleType;
21 trimXAxisTicks: boolean;
22 trimYAxisTicks: boolean;
23 rotateXAxisTicks: boolean;
24 maxXAxisTickLength: number;
25 maxYAxisTickLength: number;
26 xAxisTickFormatting: any;
27 yAxisTickFormatting: any;
28 xAxisTicks: any[];
29 yAxisTicks: any[];
30 groupPadding: number;
31 barPadding: number;
32 roundDomains: boolean;
33 roundEdges: boolean;
34 xScaleMax: number;
35 showDataLabel: boolean;
36 dataLabelFormatting: any;
37 noBarWhenZero: boolean;
38 activate: EventEmitter<any>;
39 deactivate: EventEmitter<any>;
40 tooltipTemplate: TemplateRef<any>;
41 dims: ViewDimensions;
42 groupDomain: string[];
43 innerDomain: string[];
44 valueDomain: [number, number];
45 groupScale: any;
46 innerScale: any;
47 valueScale: any;
48 transform: string;
49 colors: ColorHelper;
50 margin: number[];
51 xAxisHeight: number;
52 yAxisWidth: number;
53 legendOptions: LegendOptions;
54 dataLabelMaxWidth: any;
55 update(): void;
56 getGroupScale(): any;
57 getInnerScale(): any;
58 getValueScale(): any;
59 getGroupDomain(): string[];
60 getInnerDomain(): string[];
61 getValueDomain(): [number, number];
62 groupTransform(group: DataItem): string;
63 onClick(data: any, group?: DataItem): void;
64 trackBy(index: number, item: DataItem): string;
65 setColors(): void;
66 getLegendOptions(): LegendOptions;
67 updateYAxisWidth({ width }: {
68 width: number;
69 }): void;
70 updateXAxisHeight({ height }: {
71 height: number;
72 }): void;
73 onDataLabelMaxWidthChanged(event: any, groupIndex: number): void;
74 onActivate(event: any, group: DataItem, fromLegend?: boolean): void;
75 onDeactivate(event: any, group: DataItem, fromLegend?: boolean): void;
76}