@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.
- package/CHANGELOG.md +6 -0
- package/fesm2022/swimlane-ngx-charts.mjs +531 -370
- package/fesm2022/swimlane-ngx-charts.mjs.map +1 -1
- package/index.d.ts +3914 -3
- package/package.json +8 -8
- package/lib/area-chart/area-chart-normalized.component.d.ts +0 -93
- package/lib/area-chart/area-chart-stacked.component.d.ts +0 -96
- package/lib/area-chart/area-chart.component.d.ts +0 -100
- package/lib/area-chart/area-chart.module.d.ts +0 -11
- package/lib/area-chart/area-series.component.d.ts +0 -33
- package/lib/bar-chart/bar-chart.module.d.ts +0 -19
- package/lib/bar-chart/bar-horizontal-2d.component.d.ts +0 -87
- package/lib/bar-chart/bar-horizontal-normalized.component.d.ts +0 -76
- package/lib/bar-chart/bar-horizontal-stacked.component.d.ts +0 -82
- package/lib/bar-chart/bar-horizontal.component.d.ts +0 -76
- package/lib/bar-chart/bar-label.component.d.ts +0 -28
- package/lib/bar-chart/bar-vertical-2d.component.d.ts +0 -87
- package/lib/bar-chart/bar-vertical-normalized.component.d.ts +0 -76
- package/lib/bar-chart/bar-vertical-stacked.component.d.ts +0 -84
- package/lib/bar-chart/bar-vertical.component.d.ts +0 -83
- package/lib/bar-chart/bar.component.d.ts +0 -48
- package/lib/bar-chart/series-horizontal.component.d.ts +0 -58
- package/lib/bar-chart/series-vertical.component.d.ts +0 -59
- package/lib/bar-chart/types/bar-chart-type.enum.d.ts +0 -5
- package/lib/bar-chart/types/bar.model.d.ts +0 -17
- package/lib/bar-chart/types/d0-type.enum.d.ts +0 -4
- package/lib/box-chart/box-chart.component.d.ts +0 -78
- package/lib/box-chart/box-chart.module.d.ts +0 -10
- package/lib/box-chart/box-series.component.d.ts +0 -42
- package/lib/box-chart/box.component.d.ts +0 -78
- package/lib/bubble-chart/bubble-chart.component.d.ts +0 -92
- package/lib/bubble-chart/bubble-chart.module.d.ts +0 -9
- package/lib/bubble-chart/bubble-chart.utils.d.ts +0 -4
- package/lib/bubble-chart/bubble-series.component.d.ts +0 -45
- package/lib/common/area.component.d.ts +0 -34
- package/lib/common/axes/axes.module.d.ts +0 -12
- package/lib/common/axes/axis-label.component.d.ts +0 -23
- package/lib/common/axes/ticks.helper.d.ts +0 -2
- package/lib/common/axes/x-axis-ticks.component.d.ts +0 -53
- package/lib/common/axes/x-axis.component.d.ts +0 -40
- package/lib/common/axes/y-axis-ticks.component.d.ts +0 -61
- package/lib/common/axes/y-axis.component.d.ts +0 -42
- package/lib/common/base-chart.component.d.ts +0 -45
- package/lib/common/chart-common.module.d.ts +0 -26
- package/lib/common/charts/chart.component.d.ts +0 -28
- package/lib/common/circle-series.component.d.ts +0 -80
- package/lib/common/circle.component.d.ts +0 -22
- package/lib/common/color.helper.d.ts +0 -15
- package/lib/common/constants/font-widths.d.ts +0 -88
- package/lib/common/count/count.directive.d.ts +0 -38
- package/lib/common/count/count.helper.d.ts +0 -10
- package/lib/common/domain.helper.d.ts +0 -18
- package/lib/common/grid-layout.helper.d.ts +0 -19
- package/lib/common/grid-panel-series.component.d.ts +0 -30
- package/lib/common/grid-panel.component.d.ts +0 -9
- package/lib/common/label.helper.d.ts +0 -12
- package/lib/common/legend/advanced-legend.component.d.ts +0 -38
- package/lib/common/legend/legend-entry.component.d.ts +0 -21
- package/lib/common/legend/legend.component.d.ts +0 -40
- package/lib/common/legend/scale-legend.component.d.ts +0 -19
- package/lib/common/shape.helper.d.ts +0 -7
- package/lib/common/svg-linear-gradient.component.d.ts +0 -16
- package/lib/common/svg-radial-gradient.component.d.ts +0 -19
- package/lib/common/tick-format.helper.d.ts +0 -1
- package/lib/common/timeline/timeline.component.d.ts +0 -36
- package/lib/common/tooltip/injection-registery.service.d.ts +0 -22
- package/lib/common/tooltip/injection.service.d.ts +0 -74
- package/lib/common/tooltip/position/index.d.ts +0 -2
- package/lib/common/tooltip/position/placement-type.enum.d.ts +0 -7
- package/lib/common/tooltip/position/position.d.ts +0 -56
- package/lib/common/tooltip/show.type.d.ts +0 -5
- package/lib/common/tooltip/style.type.d.ts +0 -4
- package/lib/common/tooltip/tooltip.component.d.ts +0 -30
- package/lib/common/tooltip/tooltip.directive.d.ts +0 -50
- package/lib/common/tooltip/tooltip.module.d.ts +0 -9
- package/lib/common/tooltip/tooltip.service.d.ts +0 -10
- package/lib/common/tooltip-area.component.d.ts +0 -47
- package/lib/common/trim-label.helper.d.ts +0 -1
- package/lib/common/types/bar-orientation.enum.d.ts +0 -4
- package/lib/common/types/gradient.interface.d.ts +0 -6
- package/lib/common/types/legend.model.d.ts +0 -16
- package/lib/common/types/orientation.enum.d.ts +0 -6
- package/lib/common/types/scale-type.enum.d.ts +0 -6
- package/lib/common/types/text-anchor.enum.d.ts +0 -5
- package/lib/common/types/view-dimension.interface.d.ts +0 -6
- package/lib/common/view-dimensions.helper.d.ts +0 -18
- package/lib/events.d.ts +0 -5
- package/lib/gauge/gauge-arc.component.d.ts +0 -31
- package/lib/gauge/gauge-axis.component.d.ts +0 -37
- package/lib/gauge/gauge.component.d.ts +0 -70
- package/lib/gauge/gauge.module.d.ts +0 -14
- package/lib/gauge/linear-gauge.component.d.ts +0 -49
- package/lib/gauge/percent-gauge/percent-gauge.component.d.ts +0 -47
- package/lib/heat-map/heat-map-cell-series.component.d.ts +0 -48
- package/lib/heat-map/heat-map-cell.component.d.ts +0 -34
- package/lib/heat-map/heat-map.component.d.ts +0 -94
- package/lib/heat-map/heat-map.module.d.ts +0 -10
- package/lib/line-chart/line-chart.component.d.ts +0 -104
- package/lib/line-chart/line-chart.module.d.ts +0 -10
- package/lib/line-chart/line-series.component.d.ts +0 -40
- package/lib/line-chart/line.component.d.ts +0 -21
- package/lib/models/chart-data.model.d.ts +0 -93
- package/lib/models/coordinates.model.d.ts +0 -8
- package/lib/ngx-charts.module.d.ts +0 -20
- package/lib/number-card/card-series.component.d.ts +0 -36
- package/lib/number-card/card.component.d.ts +0 -52
- package/lib/number-card/number-card.component.d.ts +0 -29
- package/lib/number-card/number-card.module.d.ts +0 -10
- package/lib/pie-chart/advanced-pie-chart.component.d.ts +0 -36
- package/lib/pie-chart/pie-arc.component.d.ts +0 -44
- package/lib/pie-chart/pie-chart.component.d.ts +0 -48
- package/lib/pie-chart/pie-chart.module.d.ts +0 -14
- package/lib/pie-chart/pie-grid-series.component.d.ts +0 -35
- package/lib/pie-chart/pie-grid.component.d.ts +0 -42
- package/lib/pie-chart/pie-label.component.d.ts +0 -39
- package/lib/pie-chart/pie-series.component.d.ts +0 -50
- package/lib/polar-chart/polar-chart.component.d.ts +0 -105
- package/lib/polar-chart/polar-chart.module.d.ts +0 -11
- package/lib/polar-chart/polar-series.component.d.ts +0 -64
- package/lib/polyfills.d.ts +0 -1
- package/lib/sankey/sankey.component.d.ts +0 -59
- package/lib/sankey/sankey.module.d.ts +0 -8
- package/lib/tree-map/tree-map-cell-series.component.d.ts +0 -43
- package/lib/tree-map/tree-map-cell.component.d.ts +0 -39
- package/lib/tree-map/tree-map.component.d.ts +0 -29
- package/lib/tree-map/tree-map.module.d.ts +0 -10
- package/lib/utils/calculate-width.d.ts +0 -1
- package/lib/utils/color-sets.d.ts +0 -8
- package/lib/utils/color-utils.d.ts +0 -25
- package/lib/utils/id.d.ts +0 -11
- package/lib/utils/sort.d.ts +0 -3
- package/lib/utils/throttle.d.ts +0 -18
- package/lib/utils/types.d.ts +0 -2
- package/lib/utils/visibility-observer.d.ts +0 -18
- package/public-api.d.ts +0 -118
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import { DataItem, StringOrNumberOrDate } from '../models/chart-data.model';
|
|
3
|
-
import { PlacementTypes } from '../common/tooltip/position';
|
|
4
|
-
import { StyleTypes } from '../common/tooltip/style.type';
|
|
5
|
-
import { ColorHelper } from '../common/color.helper';
|
|
6
|
-
import { BarChartType } from './types/bar-chart-type.enum';
|
|
7
|
-
import { Bar } from './types/bar.model';
|
|
8
|
-
import { ViewDimensions } from '../common/types/view-dimension.interface';
|
|
9
|
-
import { BarOrientation } from '../common/types/bar-orientation.enum';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class SeriesVerticalComponent implements OnChanges {
|
|
12
|
-
private platformId;
|
|
13
|
-
dims: ViewDimensions;
|
|
14
|
-
type: BarChartType;
|
|
15
|
-
series: DataItem[];
|
|
16
|
-
xScale: any;
|
|
17
|
-
yScale: any;
|
|
18
|
-
colors: ColorHelper;
|
|
19
|
-
gradient: boolean;
|
|
20
|
-
activeEntries: DataItem[];
|
|
21
|
-
seriesName: StringOrNumberOrDate;
|
|
22
|
-
tooltipDisabled: boolean;
|
|
23
|
-
tooltipTemplate: TemplateRef<any>;
|
|
24
|
-
roundEdges: boolean;
|
|
25
|
-
animations: boolean;
|
|
26
|
-
showDataLabel: boolean;
|
|
27
|
-
dataLabelFormatting: any;
|
|
28
|
-
noBarWhenZero: boolean;
|
|
29
|
-
select: EventEmitter<DataItem>;
|
|
30
|
-
activate: EventEmitter<any>;
|
|
31
|
-
deactivate: EventEmitter<any>;
|
|
32
|
-
dataLabelHeightChanged: EventEmitter<any>;
|
|
33
|
-
tooltipPlacement: PlacementTypes;
|
|
34
|
-
tooltipType: StyleTypes;
|
|
35
|
-
bars: Bar[];
|
|
36
|
-
barsForDataLabels: Array<{
|
|
37
|
-
x: number;
|
|
38
|
-
y: number;
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
total: number;
|
|
42
|
-
series: string;
|
|
43
|
-
}>;
|
|
44
|
-
barOrientation: typeof BarOrientation;
|
|
45
|
-
isSSR: boolean;
|
|
46
|
-
constructor(platformId: any);
|
|
47
|
-
ngOnInit(): void;
|
|
48
|
-
ngOnChanges(): void;
|
|
49
|
-
update(): void;
|
|
50
|
-
updateDataLabels(): void;
|
|
51
|
-
updateTooltipSettings(): void;
|
|
52
|
-
isActive(entry: DataItem): boolean;
|
|
53
|
-
onClick(data: DataItem): void;
|
|
54
|
-
getLabel(dataItem: DataItem): StringOrNumberOrDate;
|
|
55
|
-
trackBy(index: number, bar: Bar): string;
|
|
56
|
-
trackDataLabelBy(index: number, barLabel: any): string;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SeriesVerticalComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesVerticalComponent, "g[ngx-charts-series-vertical]", never, { "dims": { "alias": "dims"; "required": false; }; "type": { "alias": "type"; "required": false; }; "series": { "alias": "series"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "seriesName": { "alias": "seriesName"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; "roundEdges": { "alias": "roundEdges"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; "showDataLabel": { "alias": "showDataLabel"; "required": false; }; "dataLabelFormatting": { "alias": "dataLabelFormatting"; "required": false; }; "noBarWhenZero": { "alias": "noBarWhenZero"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; "dataLabelHeightChanged": "dataLabelHeightChanged"; }, never, never, false, never>;
|
|
59
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DataItem } from '../../models/chart-data.model';
|
|
2
|
-
import { Gradient } from '../../common/types/gradient.interface';
|
|
3
|
-
export interface Bar {
|
|
4
|
-
ariaLabel: string;
|
|
5
|
-
color: string;
|
|
6
|
-
data: DataItem;
|
|
7
|
-
formattedLabel: string;
|
|
8
|
-
gradientStops: Gradient[];
|
|
9
|
-
height: number;
|
|
10
|
-
label: string;
|
|
11
|
-
roundEdges: boolean;
|
|
12
|
-
tooltipText: string;
|
|
13
|
-
value: number;
|
|
14
|
-
width: number;
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
-
import { BaseChartComponent } from '../common/base-chart.component';
|
|
3
|
-
import { ColorHelper } from '../common/color.helper';
|
|
4
|
-
import { BoxChartMultiSeries, BoxChartSeries, IBoxModel, StringOrNumberOrDate } from '../models/chart-data.model';
|
|
5
|
-
import { ScaleLinear, ScaleBand } from 'd3-scale';
|
|
6
|
-
import { ViewDimensions } from '../common/types/view-dimension.interface';
|
|
7
|
-
import { LegendPosition, LegendOptions } from '../common/types/legend.model';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class BoxChartComponent extends BaseChartComponent {
|
|
10
|
-
/** Show or hide the legend. */
|
|
11
|
-
legend: boolean;
|
|
12
|
-
legendPosition: LegendPosition;
|
|
13
|
-
legendTitle: string;
|
|
14
|
-
/** I think it is better to handle legend options as single Input object of type ILegendOptions */
|
|
15
|
-
legendOptionsConfig: LegendOptions;
|
|
16
|
-
showGridLines: boolean;
|
|
17
|
-
xAxis: boolean;
|
|
18
|
-
yAxis: boolean;
|
|
19
|
-
showXAxisLabel: boolean;
|
|
20
|
-
showYAxisLabel: boolean;
|
|
21
|
-
roundDomains: boolean;
|
|
22
|
-
xAxisLabel: string;
|
|
23
|
-
yAxisLabel: string;
|
|
24
|
-
roundEdges: boolean;
|
|
25
|
-
strokeColor: string;
|
|
26
|
-
strokeWidth: number;
|
|
27
|
-
tooltipDisabled: boolean;
|
|
28
|
-
gradient: boolean;
|
|
29
|
-
wrapTicks: boolean;
|
|
30
|
-
select: EventEmitter<IBoxModel>;
|
|
31
|
-
activate: EventEmitter<IBoxModel>;
|
|
32
|
-
deactivate: EventEmitter<IBoxModel>;
|
|
33
|
-
tooltipTemplate: TemplateRef<any>;
|
|
34
|
-
/** Input Data, this came from Base Chart Component. */
|
|
35
|
-
results: BoxChartMultiSeries;
|
|
36
|
-
/** Chart Dimensions, this came from Base Chart Component. */
|
|
37
|
-
dims: ViewDimensions;
|
|
38
|
-
/** Color data. */
|
|
39
|
-
colors: ColorHelper;
|
|
40
|
-
/** Transform string css attribute for the chart container */
|
|
41
|
-
transform: string;
|
|
42
|
-
/** Chart Margins (For each side, counterclock wise). */
|
|
43
|
-
margin: [number, number, number, number];
|
|
44
|
-
/** Legend Options object to handle positioning, title, colors and domain. */
|
|
45
|
-
legendOptions: LegendOptions;
|
|
46
|
-
xScale: ScaleBand<string>;
|
|
47
|
-
yScale: ScaleLinear<number, number>;
|
|
48
|
-
xDomain: StringOrNumberOrDate[];
|
|
49
|
-
yDomain: number[];
|
|
50
|
-
seriesDomain: string[];
|
|
51
|
-
/** Chart X axis dimension. */
|
|
52
|
-
xAxisHeight: number;
|
|
53
|
-
/** Chart Y axis dimension. */
|
|
54
|
-
yAxisWidth: number;
|
|
55
|
-
ngOnChanges(): void;
|
|
56
|
-
trackBy(index: number, item: BoxChartSeries): StringOrNumberOrDate;
|
|
57
|
-
update(): void;
|
|
58
|
-
setColors(): void;
|
|
59
|
-
setScales(): void;
|
|
60
|
-
getXScale(domain: Array<string | number | Date>, width: number): ScaleBand<string>;
|
|
61
|
-
getYScale(domain: number[], height: number): ScaleLinear<number, number>;
|
|
62
|
-
getUniqueBoxChartXDomainValues(results: BoxChartMultiSeries): (string | number | Date)[];
|
|
63
|
-
getXDomain(): Array<string | number | Date>;
|
|
64
|
-
getYDomain(): number[];
|
|
65
|
-
getSeriesDomain(): string[];
|
|
66
|
-
updateYAxisWidth({ width }: {
|
|
67
|
-
width: any;
|
|
68
|
-
}): void;
|
|
69
|
-
updateXAxisHeight({ height }: {
|
|
70
|
-
height: any;
|
|
71
|
-
}): void;
|
|
72
|
-
onClick(data: IBoxModel): void;
|
|
73
|
-
onActivate(data: IBoxModel): void;
|
|
74
|
-
onDeactivate(data: IBoxModel): void;
|
|
75
|
-
private getLegendOptions;
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BoxChartComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BoxChartComponent, "ngx-charts-box-chart", never, { "legend": { "alias": "legend"; "required": false; }; "legendPosition": { "alias": "legendPosition"; "required": false; }; "legendTitle": { "alias": "legendTitle"; "required": false; }; "legendOptionsConfig": { "alias": "legendOptionsConfig"; "required": false; }; "showGridLines": { "alias": "showGridLines"; "required": false; }; "xAxis": { "alias": "xAxis"; "required": false; }; "yAxis": { "alias": "yAxis"; "required": false; }; "showXAxisLabel": { "alias": "showXAxisLabel"; "required": false; }; "showYAxisLabel": { "alias": "showYAxisLabel"; "required": false; }; "roundDomains": { "alias": "roundDomains"; "required": false; }; "xAxisLabel": { "alias": "xAxisLabel"; "required": false; }; "yAxisLabel": { "alias": "yAxisLabel"; "required": false; }; "roundEdges": { "alias": "roundEdges"; "required": false; }; "strokeColor": { "alias": "strokeColor"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate"], never, false, never>;
|
|
78
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./box-chart.component";
|
|
3
|
-
import * as i2 from "./box-series.component";
|
|
4
|
-
import * as i3 from "./box.component";
|
|
5
|
-
import * as i4 from "../common/chart-common.module";
|
|
6
|
-
export declare class BoxChartModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BoxChartModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BoxChartModule, [typeof i1.BoxChartComponent, typeof i2.BoxSeriesComponent, typeof i3.BoxComponent], [typeof i4.ChartCommonModule], [typeof i1.BoxChartComponent, typeof i2.BoxSeriesComponent, typeof i3.BoxComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<BoxChartModule>;
|
|
10
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import { ScaleLinear, ScaleBand } from 'd3-scale';
|
|
3
|
-
import { IBoxModel, BoxChartSeries, DataItem } from '../models/chart-data.model';
|
|
4
|
-
import { IVector2D } from '../models/coordinates.model';
|
|
5
|
-
import { ColorHelper } from '../common/color.helper';
|
|
6
|
-
import { StyleTypes } from '../common/tooltip/style.type';
|
|
7
|
-
import { PlacementTypes } from '../common/tooltip/position';
|
|
8
|
-
import { ViewDimensions } from '../common/types/view-dimension.interface';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export 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
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, ElementRef, SimpleChanges, OnChanges, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { BaseType } from 'd3-selection';
|
|
3
|
-
import { IBoxModel } from '../models/chart-data.model';
|
|
4
|
-
import { IPoint, IVector2D } from '../models/coordinates.model';
|
|
5
|
-
import { BarOrientation } from '../common/types/bar-orientation.enum';
|
|
6
|
-
import { Gradient } from '../common/types/gradient.interface';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
type LineCoordinates = [IVector2D, IVector2D, IVector2D, IVector2D];
|
|
9
|
-
export declare function clonePoint(original: IPoint): IPoint;
|
|
10
|
-
export declare function cloneVector2d(original: IVector2D): IVector2D;
|
|
11
|
-
export declare function cloneLineCoordinates(original: LineCoordinates): LineCoordinates;
|
|
12
|
-
export declare class BoxComponent implements OnChanges {
|
|
13
|
-
protected cd: ChangeDetectorRef;
|
|
14
|
-
strokeColor: string;
|
|
15
|
-
strokeWidth: number;
|
|
16
|
-
fill: string;
|
|
17
|
-
data: IBoxModel;
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
lineCoordinates: LineCoordinates;
|
|
23
|
-
roundEdges: boolean;
|
|
24
|
-
gradient: boolean;
|
|
25
|
-
gradientStops: Gradient[];
|
|
26
|
-
offset: number;
|
|
27
|
-
isActive: boolean;
|
|
28
|
-
animations: boolean;
|
|
29
|
-
ariaLabel: string;
|
|
30
|
-
noBarWhenZero: boolean;
|
|
31
|
-
select: EventEmitter<IBoxModel>;
|
|
32
|
-
activate: EventEmitter<IBoxModel>;
|
|
33
|
-
deactivate: EventEmitter<IBoxModel>;
|
|
34
|
-
BarOrientation: typeof BarOrientation;
|
|
35
|
-
nativeElm: any;
|
|
36
|
-
oldPath: string;
|
|
37
|
-
boxPath: string;
|
|
38
|
-
oldLineCoordinates: LineCoordinates;
|
|
39
|
-
gradientId: string;
|
|
40
|
-
gradientFill: string;
|
|
41
|
-
initialized: boolean;
|
|
42
|
-
hasGradient: boolean;
|
|
43
|
-
hideBar: boolean;
|
|
44
|
-
/** Mask Path to cut the line on the box part. */
|
|
45
|
-
maskLine: string;
|
|
46
|
-
/** Mask Path Id to keep track of the mask element */
|
|
47
|
-
maskLineId: string;
|
|
48
|
-
boxStrokeWidth: number;
|
|
49
|
-
whiskerStrokeWidth: number;
|
|
50
|
-
medianLineWidth: number;
|
|
51
|
-
constructor(element: ElementRef, cd: ChangeDetectorRef);
|
|
52
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
53
|
-
update(): void;
|
|
54
|
-
loadAnimation(): void;
|
|
55
|
-
updatePathEl(): void;
|
|
56
|
-
updateLineEl(): void;
|
|
57
|
-
/**
|
|
58
|
-
* See [D3 Selections](https://www.d3indepth.com/selections/)
|
|
59
|
-
* @param d The joined data.
|
|
60
|
-
* @param index The index of the element within the selection
|
|
61
|
-
* @param node The node element (Line).
|
|
62
|
-
*/
|
|
63
|
-
lineTween(attr: string, d: any, index: number, node: BaseType[] | ArrayLike<BaseType>): any;
|
|
64
|
-
pathTween(d1: string, precision: number): () => (t: any) => string;
|
|
65
|
-
getStartingPath(): string;
|
|
66
|
-
getPath(): string;
|
|
67
|
-
getStartingLineCoordinates(): LineCoordinates;
|
|
68
|
-
getRadius(): number;
|
|
69
|
-
getGradient(): Gradient[];
|
|
70
|
-
getStartOpacity(): number;
|
|
71
|
-
get edges(): boolean[];
|
|
72
|
-
onMouseEnter(): void;
|
|
73
|
-
onMouseLeave(): void;
|
|
74
|
-
private checkToHideBar;
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BoxComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BoxComponent, "g[ngx-charts-box]", never, { "strokeColor": { "alias": "strokeColor"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "data": { "alias": "data"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "lineCoordinates": { "alias": "lineCoordinates"; "required": false; }; "roundEdges": { "alias": "roundEdges"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "gradientStops": { "alias": "gradientStops"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "noBarWhenZero": { "alias": "noBarWhenZero"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
|
|
77
|
-
}
|
|
78
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
-
import { BaseChartComponent } from '../common/base-chart.component';
|
|
3
|
-
import { ColorHelper } from '../common/color.helper';
|
|
4
|
-
import { BubbleChartSeries } from '../models/chart-data.model';
|
|
5
|
-
import { LegendOptions, LegendPosition } from '../common/types/legend.model';
|
|
6
|
-
import { ScaleType } from '../common/types/scale-type.enum';
|
|
7
|
-
import { ViewDimensions } from '../common/types/view-dimension.interface';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class BubbleChartComponent extends BaseChartComponent {
|
|
10
|
-
showGridLines: boolean;
|
|
11
|
-
legend: boolean;
|
|
12
|
-
legendTitle: string;
|
|
13
|
-
legendPosition: LegendPosition;
|
|
14
|
-
xAxis: boolean;
|
|
15
|
-
yAxis: boolean;
|
|
16
|
-
showXAxisLabel: boolean;
|
|
17
|
-
showYAxisLabel: boolean;
|
|
18
|
-
xAxisLabel: string;
|
|
19
|
-
yAxisLabel: string;
|
|
20
|
-
trimXAxisTicks: boolean;
|
|
21
|
-
trimYAxisTicks: boolean;
|
|
22
|
-
rotateXAxisTicks: boolean;
|
|
23
|
-
maxXAxisTickLength: number;
|
|
24
|
-
maxYAxisTickLength: number;
|
|
25
|
-
xAxisTickFormatting: any;
|
|
26
|
-
yAxisTickFormatting: any;
|
|
27
|
-
xAxisTicks: any[];
|
|
28
|
-
yAxisTicks: any[];
|
|
29
|
-
roundDomains: boolean;
|
|
30
|
-
maxRadius: number;
|
|
31
|
-
minRadius: number;
|
|
32
|
-
autoScale: boolean;
|
|
33
|
-
schemeType: ScaleType;
|
|
34
|
-
tooltipDisabled: boolean;
|
|
35
|
-
xScaleMin: number;
|
|
36
|
-
xScaleMax: number;
|
|
37
|
-
yScaleMin: number;
|
|
38
|
-
yScaleMax: number;
|
|
39
|
-
wrapTicks: boolean;
|
|
40
|
-
activate: EventEmitter<any>;
|
|
41
|
-
deactivate: EventEmitter<any>;
|
|
42
|
-
tooltipTemplate: TemplateRef<any>;
|
|
43
|
-
dims: ViewDimensions;
|
|
44
|
-
colors: ColorHelper;
|
|
45
|
-
scaleType: ScaleType;
|
|
46
|
-
margin: number[];
|
|
47
|
-
bubblePadding: number[];
|
|
48
|
-
data: BubbleChartSeries[];
|
|
49
|
-
legendOptions: LegendOptions;
|
|
50
|
-
transform: string;
|
|
51
|
-
clipPath: string;
|
|
52
|
-
clipPathId: string;
|
|
53
|
-
seriesDomain: number[];
|
|
54
|
-
xDomain: number[];
|
|
55
|
-
yDomain: number[];
|
|
56
|
-
rDomain: number[];
|
|
57
|
-
xScaleType: ScaleType;
|
|
58
|
-
yScaleType: ScaleType;
|
|
59
|
-
yScale: any;
|
|
60
|
-
xScale: any;
|
|
61
|
-
rScale: any;
|
|
62
|
-
xAxisHeight: number;
|
|
63
|
-
yAxisWidth: number;
|
|
64
|
-
activeEntries: any[];
|
|
65
|
-
isSSR: boolean;
|
|
66
|
-
ngOnInit(): void;
|
|
67
|
-
ngOnChanges(): void;
|
|
68
|
-
update(): void;
|
|
69
|
-
hideCircles(): void;
|
|
70
|
-
onClick(data: any, series?: any): void;
|
|
71
|
-
getBubblePadding(): number[];
|
|
72
|
-
setScales(): void;
|
|
73
|
-
getYScale(domain: any, height: number): any;
|
|
74
|
-
getXScale(domain: any, width: number): any;
|
|
75
|
-
getRScale(domain: any, range: any): any;
|
|
76
|
-
getLegendOptions(): LegendOptions;
|
|
77
|
-
getXDomain(): number[];
|
|
78
|
-
getYDomain(): number[];
|
|
79
|
-
getRDomain(): [number, number];
|
|
80
|
-
updateYAxisWidth({ width }: {
|
|
81
|
-
width: number;
|
|
82
|
-
}): void;
|
|
83
|
-
updateXAxisHeight({ height }: {
|
|
84
|
-
height: number;
|
|
85
|
-
}): void;
|
|
86
|
-
onActivate(item: any): void;
|
|
87
|
-
onDeactivate(item: any): void;
|
|
88
|
-
deactivateAll(): void;
|
|
89
|
-
trackBy(index: number, item: any): string;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleChartComponent, never>;
|
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleChartComponent, "ngx-charts-bubble-chart", never, { "showGridLines": { "alias": "showGridLines"; "required": false; }; "legend": { "alias": "legend"; "required": false; }; "legendTitle": { "alias": "legendTitle"; "required": false; }; "legendPosition": { "alias": "legendPosition"; "required": false; }; "xAxis": { "alias": "xAxis"; "required": false; }; "yAxis": { "alias": "yAxis"; "required": false; }; "showXAxisLabel": { "alias": "showXAxisLabel"; "required": false; }; "showYAxisLabel": { "alias": "showYAxisLabel"; "required": false; }; "xAxisLabel": { "alias": "xAxisLabel"; "required": false; }; "yAxisLabel": { "alias": "yAxisLabel"; "required": false; }; "trimXAxisTicks": { "alias": "trimXAxisTicks"; "required": false; }; "trimYAxisTicks": { "alias": "trimYAxisTicks"; "required": false; }; "rotateXAxisTicks": { "alias": "rotateXAxisTicks"; "required": false; }; "maxXAxisTickLength": { "alias": "maxXAxisTickLength"; "required": false; }; "maxYAxisTickLength": { "alias": "maxYAxisTickLength"; "required": false; }; "xAxisTickFormatting": { "alias": "xAxisTickFormatting"; "required": false; }; "yAxisTickFormatting": { "alias": "yAxisTickFormatting"; "required": false; }; "xAxisTicks": { "alias": "xAxisTicks"; "required": false; }; "yAxisTicks": { "alias": "yAxisTicks"; "required": false; }; "roundDomains": { "alias": "roundDomains"; "required": false; }; "maxRadius": { "alias": "maxRadius"; "required": false; }; "minRadius": { "alias": "minRadius"; "required": false; }; "autoScale": { "alias": "autoScale"; "required": false; }; "schemeType": { "alias": "schemeType"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "xScaleMin": { "alias": "xScaleMin"; "required": false; }; "xScaleMax": { "alias": "xScaleMax"; "required": false; }; "yScaleMin": { "alias": "yScaleMin"; "required": false; }; "yScaleMax": { "alias": "yScaleMax"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate"], never, false, never>;
|
|
92
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./bubble-chart.component";
|
|
3
|
-
import * as i2 from "./bubble-series.component";
|
|
4
|
-
import * as i3 from "../common/chart-common.module";
|
|
5
|
-
export declare class BubbleChartModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleChartModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BubbleChartModule, [typeof i1.BubbleChartComponent, typeof i2.BubbleSeriesComponent], [typeof i3.ChartCommonModule], [typeof i1.BubbleChartComponent, typeof i2.BubbleSeriesComponent]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<BubbleChartModule>;
|
|
9
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ScaleLinear, ScalePoint, ScaleTime } from 'd3-scale';
|
|
2
|
-
import { ScaleType } from '../common/types/scale-type.enum';
|
|
3
|
-
export declare function getDomain(values: any[], scaleType: ScaleType, autoScale: boolean, minVal?: number, maxVal?: number): number[];
|
|
4
|
-
export declare function getScale(domain: number[], range: number[], scaleType: ScaleType, roundDomains: boolean): ScaleTime<number, number> | ScaleLinear<number, number> | ScalePoint<string>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { SimpleChanges, EventEmitter, OnChanges, TemplateRef, OnInit } from '@angular/core';
|
|
2
|
-
import { ColorHelper } from '../common/color.helper';
|
|
3
|
-
import { BubbleChartSeries } from '../models/chart-data.model';
|
|
4
|
-
import { PlacementTypes } from '../common/tooltip/position';
|
|
5
|
-
import { StyleTypes } from '../common/tooltip/style.type';
|
|
6
|
-
import { ScaleType } from '../common/types/scale-type.enum';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class BubbleSeriesComponent implements OnChanges, OnInit {
|
|
9
|
-
private platformId;
|
|
10
|
-
data: BubbleChartSeries;
|
|
11
|
-
xScale: any;
|
|
12
|
-
yScale: any;
|
|
13
|
-
rScale: any;
|
|
14
|
-
xScaleType: ScaleType;
|
|
15
|
-
yScaleType: ScaleType;
|
|
16
|
-
colors: ColorHelper;
|
|
17
|
-
visibleValue: any;
|
|
18
|
-
activeEntries: any[];
|
|
19
|
-
xAxisLabel: string;
|
|
20
|
-
yAxisLabel: string;
|
|
21
|
-
tooltipDisabled: boolean;
|
|
22
|
-
tooltipTemplate: TemplateRef<any>;
|
|
23
|
-
select: EventEmitter<any>;
|
|
24
|
-
activate: EventEmitter<any>;
|
|
25
|
-
deactivate: EventEmitter<any>;
|
|
26
|
-
areaPath: any;
|
|
27
|
-
circles: any[];
|
|
28
|
-
placementTypes: typeof PlacementTypes;
|
|
29
|
-
styleTypes: typeof StyleTypes;
|
|
30
|
-
isSSR: boolean;
|
|
31
|
-
constructor(platformId: any);
|
|
32
|
-
ngOnInit(): void;
|
|
33
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
-
update(): void;
|
|
35
|
-
getCircles(): any[];
|
|
36
|
-
getTooltipText(circle: any): string;
|
|
37
|
-
onClick(data: any): void;
|
|
38
|
-
isActive(entry: any): boolean;
|
|
39
|
-
isVisible(circle: any): boolean;
|
|
40
|
-
activateCircle(circle: any): void;
|
|
41
|
-
deactivateCircle(circle: any): void;
|
|
42
|
-
trackBy(index: any, circle: any): string;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BubbleSeriesComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BubbleSeriesComponent, "g[ngx-charts-bubble-series]", never, { "data": { "alias": "data"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "rScale": { "alias": "rScale"; "required": false; }; "xScaleType": { "alias": "xScaleType"; "required": false; }; "yScaleType": { "alias": "yScaleType"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "visibleValue": { "alias": "visibleValue"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "xAxisLabel": { "alias": "xAxisLabel"; "required": false; }; "yAxisLabel": { "alias": "yAxisLabel"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
|
|
45
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, ElementRef, OnChanges } from '@angular/core';
|
|
2
|
-
import { AreaChartSeries } from '../models/chart-data.model';
|
|
3
|
-
import { BarOrientation } from './types/bar-orientation.enum';
|
|
4
|
-
import { Gradient } from './types/gradient.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class AreaComponent implements OnChanges {
|
|
7
|
-
data: AreaChartSeries;
|
|
8
|
-
path: string;
|
|
9
|
-
startingPath: string;
|
|
10
|
-
fill: string;
|
|
11
|
-
opacity: number;
|
|
12
|
-
startOpacity: number;
|
|
13
|
-
endOpacity: number;
|
|
14
|
-
gradient: boolean;
|
|
15
|
-
stops: Gradient[];
|
|
16
|
-
animations: boolean;
|
|
17
|
-
select: EventEmitter<any>;
|
|
18
|
-
element: HTMLElement;
|
|
19
|
-
gradientId: string;
|
|
20
|
-
gradientFill: string;
|
|
21
|
-
areaPath: string;
|
|
22
|
-
animationsLoaded: boolean;
|
|
23
|
-
gradientStops: Gradient[];
|
|
24
|
-
hasGradient: boolean;
|
|
25
|
-
barOrientation: typeof BarOrientation;
|
|
26
|
-
constructor(element: ElementRef);
|
|
27
|
-
ngOnChanges(): void;
|
|
28
|
-
update(): void;
|
|
29
|
-
loadAnimation(): void;
|
|
30
|
-
updatePathEl(): void;
|
|
31
|
-
getGradient(): Gradient[];
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AreaComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AreaComponent, "g[ngx-charts-area]", never, { "data": { "alias": "data"; "required": false; }; "path": { "alias": "path"; "required": false; }; "startingPath": { "alias": "startingPath"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "startOpacity": { "alias": "startOpacity"; "required": false; }; "endOpacity": { "alias": "endOpacity"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "stops": { "alias": "stops"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
|
|
34
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./axis-label.component";
|
|
3
|
-
import * as i2 from "./x-axis.component";
|
|
4
|
-
import * as i3 from "./x-axis-ticks.component";
|
|
5
|
-
import * as i4 from "./y-axis.component";
|
|
6
|
-
import * as i5 from "./y-axis-ticks.component";
|
|
7
|
-
import * as i6 from "@angular/common";
|
|
8
|
-
export declare class AxesModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AxesModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AxesModule, [typeof i1.AxisLabelComponent, typeof i2.XAxisComponent, typeof i3.XAxisTicksComponent, typeof i4.YAxisComponent, typeof i5.YAxisTicksComponent], [typeof i6.CommonModule], [typeof i1.AxisLabelComponent, typeof i2.XAxisComponent, typeof i3.XAxisTicksComponent, typeof i4.YAxisComponent, typeof i5.YAxisTicksComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AxesModule>;
|
|
12
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Orientation } from '../types/orientation.enum';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AxisLabelComponent implements OnChanges {
|
|
5
|
-
orient: Orientation;
|
|
6
|
-
label: string;
|
|
7
|
-
offset: number;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
transform: string;
|
|
13
|
-
strokeWidth: string;
|
|
14
|
-
textAnchor: string;
|
|
15
|
-
element: ElementRef;
|
|
16
|
-
textHeight: number;
|
|
17
|
-
margin: number;
|
|
18
|
-
constructor(element: ElementRef);
|
|
19
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
-
update(): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AxisLabelComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AxisLabelComponent, "g[ngx-charts-axis-label]", never, { "orient": { "alias": "orient"; "required": false; }; "label": { "alias": "label"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, ElementRef, SimpleChanges, AfterViewInit } 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 XAxisTicksComponent 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
|
-
gridLineHeight: number;
|
|
17
|
-
width: number;
|
|
18
|
-
rotateTicks: boolean;
|
|
19
|
-
wrapTicks: boolean;
|
|
20
|
-
dimensionsChanged: EventEmitter<any>;
|
|
21
|
-
verticalSpacing: number;
|
|
22
|
-
rotateLabels: boolean;
|
|
23
|
-
innerTickSize: number;
|
|
24
|
-
outerTickSize: number;
|
|
25
|
-
tickPadding: number;
|
|
26
|
-
textAnchor: TextAnchor;
|
|
27
|
-
maxTicksLength: number;
|
|
28
|
-
maxAllowedLength: number;
|
|
29
|
-
adjustedScale: any;
|
|
30
|
-
textTransform: string;
|
|
31
|
-
ticks: any[];
|
|
32
|
-
tickFormat: (o: any) => any;
|
|
33
|
-
height: number;
|
|
34
|
-
approxHeight: number;
|
|
35
|
-
maxPossibleLengthForTickIfWrapped: number;
|
|
36
|
-
ticksElement: ElementRef;
|
|
37
|
-
get isWrapTicksSupported(): any;
|
|
38
|
-
constructor(platformId: any);
|
|
39
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
40
|
-
ngAfterViewInit(): void;
|
|
41
|
-
updateDims(): void;
|
|
42
|
-
update(): void;
|
|
43
|
-
getRotationAngle(ticks: any[]): number;
|
|
44
|
-
getTicks(): any[];
|
|
45
|
-
getMaxTicks(tickWidth: number): number;
|
|
46
|
-
tickTransform(tick: number): string;
|
|
47
|
-
gridLineTransform(): string;
|
|
48
|
-
tickTrim(label: string): string;
|
|
49
|
-
getMaxPossibleLengthForTick(longestLabel: string): number;
|
|
50
|
-
tickChunks(label: string): string[];
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<XAxisTicksComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XAxisTicksComponent, "g[ngx-charts-x-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; }; "gridLineHeight": { "alias": "gridLineHeight"; "required": false; }; "width": { "alias": "width"; "required": false; }; "rotateTicks": { "alias": "rotateTicks"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "dimensionsChanged": "dimensionsChanged"; }, never, never, false, never>;
|
|
53
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { SimpleChanges, EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
-
import { XAxisTicksComponent } from './x-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 XAxisComponent implements OnChanges {
|
|
7
|
-
xScale: any;
|
|
8
|
-
dims: ViewDimensions;
|
|
9
|
-
trimTicks: boolean;
|
|
10
|
-
rotateTicks: boolean;
|
|
11
|
-
maxTickLength: number;
|
|
12
|
-
tickFormatting: any;
|
|
13
|
-
showGridLines: boolean;
|
|
14
|
-
showLabel: boolean;
|
|
15
|
-
labelText: string;
|
|
16
|
-
ticks: any[];
|
|
17
|
-
xAxisTickCount: number;
|
|
18
|
-
xOrient: Orientation;
|
|
19
|
-
xAxisOffset: number;
|
|
20
|
-
wrapTicks: boolean;
|
|
21
|
-
dimensionsChanged: EventEmitter<any>;
|
|
22
|
-
xAxisClassName: string;
|
|
23
|
-
tickArguments: number[];
|
|
24
|
-
transform: string;
|
|
25
|
-
labelOffset: number;
|
|
26
|
-
fill: string;
|
|
27
|
-
stroke: string;
|
|
28
|
-
tickStroke: string;
|
|
29
|
-
strokeWidth: string;
|
|
30
|
-
padding: number;
|
|
31
|
-
readonly orientation: typeof Orientation;
|
|
32
|
-
ticksComponent: XAxisTicksComponent;
|
|
33
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
-
update(): void;
|
|
35
|
-
emitTicksHeight({ height }: {
|
|
36
|
-
height: any;
|
|
37
|
-
}): void;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<XAxisComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XAxisComponent, "g[ngx-charts-x-axis]", never, { "xScale": { "alias": "xScale"; "required": false; }; "dims": { "alias": "dims"; "required": false; }; "trimTicks": { "alias": "trimTicks"; "required": false; }; "rotateTicks": { "alias": "rotateTicks"; "required": false; }; "maxTickLength": { "alias": "maxTickLength"; "required": false; }; "tickFormatting": { "alias": "tickFormatting"; "required": false; }; "showGridLines": { "alias": "showGridLines"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "ticks": { "alias": "ticks"; "required": false; }; "xAxisTickCount": { "alias": "xAxisTickCount"; "required": false; }; "xOrient": { "alias": "xOrient"; "required": false; }; "xAxisOffset": { "alias": "xAxisOffset"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "dimensionsChanged": "dimensionsChanged"; }, never, never, false, never>;
|
|
40
|
-
}
|