UNPKG

2.88 kBTypeScriptView Raw
1import { EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
2import { ScaleLinear, ScaleBand } from 'd3-scale';
3import { IBoxModel, BoxChartSeries, DataItem } from '../models/chart-data.model';
4import { IVector2D } from '../models/coordinates.model';
5import { ColorHelper } from '../common/color.helper';
6import { StyleTypes } from '../common/tooltip/style.type';
7import { PlacementTypes } from '../common/tooltip/position';
8import { ViewDimensions } from '../common/types/view-dimension.interface';
9import * as i0 from "@angular/core";
10export declare class BoxSeriesComponent implements OnChanges {
11 dims: ViewDimensions;
12 series: BoxChartSeries;
13 xScale: ScaleBand<string>;
14 yScale: ScaleLinear<number, number>;
15 colors: ColorHelper;
16 animations: boolean;
17 strokeColor: string;
18 strokeWidth: number;
19 tooltipDisabled: boolean;
20 tooltipTemplate: TemplateRef<any>;
21 tooltipPlacement: PlacementTypes;
22 tooltipType: StyleTypes;
23 roundEdges: boolean;
24 gradient: boolean;
25 select: EventEmitter<IBoxModel>;
26 activate: EventEmitter<IBoxModel>;
27 deactivate: EventEmitter<IBoxModel>;
28 box: IBoxModel;
29 counts: DataItem[];
30 quartiles: [number, number, number];
31 whiskers: [number, number];
32 lineCoordinates: [IVector2D, IVector2D, IVector2D, IVector2D];
33 tooltipTitle: string;
34 ngOnChanges(changes: SimpleChanges): void;
35 onClick(data: IBoxModel): void;
36 update(): void;
37 getBoxQuantiles(inputData: Array<number | Date>): [number, number, number];
38 getLinesCoordinates(seriesName: string, whiskers: [number, number], quartiles: [number, number, number], barWidth: number): [IVector2D, IVector2D, IVector2D, IVector2D];
39 updateTooltipSettings(): void;
40 static ɵfac: i0.ɵɵFactoryDeclaration<BoxSeriesComponent, never>;
41 static ɵcmp: i0.ɵɵComponentDeclaration<BoxSeriesComponent, "g[ngx-charts-box-series]", never, { "dims": { "alias": "dims"; "required": false; }; "series": { "alias": "series"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; "strokeColor": { "alias": "strokeColor"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; "roundEdges": { "alias": "roundEdges"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
42}