UNPKG

2.34 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { Series } from '../models/chart-data.model';
4import { BaseChartComponent } from '../common/base-chart.component';
5import { ViewDimensions, LegendPosition, ScaleType, LegendOptions } from '../common/types';
6export declare class BarHorizontalStackedComponent 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 barPadding: number;
31 roundDomains: boolean;
32 xScaleMax: number;
33 showDataLabel: boolean;
34 dataLabelFormatting: any;
35 noBarWhenZero: boolean;
36 activate: EventEmitter<any>;
37 deactivate: EventEmitter<any>;
38 tooltipTemplate: TemplateRef<any>;
39 dims: ViewDimensions;
40 groupDomain: string[];
41 innerDomain: string[];
42 valueDomain: [number, number];
43 xScale: any;
44 yScale: any;
45 transform: string;
46 colors: ColorHelper;
47 margin: number[];
48 xAxisHeight: number;
49 yAxisWidth: number;
50 legendOptions: LegendOptions;
51 dataLabelMaxWidth: any;
52 update(): void;
53 getGroupDomain(): string[];
54 getInnerDomain(): string[];
55 getValueDomain(): [number, number];
56 getYScale(): any;
57 getXScale(): any;
58 groupTransform(group: Series): string;
59 onClick(data: any, group?: Series): void;
60 trackBy(index: string, item: Series): any;
61 setColors(): void;
62 getLegendOptions(): LegendOptions;
63 updateYAxisWidth({ width }: {
64 width: number;
65 }): void;
66 updateXAxisHeight({ height }: {
67 height: number;
68 }): void;
69 onDataLabelMaxWidthChanged(event: any, groupIndex: number): void;
70 onActivate(event: any, group: Series, fromLegend?: boolean): void;
71 onDeactivate(event: any, group: Series, fromLegend?: boolean): void;
72}