UNPKG

2.91 kBTypeScriptView Raw
1import { EventEmitter, OnChanges, OnInit, TemplateRef } from '@angular/core';
2import { ColorHelper } from './color.helper';
3import { DataItem, Series, StringOrNumberOrDate } from '../models/chart-data.model';
4import { PlacementTypes } from './tooltip/position';
5import { StyleTypes } from './tooltip/style.type';
6import { BarOrientation } from './types/bar-orientation.enum';
7import { Gradient } from './types/gradient.interface';
8import { ScaleType } from './types/scale-type.enum';
9import * as i0 from "@angular/core";
10export declare enum SeriesType {
11 Standard = "standard",
12 Stacked = "stacked"
13}
14export interface Circle {
15 classNames: string[];
16 value: string | number;
17 label: string;
18 data: DataItem;
19 cx: number;
20 cy: number;
21 radius: number;
22 height: number;
23 tooltipLabel: string;
24 color: string;
25 opacity: number;
26 seriesName: string;
27 gradientStops: Gradient[];
28 min: number;
29 max: number;
30}
31export declare class CircleSeriesComponent implements OnChanges, OnInit {
32 private platformId;
33 data: Series;
34 type: SeriesType;
35 xScale: any;
36 yScale: any;
37 colors: ColorHelper;
38 scaleType: ScaleType;
39 visibleValue: boolean;
40 activeEntries: any[];
41 tooltipDisabled: boolean;
42 tooltipTemplate: TemplateRef<any>;
43 select: EventEmitter<DataItem>;
44 activate: EventEmitter<{
45 name: StringOrNumberOrDate;
46 }>;
47 deactivate: EventEmitter<{
48 name: StringOrNumberOrDate;
49 }>;
50 areaPath: any;
51 circle: Circle;
52 barVisible: boolean;
53 gradientId: string;
54 gradientFill: string;
55 barOrientation: typeof BarOrientation;
56 placementTypes: typeof PlacementTypes;
57 styleTypes: typeof StyleTypes;
58 isSSR: boolean;
59 constructor(platformId: any);
60 ngOnInit(): void;
61 ngOnChanges(): void;
62 update(): void;
63 getActiveCircle(): Circle;
64 mapDataPointToCircle(d: any, i: number): Circle;
65 getTooltipText({ tooltipLabel, value, seriesName, min, max }: {
66 tooltipLabel: string;
67 value: any;
68 seriesName: string;
69 min: number;
70 max: number;
71 }): string;
72 getTooltipMinMaxText(min: number, max: number): string;
73 getGradientStops(color: string): Gradient[];
74 onClick(data: DataItem): void;
75 isActive(entry: any): boolean;
76 activateCircle(): void;
77 deactivateCircle(): void;
78 static ɵfac: i0.ɵɵFactoryDeclaration<CircleSeriesComponent, never>;
79 static ɵcmp: i0.ɵɵComponentDeclaration<CircleSeriesComponent, "g[ngx-charts-circle-series]", never, { "data": "data"; "type": "type"; "xScale": "xScale"; "yScale": "yScale"; "colors": "colors"; "scaleType": "scaleType"; "visibleValue": "visibleValue"; "activeEntries": "activeEntries"; "tooltipDisabled": "tooltipDisabled"; "tooltipTemplate": "tooltipTemplate"; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never>;
80}