UNPKG

4.81 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { BaseChartComponent } from '../common/base-chart.component';
4import { DataItem } from '../models/chart-data.model';
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 * as i0 from "@angular/core";
9export declare class BarVerticalComponent 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 gradient: boolean;
21 showGridLines: boolean;
22 activeEntries: any[];
23 schemeType: ScaleType;
24 trimXAxisTicks: boolean;
25 trimYAxisTicks: boolean;
26 rotateXAxisTicks: boolean;
27 maxXAxisTickLength: number;
28 maxYAxisTickLength: number;
29 xAxisTickFormatting: any;
30 yAxisTickFormatting: any;
31 xAxisTicks: any[];
32 yAxisTicks: any[];
33 barPadding: number;
34 roundDomains: boolean;
35 roundEdges: boolean;
36 yScaleMax: number;
37 yScaleMin: number;
38 showDataLabel: boolean;
39 dataLabelFormatting: any;
40 noBarWhenZero: boolean;
41 wrapTicks: boolean;
42 activate: EventEmitter<any>;
43 deactivate: EventEmitter<any>;
44 tooltipTemplate: TemplateRef<any>;
45 dims: ViewDimensions;
46 xScale: any;
47 yScale: any;
48 xDomain: any;
49 yDomain: any;
50 transform: string;
51 colors: ColorHelper;
52 margin: number[];
53 xAxisHeight: number;
54 yAxisWidth: number;
55 legendOptions: LegendOptions;
56 dataLabelMaxHeight: any;
57 update(): void;
58 getXScale(): any;
59 getYScale(): any;
60 getXDomain(): any[];
61 getYDomain(): [number, number];
62 onClick(data: DataItem | string): void;
63 setColors(): void;
64 getLegendOptions(): {
65 scaleType: any;
66 colors: any;
67 domain: any[];
68 title: any;
69 position: LegendPosition;
70 };
71 updateYAxisWidth({ width }: {
72 width: any;
73 }): void;
74 updateXAxisHeight({ height }: {
75 height: any;
76 }): void;
77 onDataLabelMaxHeightChanged(event: any): void;
78 onActivate(item: any, fromLegend?: boolean): void;
79 onDeactivate(item: any, fromLegend?: boolean): void;
80 static ɵfac: i0.ɵɵFactoryDeclaration<BarVerticalComponent, never>;
81 static ɵcmp: i0.ɵɵComponentDeclaration<BarVerticalComponent, "ngx-charts-bar-vertical", 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; }; "yScaleMax": { "alias": "yScaleMax"; "required": false; }; "yScaleMin": { "alias": "yScaleMin"; "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>;
82}