@swimlane/ngx-charts 22.0.0 → 23.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/fesm2022/swimlane-ngx-charts.mjs +531 -370
  3. package/fesm2022/swimlane-ngx-charts.mjs.map +1 -1
  4. package/index.d.ts +3914 -3
  5. package/package.json +8 -8
  6. package/lib/area-chart/area-chart-normalized.component.d.ts +0 -93
  7. package/lib/area-chart/area-chart-stacked.component.d.ts +0 -96
  8. package/lib/area-chart/area-chart.component.d.ts +0 -100
  9. package/lib/area-chart/area-chart.module.d.ts +0 -11
  10. package/lib/area-chart/area-series.component.d.ts +0 -33
  11. package/lib/bar-chart/bar-chart.module.d.ts +0 -19
  12. package/lib/bar-chart/bar-horizontal-2d.component.d.ts +0 -87
  13. package/lib/bar-chart/bar-horizontal-normalized.component.d.ts +0 -76
  14. package/lib/bar-chart/bar-horizontal-stacked.component.d.ts +0 -82
  15. package/lib/bar-chart/bar-horizontal.component.d.ts +0 -76
  16. package/lib/bar-chart/bar-label.component.d.ts +0 -28
  17. package/lib/bar-chart/bar-vertical-2d.component.d.ts +0 -87
  18. package/lib/bar-chart/bar-vertical-normalized.component.d.ts +0 -76
  19. package/lib/bar-chart/bar-vertical-stacked.component.d.ts +0 -84
  20. package/lib/bar-chart/bar-vertical.component.d.ts +0 -83
  21. package/lib/bar-chart/bar.component.d.ts +0 -48
  22. package/lib/bar-chart/series-horizontal.component.d.ts +0 -58
  23. package/lib/bar-chart/series-vertical.component.d.ts +0 -59
  24. package/lib/bar-chart/types/bar-chart-type.enum.d.ts +0 -5
  25. package/lib/bar-chart/types/bar.model.d.ts +0 -17
  26. package/lib/bar-chart/types/d0-type.enum.d.ts +0 -4
  27. package/lib/box-chart/box-chart.component.d.ts +0 -78
  28. package/lib/box-chart/box-chart.module.d.ts +0 -10
  29. package/lib/box-chart/box-series.component.d.ts +0 -42
  30. package/lib/box-chart/box.component.d.ts +0 -78
  31. package/lib/bubble-chart/bubble-chart.component.d.ts +0 -92
  32. package/lib/bubble-chart/bubble-chart.module.d.ts +0 -9
  33. package/lib/bubble-chart/bubble-chart.utils.d.ts +0 -4
  34. package/lib/bubble-chart/bubble-series.component.d.ts +0 -45
  35. package/lib/common/area.component.d.ts +0 -34
  36. package/lib/common/axes/axes.module.d.ts +0 -12
  37. package/lib/common/axes/axis-label.component.d.ts +0 -23
  38. package/lib/common/axes/ticks.helper.d.ts +0 -2
  39. package/lib/common/axes/x-axis-ticks.component.d.ts +0 -53
  40. package/lib/common/axes/x-axis.component.d.ts +0 -40
  41. package/lib/common/axes/y-axis-ticks.component.d.ts +0 -61
  42. package/lib/common/axes/y-axis.component.d.ts +0 -42
  43. package/lib/common/base-chart.component.d.ts +0 -45
  44. package/lib/common/chart-common.module.d.ts +0 -26
  45. package/lib/common/charts/chart.component.d.ts +0 -28
  46. package/lib/common/circle-series.component.d.ts +0 -80
  47. package/lib/common/circle.component.d.ts +0 -22
  48. package/lib/common/color.helper.d.ts +0 -15
  49. package/lib/common/constants/font-widths.d.ts +0 -88
  50. package/lib/common/count/count.directive.d.ts +0 -38
  51. package/lib/common/count/count.helper.d.ts +0 -10
  52. package/lib/common/domain.helper.d.ts +0 -18
  53. package/lib/common/grid-layout.helper.d.ts +0 -19
  54. package/lib/common/grid-panel-series.component.d.ts +0 -30
  55. package/lib/common/grid-panel.component.d.ts +0 -9
  56. package/lib/common/label.helper.d.ts +0 -12
  57. package/lib/common/legend/advanced-legend.component.d.ts +0 -38
  58. package/lib/common/legend/legend-entry.component.d.ts +0 -21
  59. package/lib/common/legend/legend.component.d.ts +0 -40
  60. package/lib/common/legend/scale-legend.component.d.ts +0 -19
  61. package/lib/common/shape.helper.d.ts +0 -7
  62. package/lib/common/svg-linear-gradient.component.d.ts +0 -16
  63. package/lib/common/svg-radial-gradient.component.d.ts +0 -19
  64. package/lib/common/tick-format.helper.d.ts +0 -1
  65. package/lib/common/timeline/timeline.component.d.ts +0 -36
  66. package/lib/common/tooltip/injection-registery.service.d.ts +0 -22
  67. package/lib/common/tooltip/injection.service.d.ts +0 -74
  68. package/lib/common/tooltip/position/index.d.ts +0 -2
  69. package/lib/common/tooltip/position/placement-type.enum.d.ts +0 -7
  70. package/lib/common/tooltip/position/position.d.ts +0 -56
  71. package/lib/common/tooltip/show.type.d.ts +0 -5
  72. package/lib/common/tooltip/style.type.d.ts +0 -4
  73. package/lib/common/tooltip/tooltip.component.d.ts +0 -30
  74. package/lib/common/tooltip/tooltip.directive.d.ts +0 -50
  75. package/lib/common/tooltip/tooltip.module.d.ts +0 -9
  76. package/lib/common/tooltip/tooltip.service.d.ts +0 -10
  77. package/lib/common/tooltip-area.component.d.ts +0 -47
  78. package/lib/common/trim-label.helper.d.ts +0 -1
  79. package/lib/common/types/bar-orientation.enum.d.ts +0 -4
  80. package/lib/common/types/gradient.interface.d.ts +0 -6
  81. package/lib/common/types/legend.model.d.ts +0 -16
  82. package/lib/common/types/orientation.enum.d.ts +0 -6
  83. package/lib/common/types/scale-type.enum.d.ts +0 -6
  84. package/lib/common/types/text-anchor.enum.d.ts +0 -5
  85. package/lib/common/types/view-dimension.interface.d.ts +0 -6
  86. package/lib/common/view-dimensions.helper.d.ts +0 -18
  87. package/lib/events.d.ts +0 -5
  88. package/lib/gauge/gauge-arc.component.d.ts +0 -31
  89. package/lib/gauge/gauge-axis.component.d.ts +0 -37
  90. package/lib/gauge/gauge.component.d.ts +0 -70
  91. package/lib/gauge/gauge.module.d.ts +0 -14
  92. package/lib/gauge/linear-gauge.component.d.ts +0 -49
  93. package/lib/gauge/percent-gauge/percent-gauge.component.d.ts +0 -47
  94. package/lib/heat-map/heat-map-cell-series.component.d.ts +0 -48
  95. package/lib/heat-map/heat-map-cell.component.d.ts +0 -34
  96. package/lib/heat-map/heat-map.component.d.ts +0 -94
  97. package/lib/heat-map/heat-map.module.d.ts +0 -10
  98. package/lib/line-chart/line-chart.component.d.ts +0 -104
  99. package/lib/line-chart/line-chart.module.d.ts +0 -10
  100. package/lib/line-chart/line-series.component.d.ts +0 -40
  101. package/lib/line-chart/line.component.d.ts +0 -21
  102. package/lib/models/chart-data.model.d.ts +0 -93
  103. package/lib/models/coordinates.model.d.ts +0 -8
  104. package/lib/ngx-charts.module.d.ts +0 -20
  105. package/lib/number-card/card-series.component.d.ts +0 -36
  106. package/lib/number-card/card.component.d.ts +0 -52
  107. package/lib/number-card/number-card.component.d.ts +0 -29
  108. package/lib/number-card/number-card.module.d.ts +0 -10
  109. package/lib/pie-chart/advanced-pie-chart.component.d.ts +0 -36
  110. package/lib/pie-chart/pie-arc.component.d.ts +0 -44
  111. package/lib/pie-chart/pie-chart.component.d.ts +0 -48
  112. package/lib/pie-chart/pie-chart.module.d.ts +0 -14
  113. package/lib/pie-chart/pie-grid-series.component.d.ts +0 -35
  114. package/lib/pie-chart/pie-grid.component.d.ts +0 -42
  115. package/lib/pie-chart/pie-label.component.d.ts +0 -39
  116. package/lib/pie-chart/pie-series.component.d.ts +0 -50
  117. package/lib/polar-chart/polar-chart.component.d.ts +0 -105
  118. package/lib/polar-chart/polar-chart.module.d.ts +0 -11
  119. package/lib/polar-chart/polar-series.component.d.ts +0 -64
  120. package/lib/polyfills.d.ts +0 -1
  121. package/lib/sankey/sankey.component.d.ts +0 -59
  122. package/lib/sankey/sankey.module.d.ts +0 -8
  123. package/lib/tree-map/tree-map-cell-series.component.d.ts +0 -43
  124. package/lib/tree-map/tree-map-cell.component.d.ts +0 -39
  125. package/lib/tree-map/tree-map.component.d.ts +0 -29
  126. package/lib/tree-map/tree-map.module.d.ts +0 -10
  127. package/lib/utils/calculate-width.d.ts +0 -1
  128. package/lib/utils/color-sets.d.ts +0 -8
  129. package/lib/utils/color-utils.d.ts +0 -25
  130. package/lib/utils/id.d.ts +0 -11
  131. package/lib/utils/sort.d.ts +0 -3
  132. package/lib/utils/throttle.d.ts +0 -18
  133. package/lib/utils/types.d.ts +0 -2
  134. package/lib/utils/visibility-observer.d.ts +0 -18
  135. package/public-api.d.ts +0 -118
@@ -1,61 +0,0 @@
1
- import { OnChanges, ElementRef, EventEmitter, AfterViewInit, SimpleChanges } from '@angular/core';
2
- import { Orientation } from '../types/orientation.enum';
3
- import { TextAnchor } from '../types/text-anchor.enum';
4
- import * as i0 from "@angular/core";
5
- export declare class YAxisTicksComponent implements OnChanges, AfterViewInit {
6
- private platformId;
7
- scale: any;
8
- orient: Orientation;
9
- tickArguments: number[];
10
- tickValues: string[] | number[];
11
- tickStroke: string;
12
- trimTicks: boolean;
13
- maxTickLength: number;
14
- tickFormatting: any;
15
- showGridLines: boolean;
16
- gridLineWidth: number;
17
- height: number;
18
- referenceLines: any;
19
- showRefLabels: boolean;
20
- showRefLines: boolean;
21
- wrapTicks: boolean;
22
- dimensionsChanged: EventEmitter<any>;
23
- innerTickSize: number;
24
- tickPadding: number;
25
- tickSpacing: number;
26
- verticalSpacing: number;
27
- textAnchor: TextAnchor;
28
- dy: string;
29
- x1: number;
30
- x2: number;
31
- y1: number;
32
- y2: number;
33
- adjustedScale: any;
34
- transform: (o: any) => string;
35
- tickFormat: (o: any) => string;
36
- ticks: any[];
37
- width: number;
38
- outerTickSize: number;
39
- rotateLabels: boolean;
40
- refMax: number;
41
- refMin: number;
42
- referenceLineLength: number;
43
- referenceAreaPath: string;
44
- readonly Orientation: typeof Orientation;
45
- ticksElement: ElementRef;
46
- constructor(platformId: any);
47
- ngOnChanges(changes: SimpleChanges): void;
48
- ngAfterViewInit(): void;
49
- updateDims(): void;
50
- update(): void;
51
- setReferencelines(): void;
52
- getTicks(): any[];
53
- getMaxTicks(tickHeight: number): number;
54
- tickTransform(tick: number): string;
55
- gridLineTransform(): string;
56
- tickTrim(label: string): string;
57
- getApproximateAxisWidth(): number;
58
- tickChunks(label: string): string[];
59
- static ɵfac: i0.ɵɵFactoryDeclaration<YAxisTicksComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<YAxisTicksComponent, "g[ngx-charts-y-axis-ticks]", never, { "scale": { "alias": "scale"; "required": false; }; "orient": { "alias": "orient"; "required": false; }; "tickArguments": { "alias": "tickArguments"; "required": false; }; "tickValues": { "alias": "tickValues"; "required": false; }; "tickStroke": { "alias": "tickStroke"; "required": false; }; "trimTicks": { "alias": "trimTicks"; "required": false; }; "maxTickLength": { "alias": "maxTickLength"; "required": false; }; "tickFormatting": { "alias": "tickFormatting"; "required": false; }; "showGridLines": { "alias": "showGridLines"; "required": false; }; "gridLineWidth": { "alias": "gridLineWidth"; "required": false; }; "height": { "alias": "height"; "required": false; }; "referenceLines": { "alias": "referenceLines"; "required": false; }; "showRefLabels": { "alias": "showRefLabels"; "required": false; }; "showRefLines": { "alias": "showRefLines"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "dimensionsChanged": "dimensionsChanged"; }, never, never, false, never>;
61
- }
@@ -1,42 +0,0 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { YAxisTicksComponent } from './y-axis-ticks.component';
3
- import { Orientation } from '../types/orientation.enum';
4
- import { ViewDimensions } from '../types/view-dimension.interface';
5
- import * as i0 from "@angular/core";
6
- export declare class YAxisComponent implements OnChanges {
7
- yScale: any;
8
- dims: ViewDimensions;
9
- trimTicks: boolean;
10
- maxTickLength: number;
11
- tickFormatting: any;
12
- ticks: any[];
13
- showGridLines: boolean;
14
- showLabel: boolean;
15
- labelText: string;
16
- yAxisTickCount: any;
17
- yOrient: Orientation;
18
- referenceLines: any;
19
- showRefLines: boolean;
20
- showRefLabels: boolean;
21
- yAxisOffset: number;
22
- wrapTicks: boolean;
23
- dimensionsChanged: EventEmitter<any>;
24
- yAxisClassName: string;
25
- tickArguments: number[];
26
- offset: number;
27
- transform: string;
28
- labelOffset: number;
29
- fill: string;
30
- stroke: string;
31
- tickStroke: string;
32
- strokeWidth: number;
33
- padding: number;
34
- ticksComponent: YAxisTicksComponent;
35
- ngOnChanges(changes: SimpleChanges): void;
36
- update(): void;
37
- emitTicksWidth({ width }: {
38
- width: any;
39
- }): void;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<YAxisComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<YAxisComponent, "g[ngx-charts-y-axis]", never, { "yScale": { "alias": "yScale"; "required": false; }; "dims": { "alias": "dims"; "required": false; }; "trimTicks": { "alias": "trimTicks"; "required": false; }; "maxTickLength": { "alias": "maxTickLength"; "required": false; }; "tickFormatting": { "alias": "tickFormatting"; "required": false; }; "ticks": { "alias": "ticks"; "required": false; }; "showGridLines": { "alias": "showGridLines"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "yAxisTickCount": { "alias": "yAxisTickCount"; "required": false; }; "yOrient": { "alias": "yOrient"; "required": false; }; "referenceLines": { "alias": "referenceLines"; "required": false; }; "showRefLines": { "alias": "showRefLines"; "required": false; }; "showRefLabels": { "alias": "showRefLabels"; "required": false; }; "yAxisOffset": { "alias": "yAxisOffset"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "dimensionsChanged": "dimensionsChanged"; }, never, never, false, never>;
42
- }
@@ -1,45 +0,0 @@
1
- import { ElementRef, NgZone, ChangeDetectorRef, EventEmitter, AfterViewInit, OnDestroy, OnChanges, SimpleChanges, OnInit } from '@angular/core';
2
- import { VisibilityObserver } from '../utils/visibility-observer';
3
- import { Color } from '../utils/color-sets';
4
- import { ScaleType } from './types/scale-type.enum';
5
- import { ViewDimensions } from './types/view-dimension.interface';
6
- import * as i0 from "@angular/core";
7
- export declare class BaseChartComponent implements OnChanges, AfterViewInit, OnDestroy, OnInit {
8
- protected chartElement: ElementRef;
9
- protected zone: NgZone;
10
- protected cd: ChangeDetectorRef;
11
- platformId: any;
12
- results: any;
13
- view: [number, number];
14
- scheme: string | Color;
15
- schemeType: ScaleType;
16
- customColors: any;
17
- animations: boolean;
18
- select: EventEmitter<any>;
19
- width: number;
20
- height: number;
21
- resizeSubscription: any;
22
- visibilityObserver: VisibilityObserver;
23
- constructor(chartElement: ElementRef, zone: NgZone, cd: ChangeDetectorRef, platformId: any);
24
- ngOnInit(): void;
25
- ngAfterViewInit(): void;
26
- ngOnDestroy(): void;
27
- ngOnChanges(changes: SimpleChanges): void;
28
- update(): void;
29
- getContainerDims(): ViewDimensions;
30
- /**
31
- * Converts all date objects that appear as name
32
- * into formatted date strings
33
- */
34
- formatDates(): void;
35
- protected unbindEvents(): void;
36
- private bindWindowResizeEvent;
37
- /**
38
- * Clones the data into a new object
39
- *
40
- * @memberOf BaseChart
41
- */
42
- private cloneData;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseChartComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<BaseChartComponent, "base-chart", never, { "results": { "alias": "results"; "required": false; }; "view": { "alias": "view"; "required": false; }; "scheme": { "alias": "scheme"; "required": false; }; "schemeType": { "alias": "schemeType"; "required": false; }; "customColors": { "alias": "customColors"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
45
- }
@@ -1,26 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./area.component";
3
- import * as i2 from "./base-chart.component";
4
- import * as i3 from "./count/count.directive";
5
- import * as i4 from "./tooltip-area.component";
6
- import * as i5 from "./charts/chart.component";
7
- import * as i6 from "./legend/legend.component";
8
- import * as i7 from "./legend/legend-entry.component";
9
- import * as i8 from "./legend/scale-legend.component";
10
- import * as i9 from "./circle.component";
11
- import * as i10 from "./circle-series.component";
12
- import * as i11 from "./grid-panel.component";
13
- import * as i12 from "./grid-panel-series.component";
14
- import * as i13 from "./svg-linear-gradient.component";
15
- import * as i14 from "./svg-radial-gradient.component";
16
- import * as i15 from "./timeline/timeline.component";
17
- import * as i16 from "./legend/advanced-legend.component";
18
- import * as i17 from "../utils/visibility-observer";
19
- import * as i18 from "@angular/common";
20
- import * as i19 from "./axes/axes.module";
21
- import * as i20 from "./tooltip/tooltip.module";
22
- export declare class ChartCommonModule {
23
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartCommonModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<ChartCommonModule, [typeof i1.AreaComponent, typeof i2.BaseChartComponent, typeof i3.CountUpDirective, typeof i4.TooltipArea, typeof i5.ChartComponent, typeof i6.LegendComponent, typeof i7.LegendEntryComponent, typeof i8.ScaleLegendComponent, typeof i9.CircleComponent, typeof i10.CircleSeriesComponent, typeof i11.GridPanelComponent, typeof i12.GridPanelSeriesComponent, typeof i13.SvgLinearGradientComponent, typeof i14.SvgRadialGradientComponent, typeof i15.Timeline, typeof i16.AdvancedLegendComponent, typeof i17.VisibilityObserver], [typeof i18.CommonModule, typeof i19.AxesModule, typeof i20.TooltipModule], [typeof i18.CommonModule, typeof i19.AxesModule, typeof i20.TooltipModule, typeof i1.AreaComponent, typeof i2.BaseChartComponent, typeof i3.CountUpDirective, typeof i4.TooltipArea, typeof i5.ChartComponent, typeof i6.LegendComponent, typeof i7.LegendEntryComponent, typeof i8.ScaleLegendComponent, typeof i9.CircleComponent, typeof i10.CircleSeriesComponent, typeof i11.GridPanelComponent, typeof i12.GridPanelSeriesComponent, typeof i13.SvgLinearGradientComponent, typeof i14.SvgRadialGradientComponent, typeof i15.Timeline, typeof i16.AdvancedLegendComponent, typeof i17.VisibilityObserver]>;
25
- static ɵinj: i0.ɵɵInjectorDeclaration<ChartCommonModule>;
26
- }
@@ -1,28 +0,0 @@
1
- import { OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
2
- import { LegendOptions, LegendType, LegendPosition } from '../types/legend.model';
3
- import * as i0 from "@angular/core";
4
- export declare class ChartComponent implements OnChanges {
5
- view: [number, number];
6
- showLegend: boolean;
7
- legendOptions: LegendOptions;
8
- legendType: LegendType;
9
- activeEntries: any[];
10
- animations: boolean;
11
- legendLabelClick: EventEmitter<string>;
12
- legendLabelActivate: EventEmitter<{
13
- name: string;
14
- }>;
15
- legendLabelDeactivate: EventEmitter<{
16
- name: string;
17
- }>;
18
- chartWidth: number;
19
- title: string;
20
- legendWidth: number;
21
- readonly LegendPosition: typeof LegendPosition;
22
- readonly LegendType: typeof LegendType;
23
- ngOnChanges(changes: SimpleChanges): void;
24
- update(): void;
25
- getLegendType(): LegendType;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "ngx-charts-chart", never, { "view": { "alias": "view"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; "legendOptions": { "alias": "legendOptions"; "required": false; }; "legendType": { "alias": "legendType"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; }, { "legendLabelClick": "legendLabelClick"; "legendLabelActivate": "legendLabelActivate"; "legendLabelDeactivate": "legendLabelDeactivate"; }, never, ["*"], false, never>;
28
- }
@@ -1,80 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
1
- import { SimpleChanges, EventEmitter, OnChanges } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CircleComponent implements OnChanges {
4
- cx: number;
5
- cy: number;
6
- r: number;
7
- fill: string;
8
- stroke: string;
9
- data: number | string;
10
- classNames: string[] | string;
11
- circleOpacity: number;
12
- pointerEvents: string;
13
- select: EventEmitter<number | string>;
14
- activate: EventEmitter<number | string>;
15
- deactivate: EventEmitter<number | string>;
16
- onClick(): void;
17
- onMouseEnter(): void;
18
- onMouseLeave(): void;
19
- ngOnChanges(changes: SimpleChanges): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<CircleComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<CircleComponent, "g[ngx-charts-circle]", never, { "cx": { "alias": "cx"; "required": false; }; "cy": { "alias": "cy"; "required": false; }; "r": { "alias": "r"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "stroke": { "alias": "stroke"; "required": false; }; "data": { "alias": "data"; "required": false; }; "classNames": { "alias": "classNames"; "required": false; }; "circleOpacity": { "alias": "circleOpacity"; "required": false; }; "pointerEvents": { "alias": "pointerEvents"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
22
- }
@@ -1,15 +0,0 @@
1
- import { Color } from '../utils/color-sets';
2
- import { StringOrNumberOrDate } from '../models/chart-data.model';
3
- import { ScaleType } from './types/scale-type.enum';
4
- import { Gradient } from './types/gradient.interface';
5
- export declare class ColorHelper {
6
- scale: any;
7
- scaleType: ScaleType;
8
- colorDomain: string[];
9
- domain: number[] | string[];
10
- customColors: any;
11
- constructor(scheme: string | Color, type: ScaleType, domain: number[] | string[], customColors?: any);
12
- generateColorScheme(scheme: string | Color, type: ScaleType, domain: number[] | string[]): any;
13
- getColor(value: StringOrNumberOrDate): string;
14
- getLinearGradientStops(value: number | string, start?: number | string): Gradient[];
15
- }
@@ -1,88 +0,0 @@
1
- export declare const VERDANA_FONT_WIDTHS_16_PX: {
2
- '0': number;
3
- '1': number;
4
- '2': number;
5
- '3': number;
6
- '4': number;
7
- '5': number;
8
- '6': number;
9
- '7': number;
10
- '8': number;
11
- '9': number;
12
- A: number;
13
- B: number;
14
- C: number;
15
- D: number;
16
- E: number;
17
- F: number;
18
- G: number;
19
- H: number;
20
- I: number;
21
- J: number;
22
- K: number;
23
- L: number;
24
- M: number;
25
- N: number;
26
- O: number;
27
- P: number;
28
- Q: number;
29
- R: number;
30
- S: number;
31
- T: number;
32
- U: number;
33
- V: number;
34
- W: number;
35
- X: number;
36
- Y: number;
37
- Z: number;
38
- a: number;
39
- b: number;
40
- c: number;
41
- d: number;
42
- e: number;
43
- f: number;
44
- g: number;
45
- h: number;
46
- i: number;
47
- j: number;
48
- k: number;
49
- l: number;
50
- m: number;
51
- n: number;
52
- o: number;
53
- p: number;
54
- q: number;
55
- r: number;
56
- s: number;
57
- t: number;
58
- u: number;
59
- v: number;
60
- w: number;
61
- x: number;
62
- y: number;
63
- z: number;
64
- '!': number;
65
- '@': number;
66
- '#': number;
67
- $: number;
68
- '%': number;
69
- '^': number;
70
- '&': number;
71
- '*': number;
72
- '(': number;
73
- ')': number;
74
- _: number;
75
- '-': number;
76
- '+': number;
77
- '=': number;
78
- ',': number;
79
- '.': number;
80
- '/': number;
81
- "'": number;
82
- ':': number;
83
- '|': number;
84
- '?': number;
85
- ';': number;
86
- '<': number;
87
- '>': number;
88
- };
@@ -1,38 +0,0 @@
1
- import { EventEmitter, ChangeDetectorRef, OnDestroy, ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Count up component
5
- *
6
- * Loosely inspired by:
7
- * - https://github.com/izupet/angular2-counto
8
- * - https://inorganik.github.io/countUp.js/
9
- *
10
- * @export
11
- */
12
- export declare class CountUpDirective implements OnDestroy {
13
- private cd;
14
- countDuration: number;
15
- countPrefix: string;
16
- countSuffix: string;
17
- valueFormatting: any;
18
- set countDecimals(val: number);
19
- get countDecimals(): number;
20
- set countTo(val: any);
21
- get countTo(): any;
22
- set countFrom(val: any);
23
- get countFrom(): any;
24
- countChange: EventEmitter<any>;
25
- countFinish: EventEmitter<any>;
26
- nativeElement: any;
27
- value: any;
28
- formattedValue: string;
29
- private animationReq;
30
- private _countDecimals;
31
- private _countTo;
32
- private _countFrom;
33
- constructor(cd: ChangeDetectorRef, element: ElementRef);
34
- ngOnDestroy(): void;
35
- start(): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<CountUpDirective, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<CountUpDirective, "[ngx-charts-count-up]", never, { "countDuration": { "alias": "countDuration"; "required": false; }; "countPrefix": { "alias": "countPrefix"; "required": false; }; "countSuffix": { "alias": "countSuffix"; "required": false; }; "valueFormatting": { "alias": "valueFormatting"; "required": false; }; "countDecimals": { "alias": "countDecimals"; "required": false; }; "countTo": { "alias": "countTo"; "required": false; }; "countFrom": { "alias": "countFrom"; "required": false; }; }, { "countChange": "countChange"; "countFinish": "countFinish"; }, never, never, false, never>;
38
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Counts from a number to the end incrementally.
3
- */
4
- export declare function count(countFrom: number, countTo: number, countDecimals: number, countDuration: number, callback: any): number;
5
- /**
6
- * Determine decimals places
7
- *
8
- * @export
9
- */
10
- export declare function decimalChecker(countTo: number): number;
@@ -1,18 +0,0 @@
1
- import { ScaleType } from './types/scale-type.enum';
2
- /**
3
- * Based on the data, return an array with unique values.
4
- *
5
- * @export
6
- * @returns array
7
- */
8
- export declare function getUniqueXDomainValues(results: any[]): any[];
9
- /**
10
- * Get the scaleType of enumerable of values.
11
- * @returns 'time', 'linear' or 'ordinal'
12
- */
13
- export declare function getScaleType(values: any[], checkDateType?: boolean): ScaleType;
14
- export declare function getXDomainArray(values: Array<string | number | Date>, xScaleMin?: number, xScaleMax?: number): {
15
- domain: any[];
16
- xSet: any[];
17
- scaleType: string;
18
- };
@@ -1,19 +0,0 @@
1
- import { ViewDimensions } from './types/view-dimension.interface';
2
- import { StringOrNumberOrDate } from '../models/chart-data.model';
3
- export interface GridItem {
4
- data: GridData;
5
- height: number;
6
- width: number;
7
- x: number;
8
- y: number;
9
- }
10
- export interface GridData {
11
- extra?: any;
12
- label: string;
13
- name: StringOrNumberOrDate;
14
- percent: number;
15
- total: number;
16
- value: number;
17
- }
18
- export declare function gridSize(dims: ViewDimensions, len: number, minWidth: number): [number, number];
19
- export declare function gridLayout(dims: ViewDimensions, data: GridData[], minWidth: number, designatedTotal: number): GridItem[];
@@ -1,30 +0,0 @@
1
- import { SimpleChanges, OnChanges } from '@angular/core';
2
- import { BarOrientation } from './types/bar-orientation.enum';
3
- import { ViewDimensions } from './types/view-dimension.interface';
4
- import * as i0 from "@angular/core";
5
- interface GridPanel {
6
- class: ClassEnum;
7
- height: number;
8
- name: string;
9
- width: number;
10
- x: number;
11
- y: number;
12
- }
13
- declare enum ClassEnum {
14
- Odd = "odd",
15
- Even = "even"
16
- }
17
- export declare class GridPanelSeriesComponent implements OnChanges {
18
- gridPanels: GridPanel[];
19
- data: any[];
20
- dims: ViewDimensions;
21
- xScale: any;
22
- yScale: any;
23
- orient: BarOrientation;
24
- ngOnChanges(changes: SimpleChanges): void;
25
- update(): void;
26
- getGridPanels(): GridPanel[];
27
- static ɵfac: i0.ɵɵFactoryDeclaration<GridPanelSeriesComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<GridPanelSeriesComponent, "g[ngx-charts-grid-panel-series]", never, { "data": { "alias": "data"; "required": false; }; "dims": { "alias": "dims"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "orient": { "alias": "orient"; "required": false; }; }, {}, never, never, false, never>;
29
- }
30
- export {};
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class GridPanelComponent {
3
- width: number;
4
- height: number;
5
- x: number;
6
- y: number;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<GridPanelComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<GridPanelComponent, "g[ngx-charts-grid-panel]", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; }, {}, never, never, false, never>;
9
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * Formats a label given a date, number or string.
3
- *
4
- * @export
5
- */
6
- export declare function formatLabel(label: any): string;
7
- /**
8
- * Escapes a label.
9
- *
10
- * @export
11
- */
12
- export declare function escapeLabel(label: any): string;
@@ -1,38 +0,0 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { DataItem, StringOrNumberOrDate } from '../../models/chart-data.model';
3
- import { ColorHelper } from '../color.helper';
4
- import * as i0 from "@angular/core";
5
- export interface AdvancedLegendItem {
6
- value: StringOrNumberOrDate;
7
- _value: StringOrNumberOrDate;
8
- color: string;
9
- data: DataItem;
10
- label: string;
11
- displayLabel: string;
12
- originalLabel: string;
13
- percentage: string;
14
- }
15
- export declare class AdvancedLegendComponent implements OnChanges {
16
- width: number;
17
- data: DataItem[];
18
- colors: ColorHelper;
19
- label: string;
20
- animations: boolean;
21
- select: EventEmitter<DataItem>;
22
- activate: EventEmitter<DataItem>;
23
- deactivate: EventEmitter<DataItem>;
24
- legendItems: AdvancedLegendItem[];
25
- total: number;
26
- roundedTotal: number;
27
- valueFormatting: (value: StringOrNumberOrDate) => any;
28
- labelFormatting: (value: string) => string;
29
- percentageFormatting: (value: number) => number;
30
- defaultValueFormatting: (value: StringOrNumberOrDate) => string;
31
- ngOnChanges(changes: SimpleChanges): void;
32
- getTotal(): number;
33
- update(): void;
34
- getLegendItems(): AdvancedLegendItem[];
35
- trackBy(index: number, item: AdvancedLegendItem): string;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedLegendComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedLegendComponent, "ngx-charts-advanced-legend", never, { "width": { "alias": "width"; "required": false; }; "data": { "alias": "data"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "label": { "alias": "label"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; "valueFormatting": { "alias": "valueFormatting"; "required": false; }; "labelFormatting": { "alias": "labelFormatting"; "required": false; }; "percentageFormatting": { "alias": "percentageFormatting"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
38
- }
@@ -1,21 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class LegendEntryComponent {
4
- color: string;
5
- label: string;
6
- formattedLabel: string;
7
- isActive: boolean;
8
- select: EventEmitter<string>;
9
- activate: EventEmitter<{
10
- name: string;
11
- }>;
12
- deactivate: EventEmitter<{
13
- name: string;
14
- }>;
15
- toggle: EventEmitter<string>;
16
- get trimmedLabel(): string;
17
- onMouseEnter(): void;
18
- onMouseLeave(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<LegendEntryComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<LegendEntryComponent, "ngx-charts-legend-entry", never, { "color": { "alias": "color"; "required": false; }; "label": { "alias": "label"; "required": false; }; "formattedLabel": { "alias": "formattedLabel"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; "toggle": "toggle"; }, never, never, false, never>;
21
- }