UNPKG

4.66 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { BaseChartComponent } from '../common/base-chart.component';
4import { LegendOptions, LegendPosition } from '../common/types/legend.model';
5import { ScaleType } from '../common/types/scale-type.enum';
6import { ViewDimensions } from '../common/types/view-dimension.interface';
7import * as i0 from "@angular/core";
8export declare class BarHorizontalComponent extends BaseChartComponent {
9 legend: boolean;
10 legendTitle: string;
11 legendPosition: LegendPosition;
12 xAxis: any;
13 yAxis: any;
14 showXAxisLabel: boolean;
15 showYAxisLabel: boolean;
16 xAxisLabel: string;
17 yAxisLabel: string;
18 tooltipDisabled: boolean;
19 gradient: boolean;
20 showGridLines: boolean;
21 activeEntries: any[];
22 schemeType: ScaleType;
23 trimXAxisTicks: boolean;
24 trimYAxisTicks: boolean;
25 rotateXAxisTicks: boolean;
26 maxXAxisTickLength: number;
27 maxYAxisTickLength: number;
28 xAxisTickFormatting: any;
29 yAxisTickFormatting: any;
30 xAxisTicks: any[];
31 yAxisTicks: any[];
32 barPadding: number;
33 roundDomains: boolean;
34 roundEdges: boolean;
35 xScaleMax: number;
36 xScaleMin: 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 yScale: any;
46 xScale: any;
47 xDomain: [number, number];
48 yDomain: string[];
49 transform: string;
50 colors: ColorHelper;
51 margin: number[];
52 xAxisHeight: number;
53 yAxisWidth: number;
54 legendOptions: LegendOptions;
55 dataLabelMaxWidth: any;
56 update(): void;
57 getXScale(): any;
58 getYScale(): any;
59 getXDomain(): [number, number];
60 getYDomain(): string[];
61 onClick(data: any): void;
62 setColors(): void;
63 getLegendOptions(): LegendOptions;
64 updateYAxisWidth({ width }: {
65 width: number;
66 }): void;
67 updateXAxisHeight({ height }: {
68 height: number;
69 }): void;
70 onDataLabelMaxWidthChanged(event: any): void;
71 onActivate(item: any, fromLegend?: boolean): void;
72 onDeactivate(item: any, fromLegend?: boolean): void;
73 static ɵfac: i0.ɵɵFactoryDeclaration<BarHorizontalComponent, never>;
74 static ɵcmp: i0.ɵɵComponentDeclaration<BarHorizontalComponent, "ngx-charts-bar-horizontal", 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; }; "roundEdges": { "alias": "roundEdges"; "required": false; }; "xScaleMax": { "alias": "xScaleMax"; "required": false; }; "xScaleMin": { "alias": "xScaleMin"; "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>;
75}