1 | import { EventEmitter, OnChanges, OnInit, TemplateRef } from '@angular/core';
|
2 | import { ColorHelper } from './color.helper';
|
3 | import { DataItem, Series, StringOrNumberOrDate } from '../models/chart-data.model';
|
4 | import { PlacementTypes } from './tooltip/position';
|
5 | import { StyleTypes } from './tooltip/style.type';
|
6 | import { BarOrientation } from './types/bar-orientation.enum';
|
7 | import { Gradient } from './types/gradient.interface';
|
8 | import { ScaleType } from './types/scale-type.enum';
|
9 | import * as i0 from "@angular/core";
|
10 | export declare enum SeriesType {
|
11 | Standard = "standard",
|
12 | Stacked = "stacked"
|
13 | }
|
14 | export 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 | }
|
31 | export 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": { "alias": "data"; "required": false; }; "type": { "alias": "type"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "scaleType": { "alias": "scaleType"; "required": false; }; "visibleValue": { "alias": "visibleValue"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
|
80 | }
|