@swimlane/ngx-charts
Version:
Declarative Charting Framework for Angular
75 lines (74 loc) • 3.54 kB
TypeScript
import { EventEmitter, TemplateRef } from '@angular/core';
import { ColorHelper } from '../common/color.helper';
import { BaseChartComponent } from '../common/base-chart.component';
import { LegendOptions, LegendPosition } from '../common/types/legend.model';
import { ScaleType } from '../common/types/scale-type.enum';
import { ViewDimensions } from '../common/types/view-dimension.interface';
import * as i0 from "@angular/core";
export declare class BarHorizontalComponent extends BaseChartComponent {
legend: boolean;
legendTitle: string;
legendPosition: LegendPosition;
xAxis: any;
yAxis: any;
showXAxisLabel: boolean;
showYAxisLabel: boolean;
xAxisLabel: string;
yAxisLabel: string;
tooltipDisabled: boolean;
gradient: boolean;
showGridLines: boolean;
activeEntries: any[];
schemeType: ScaleType;
trimXAxisTicks: boolean;
trimYAxisTicks: boolean;
rotateXAxisTicks: boolean;
maxXAxisTickLength: number;
maxYAxisTickLength: number;
xAxisTickFormatting: any;
yAxisTickFormatting: any;
xAxisTicks: any[];
yAxisTicks: any[];
barPadding: number;
roundDomains: boolean;
roundEdges: boolean;
xScaleMax: number;
xScaleMin: number;
showDataLabel: boolean;
dataLabelFormatting: any;
noBarWhenZero: boolean;
activate: EventEmitter<any>;
deactivate: EventEmitter<any>;
tooltipTemplate: TemplateRef<any>;
dims: ViewDimensions;
yScale: any;
xScale: any;
xDomain: [number, number];
yDomain: string[];
transform: string;
colors: ColorHelper;
margin: number[];
xAxisHeight: number;
yAxisWidth: number;
legendOptions: LegendOptions;
dataLabelMaxWidth: any;
update(): void;
getXScale(): any;
getYScale(): any;
getXDomain(): [number, number];
getYDomain(): string[];
onClick(data: any): void;
setColors(): void;
getLegendOptions(): LegendOptions;
updateYAxisWidth({ width }: {
width: number;
}): void;
updateXAxisHeight({ height }: {
height: number;
}): void;
onDataLabelMaxWidthChanged(event: any): void;
onActivate(item: any, fromLegend?: boolean): void;
onDeactivate(item: any, fromLegend?: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<BarHorizontalComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<BarHorizontalComponent, "ngx-charts-bar-horizontal", never, { "legend": "legend"; "legendTitle": "legendTitle"; "legendPosition": "legendPosition"; "xAxis": "xAxis"; "yAxis": "yAxis"; "showXAxisLabel": "showXAxisLabel"; "showYAxisLabel": "showYAxisLabel"; "xAxisLabel": "xAxisLabel"; "yAxisLabel": "yAxisLabel"; "tooltipDisabled": "tooltipDisabled"; "gradient": "gradient"; "showGridLines": "showGridLines"; "activeEntries": "activeEntries"; "schemeType": "schemeType"; "trimXAxisTicks": "trimXAxisTicks"; "trimYAxisTicks": "trimYAxisTicks"; "rotateXAxisTicks": "rotateXAxisTicks"; "maxXAxisTickLength": "maxXAxisTickLength"; "maxYAxisTickLength": "maxYAxisTickLength"; "xAxisTickFormatting": "xAxisTickFormatting"; "yAxisTickFormatting": "yAxisTickFormatting"; "xAxisTicks": "xAxisTicks"; "yAxisTicks": "yAxisTicks"; "barPadding": "barPadding"; "roundDomains": "roundDomains"; "roundEdges": "roundEdges"; "xScaleMax": "xScaleMax"; "xScaleMin": "xScaleMin"; "showDataLabel": "showDataLabel"; "dataLabelFormatting": "dataLabelFormatting"; "noBarWhenZero": "noBarWhenZero"; }, { "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate"], never>;
}