@tectra-ng/charts 0.4.2 → 0.4.4
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/bar-list/README.md +1 -1
- package/boxplot/README.md +1 -1
- package/bullet/README.md +1 -1
- package/candlestick/README.md +1 -1
- package/column/README.md +3 -3
- package/combo/README.md +1 -1
- package/core/README.md +8 -6
- package/fesm2022/tectra-ng-charts-bar-list.mjs +3 -3
- package/fesm2022/tectra-ng-charts-boxplot.mjs +3 -3
- package/fesm2022/tectra-ng-charts-bullet.mjs +3 -3
- package/fesm2022/tectra-ng-charts-candlestick.mjs +26 -10
- package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-column.mjs +4 -4
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-combo.mjs +3 -3
- package/fesm2022/tectra-ng-charts-core.mjs +107 -44
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-funnel.mjs +37 -13
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gantt.mjs +490 -30
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gauge.mjs +82 -37
- package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-heatmap.mjs +15 -15
- package/fesm2022/tectra-ng-charts-line.mjs +3 -3
- package/fesm2022/tectra-ng-charts-org-chart.mjs +57 -29
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-pie.mjs +50 -20
- package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-radar.mjs +3 -3
- package/fesm2022/tectra-ng-charts-radial-bar.mjs +8 -7
- package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-range-area.mjs +116 -61
- package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-rank-line.mjs +82 -34
- package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-sankey.mjs +102 -21
- package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-scatter.mjs +3 -3
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +56 -10
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-sunburst.mjs +34 -6
- package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-treemap.mjs +6 -6
- package/fesm2022/tectra-ng-charts-waterfall.mjs +60 -23
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts.mjs +1 -1
- package/funnel/README.md +2 -2
- package/gantt/README.md +12 -8
- package/gauge/README.md +3 -3
- package/line/README.md +1 -1
- package/org-chart/README.md +1 -0
- package/package.json +5 -5
- package/pie/README.md +5 -4
- package/radar/README.md +1 -1
- package/radial-bar/README.md +2 -2
- package/range-area/README.md +2 -1
- package/rank-line/README.md +3 -2
- package/sankey/README.md +1 -1
- package/segmented-bar/README.md +2 -1
- package/treemap/README.md +1 -1
- package/types/tectra-ng-charts-bar-list.d.ts +1 -1
- package/types/tectra-ng-charts-boxplot.d.ts +1 -1
- package/types/tectra-ng-charts-bullet.d.ts +1 -1
- package/types/tectra-ng-charts-candlestick.d.ts +7 -3
- package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
- package/types/tectra-ng-charts-column.d.ts +3 -3
- package/types/tectra-ng-charts-combo.d.ts +1 -1
- package/types/tectra-ng-charts-core.d.ts +45 -10
- package/types/tectra-ng-charts-core.d.ts.map +1 -1
- package/types/tectra-ng-charts-funnel.d.ts +9 -2
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
- package/types/tectra-ng-charts-gantt.d.ts +166 -10
- package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
- package/types/tectra-ng-charts-gauge.d.ts +21 -6
- package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
- package/types/tectra-ng-charts-line.d.ts +1 -1
- package/types/tectra-ng-charts-org-chart.d.ts +13 -2
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
- package/types/tectra-ng-charts-pie.d.ts +13 -4
- package/types/tectra-ng-charts-pie.d.ts.map +1 -1
- package/types/tectra-ng-charts-radar.d.ts +1 -1
- package/types/tectra-ng-charts-radial-bar.d.ts +3 -2
- package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
- package/types/tectra-ng-charts-range-area.d.ts +12 -3
- package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
- package/types/tectra-ng-charts-rank-line.d.ts +28 -10
- package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
- package/types/tectra-ng-charts-sankey.d.ts +36 -9
- package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
- package/types/tectra-ng-charts-segmented-bar.d.ts +11 -2
- package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
- package/types/tectra-ng-charts-sunburst.d.ts +10 -0
- package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
- package/types/tectra-ng-charts-treemap.d.ts +1 -1
- package/types/tectra-ng-charts-waterfall.d.ts +25 -6
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
- package/types/tectra-ng-charts.d.ts +1 -1
- package/waterfall/README.md +5 -5
package/sankey/README.md
CHANGED
|
@@ -14,7 +14,7 @@ import { TxSankeyChart } from '@tectra-ng/charts/sankey';
|
|
|
14
14
|
| Name | Description |
|
|
15
15
|
|---|---|
|
|
16
16
|
| links | `{ source, target, value, color? }[]` — flows between node ids; self links, zero values and links that close a cycle are left out. An empty list shows "No data" |
|
|
17
|
-
| nodes | `{ id, label?, color? }[]` — optional names and colours; nodes found only in `links` use their id as the name |
|
|
17
|
+
| nodes | `{ id, label?, color? }[]` — optional names and colours; nodes found only in `links` use their id as the name. Names sit right of their nodes (left in the last column); a name that would run into a node or another name moves to the other side, drops its value, is shortened or is hidden (the tooltip still names the node) |
|
|
18
18
|
| height | Height in px (360), or a CSS size such as `'100%'` of a parent with a definite height |
|
|
19
19
|
| align | `justify` (default) — nodes without outgoing flows stand in the last column; `left` — every node stands right after its sources |
|
|
20
20
|
| showValues | Writes the value after each node name when it fits (on by default) |
|
package/segmented-bar/README.md
CHANGED
|
@@ -21,9 +21,10 @@ import { TxSegmentedBar } from '@tectra-ng/charts/segmented-bar';
|
|
|
21
21
|
| hideEmptyInLegend | Leaves parts with no value out of the legend |
|
|
22
22
|
| monoLabels | Writes the legend labels in the monospace font (codes, ids) |
|
|
23
23
|
| valueFormat | Format of values: `number`, `integer`, `compact`, `percent` or a function |
|
|
24
|
+
| loading | Shows a skeleton bar and legend of the same size |
|
|
24
25
|
| ariaLabel | What the bar shows; names the legend list, or starts the summary read on the bar when the legend is hidden |
|
|
25
26
|
| dt | Design tokens of this bar (`chart`, group `segmentedBar`) |
|
|
26
|
-
| pt | Classes and styles of the parts: `root`, `track`, `segment`, `legend`, `legendItem`, `dot`, `label`, `value`, `percent`, `aside` |
|
|
27
|
+
| pt | Classes and styles of the parts: `root`, `track`, `segment`, `legend`, `legendItem`, `dot`, `label`, `value`, `percent`, `aside`, `skeleton` |
|
|
27
28
|
| ptOptions | How `pt` merges with the global pass-through |
|
|
28
29
|
| unstyled | Removes the tectra styles and keeps the behaviour |
|
|
29
30
|
|
package/treemap/README.md
CHANGED
|
@@ -19,7 +19,7 @@ import { TxTreemap } from '@tectra-ng/charts/treemap';
|
|
|
19
19
|
| showValues | Writes the formatted value under the name when it fits |
|
|
20
20
|
| showTooltip | Shows the tooltip on hover and keyboard focus |
|
|
21
21
|
| tooltipFormatter | `(value, { seriesIndex, dataPointIndex }) => string` for the tooltip value |
|
|
22
|
-
| valueFormat | Format of values: `number`, `integer`, `compact`, `percent` or a function |
|
|
22
|
+
| valueFormat | Format of values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function |
|
|
23
23
|
| loading | Shows a skeleton of the same size |
|
|
24
24
|
| ariaLabel | What the treemap shows; starts the summary read by screen readers |
|
|
25
25
|
| dt | Design tokens of this treemap (`chart`, group `treemap`) |
|
|
@@ -49,7 +49,7 @@ export declare class TxBarList {
|
|
|
49
49
|
readonly items: import("@angular/core").InputSignal<readonly TxBarListItem[] | null | undefined>;
|
|
50
50
|
/** How many rows to show (10); the percent stays the share of the whole total */
|
|
51
51
|
readonly limit: import("@angular/core").InputSignal<number>;
|
|
52
|
-
/** Format of values: `number`, `integer`, `compact`, `percent` or a function */
|
|
52
|
+
/** Format of values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
53
53
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
54
54
|
/** Shows skeleton rows */
|
|
55
55
|
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -122,7 +122,7 @@ export declare class TxBoxplotChart {
|
|
|
122
122
|
readonly legendAlign: import("@angular/core").InputSignal<TxChartLegendAlign>;
|
|
123
123
|
/** Shows the five numbers and the count of outliers on hover and keyboard focus */
|
|
124
124
|
readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
125
|
-
/** Value axis and tooltip format: `number`, `integer`, `compact`, `percent` or a function */
|
|
125
|
+
/** Value axis and tooltip format: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
126
126
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
127
127
|
/** Fixed start of the value axis */
|
|
128
128
|
readonly yMin: import("@angular/core").InputSignal<number | undefined>;
|
|
@@ -112,7 +112,7 @@ export declare class TxBulletChart {
|
|
|
112
112
|
readonly height: import("@angular/core").InputSignal<TxChartHeight | undefined>;
|
|
113
113
|
/** Shows the value and the target on hover and keyboard focus */
|
|
114
114
|
readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
115
|
-
/** Format of the axis and the tooltip: `number`, `integer`, `compact`, `percent` or a function */
|
|
115
|
+
/** Format of the axis and the tooltip: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
116
116
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
117
117
|
/** Grid lines: `value` (default), `category`, `both` or `none` */
|
|
118
118
|
readonly grid: import("@angular/core").InputSignal<TxChartGridMode>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TxChartGridMode, TxChartHeight, TxChartLabelMode, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate, TxChartValueFormat, TxRange } from "@tectra-ng/charts/core";
|
|
1
|
+
import { TxChartGridMode, TxChartHeight, TxChartLabelMode, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate, TxChartValueFormat, TxRange, TxTimeInterval } from "@tectra-ng/charts/core";
|
|
2
2
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
3
3
|
import { TectraChartTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -61,8 +61,12 @@ export interface TxCandleEvent {
|
|
|
61
61
|
}
|
|
62
62
|
/** Timestamps of the candles when every `x` is a `Date` or an ISO date string; `null` otherwise. */
|
|
63
63
|
export declare function candleTimes(candles: readonly TxCandle[]): number[] | null;
|
|
64
|
+
/** Calendar step of the candles: the step that covers the smallest gap between two of them, a day for a single candle. */
|
|
65
|
+
export declare function candleStep(times: readonly number[]): TxTimeInterval;
|
|
64
66
|
/**
|
|
65
|
-
* Axis and tooltip labels of the candles: formatted
|
|
67
|
+
* Axis and tooltip labels of the candles: dates formatted by the step of the data for time data, the `x` values as text
|
|
68
|
+
* otherwise. Axis labels are unique: when the step format repeats a label the full date is used, and a label equal to the
|
|
69
|
+
* one before it is left blank.
|
|
66
70
|
*/
|
|
67
71
|
export declare function candleLabels(candles: readonly TxCandle[], intl: string): {
|
|
68
72
|
axis: string[];
|
|
@@ -105,7 +109,7 @@ export declare class TxCandlestickChart {
|
|
|
105
109
|
readonly yAxisTitle: import("@angular/core").InputSignal<string>;
|
|
106
110
|
/** Grid lines: `value` (default), `category`, `both` or `none` */
|
|
107
111
|
readonly grid: import("@angular/core").InputSignal<TxChartGridMode>;
|
|
108
|
-
/** Date labels that do not fit: `skip` (default), `auto` or `rotate
|
|
112
|
+
/** Date labels that do not fit: `skip` (default), `auto` or `rotate`. Dates are written by the step of the data (days for daily and weekly candles, months for monthly ones), so no two labels repeat */
|
|
109
113
|
readonly labelMode: import("@angular/core").InputSignal<TxChartLabelMode>;
|
|
110
114
|
/** Side of the price axis: `right` (default) or `left` */
|
|
111
115
|
readonly yAxisPosition: import("@angular/core").InputSignal<"left" | "right">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-candlestick.d.ts","names":[],"sources":["../../../../packages/charts/candlestick/src/candlestick-chart.types.ts","../../../../packages/charts/candlestick/src/candlestick-layout.ts","../../../../packages/charts/candlestick/src/candlestick-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf,qBAAqB;;EAErB;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;YAGA,yBAAyB;;iBAGpB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,QAAQ;;;wBCvDM,YAAY,kBAAkB
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-candlestick.d.ts","names":[],"sources":["../../../../packages/charts/candlestick/src/candlestick-chart.types.ts","../../../../packages/charts/candlestick/src/candlestick-layout.ts","../../../../packages/charts/candlestick/src/candlestick-chart.component.ts"],"mappings":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;;;;;;;;EAiClB,UAAU,OAAO;EAejB,WAAW,OAAO;UAgBV;SA9MG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAkB;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
|
|
@@ -87,7 +87,7 @@ export interface TxColumnLayoutInput {
|
|
|
87
87
|
/** Lays out the bars of a grouped or stacked column chart, with their data labels. */
|
|
88
88
|
export declare function columnBars(input: TxColumnLayoutInput): TxColumnChartBar[];
|
|
89
89
|
/**
|
|
90
|
-
* `<tx-column-chart>` — columns or horizontal bars for comparing values across categories:
|
|
90
|
+
* `<tx-column-chart>` — columns or horizontal bars for comparing values across categories: grouped side by side (default), stacked or 100% stacked. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
|
|
91
91
|
* @see https://tectra-ng.com/components/column-chart
|
|
92
92
|
*/
|
|
93
93
|
export declare class TxColumnChart {
|
|
@@ -101,7 +101,7 @@ export declare class TxColumnChart {
|
|
|
101
101
|
readonly categories: import("@angular/core").InputSignal<readonly (string | number | Date)[] | null | undefined>;
|
|
102
102
|
/** Marks on the plot: `{ type: 'x-line', x }`, `{ type: 'y-line', y }`, `{ type: 'x-band', from, to }`, `{ type: 'y-band', from, to }`, `{ type: 'point', x, y }`, each with an optional `label`, `tone` (`neutral`, `primary`, `success`, `info`, `warn`, `danger`) or `color`; `x` is a category label or index; an `x-band` covers whole categories. In a horizontal chart the lines turn with the axes */
|
|
103
103
|
readonly annotations: import("@angular/core").InputSignal<readonly TxChartAnnotation[] | null | undefined>;
|
|
104
|
-
/** Stacks the series
|
|
104
|
+
/** Stacks the series; by default they are grouped side by side */
|
|
105
105
|
readonly stacked: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
106
106
|
/** `normal` or `100%` (every category to 100%; also turns stacking on) */
|
|
107
107
|
readonly stackType: import("@angular/core").InputSignal<TxColumnChartStackType>;
|
|
@@ -125,7 +125,7 @@ export declare class TxColumnChart {
|
|
|
125
125
|
readonly tooltipMode: import("@angular/core").InputSignal<TxChartTooltipMode>;
|
|
126
126
|
/** `(value, { seriesIndex, dataPointIndex }) => string` for tooltip and data label values; default — the locale number format */
|
|
127
127
|
readonly tooltipFormatter: import("@angular/core").InputSignal<TxChartTooltipFormatter | null>;
|
|
128
|
-
/** Value axis format: `number`, `integer`, `compact`, `percent` or a function */
|
|
128
|
+
/** Value axis format: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
129
129
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
130
130
|
/** `linear` or `log` */
|
|
131
131
|
readonly yScale: import("@angular/core").InputSignal<TxValueScaleKind>;
|
|
@@ -152,7 +152,7 @@ export declare class TxComboChart {
|
|
|
152
152
|
readonly tooltipMode: import("@angular/core").InputSignal<TxChartTooltipMode>;
|
|
153
153
|
/** `(value, { seriesIndex, dataPointIndex }) => string` for tooltip values; default — the format of the series' axis */
|
|
154
154
|
readonly tooltipFormatter: import("@angular/core").InputSignal<TxChartTooltipFormatter | null>;
|
|
155
|
-
/** Format of the main value axis: `number`, `integer`, `compact`, `percent` or a function */
|
|
155
|
+
/** Format of the main value axis: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
156
156
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
157
157
|
/** Format of the second value axis; the main one by default */
|
|
158
158
|
readonly y2ValueFormat: import("@angular/core").InputSignal<TxChartValueFormat | undefined>;
|
|
@@ -92,8 +92,18 @@ export interface TxChartSeries {
|
|
|
92
92
|
}
|
|
93
93
|
/** Turns a value into the text shown for it. */
|
|
94
94
|
export type TxChartValueFormatter = (value: number) => string;
|
|
95
|
-
/**
|
|
96
|
-
export
|
|
95
|
+
/** Money format of chart values in the active locale: compact on the axes, in full in tooltips and labels. */
|
|
96
|
+
export interface TxChartCurrencyFormat {
|
|
97
|
+
/** ISO 4217 code of the currency, like `USD` or `EUR`. */
|
|
98
|
+
currency: string;
|
|
99
|
+
/** How the currency is written: `symbol` (default, `$`), `narrowSymbol`, `code` (`USD`) or `name` (`US dollars`). */
|
|
100
|
+
currencyDisplay?: Intl.NumberFormatOptions['currencyDisplay'];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* How values are written: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`)
|
|
104
|
+
* or an own formatter function.
|
|
105
|
+
*/
|
|
106
|
+
export type TxChartValueFormat = 'number' | 'integer' | 'compact' | 'percent' | TxChartCurrencyFormat | TxChartValueFormatter;
|
|
97
107
|
/** Which point a tooltip value belongs to. */
|
|
98
108
|
export interface TxChartTooltipContext {
|
|
99
109
|
/** Index of the series. */
|
|
@@ -338,15 +348,18 @@ export interface TxChartKeyEvent {
|
|
|
338
348
|
}
|
|
339
349
|
/**
|
|
340
350
|
* Round step (1, 2, 5 times a power of ten) that gives about `count` ticks between two numbers; `0`
|
|
341
|
-
* when it cannot.
|
|
351
|
+
* when it cannot. With `integer` the step is a whole number, at least 1.
|
|
342
352
|
*/
|
|
343
|
-
export declare function tickStep(start: number, stop: number, count: number): number;
|
|
353
|
+
export declare function tickStep(start: number, stop: number, count: number, integer?: boolean): number;
|
|
344
354
|
/** Number of decimals a step needs to be written exactly. */
|
|
345
355
|
export declare function decimalsOf(step: number): number;
|
|
346
|
-
/**
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
356
|
+
/**
|
|
357
|
+
* Widens a range to round numbers, for example `[3, 97]` to `[0, 100]`; with `integer` the tick step
|
|
358
|
+
* is a whole number.
|
|
359
|
+
*/
|
|
360
|
+
export declare function niceDomain(min: number, max: number, count?: number, integer?: boolean): TxRange;
|
|
361
|
+
/** Round tick values between `min` and `max`, about `count` of them; with `integer` only whole numbers. */
|
|
362
|
+
export declare function linearTicks(min: number, max: number, count?: number, integer?: boolean): number[];
|
|
350
363
|
/** Linear scale from a value domain to a pixel range. */
|
|
351
364
|
export declare function linearScale(domain: TxRange, range: TxRange): TxContinuousScale;
|
|
352
365
|
/** Widens a range to whole powers of ten for a logarithmic scale. */
|
|
@@ -390,14 +403,19 @@ export declare function numberFormat(intl: string, options?: Intl.NumberFormatOp
|
|
|
390
403
|
export declare function dateFormat(intl: string, options: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
|
|
391
404
|
/**
|
|
392
405
|
* Builds the value formatter of a chart for a locale and a `TxChartValueFormat`; `percent` takes
|
|
393
|
-
* values already in percent.
|
|
406
|
+
* values already in percent, a currency is written in full (`$36,400`).
|
|
394
407
|
*/
|
|
395
408
|
export declare function chartNumberFormatter(intl: string, format?: TxChartValueFormat): TxChartValueFormatter;
|
|
396
409
|
/**
|
|
397
410
|
* Like `chartNumberFormatter` but writes `number` and `integer` ticks with as many decimals as the
|
|
398
|
-
* tick step needs.
|
|
411
|
+
* tick step needs, and a currency in compact form (`$36K`).
|
|
399
412
|
*/
|
|
400
413
|
export declare function tickFormatter(intl: string, ticks: readonly number[], format?: TxChartValueFormat): TxChartValueFormatter;
|
|
414
|
+
/**
|
|
415
|
+
* Short formatter for axes and tight labels: a currency in compact form (`$36K`), `percent` and
|
|
416
|
+
* `integer` as they are, other formats as `compact`.
|
|
417
|
+
*/
|
|
418
|
+
export declare function compactValueFormatter(intl: string, format?: TxChartValueFormat): TxChartValueFormatter;
|
|
401
419
|
/** Writes a number in compact form, for example `1234567` as `1.2M`. */
|
|
402
420
|
export declare function compactNumber(value: number, intl?: string): string;
|
|
403
421
|
/** `Intl.DateTimeFormat` options for tick labels of a time step over a time span in ms. */
|
|
@@ -653,6 +671,23 @@ export declare function chartHeightValue(height: TxChartHeight, fallback?: numbe
|
|
|
653
671
|
export declare function chartBoxHeight(height: TxChartHeight, legend: TxChartLegendPosition | null, toolbar?: boolean): number;
|
|
654
672
|
/** Size of the plot box for the first render, before the chart is measured. */
|
|
655
673
|
export declare function initialChartSize(height: TxChartHeight, legend: TxChartLegendPosition | null, width?: number, toolbar?: boolean): TxChartSize;
|
|
674
|
+
/** Width of a chart below which a legend on the left or right moves under the plot, in px. */
|
|
675
|
+
export declare const TX_CHART_NARROW_WIDTH = 420;
|
|
676
|
+
/**
|
|
677
|
+
* Where a legend goes for the chart width: a `left` or `right` legend moves to the `bottom` when the
|
|
678
|
+
* chart is narrower than `narrowWidth`; an unknown width keeps the asked position.
|
|
679
|
+
*/
|
|
680
|
+
export declare function chartLegendPlace(position: TxChartLegendPosition, width: number | null, narrowWidth?: number): TxChartLegendPosition;
|
|
681
|
+
/**
|
|
682
|
+
* Width of the host element of the current component, measured in the browser after the first render
|
|
683
|
+
* and on every resize; `null` on the server and before the first measure.
|
|
684
|
+
*/
|
|
685
|
+
export declare function injectHostWidth(): Signal<number | null>;
|
|
686
|
+
/**
|
|
687
|
+
* Legend position of the chart in the current injection context that follows its width: a side legend
|
|
688
|
+
* moves under the plot on a narrow chart (see `chartLegendPlace`).
|
|
689
|
+
*/
|
|
690
|
+
export declare function injectLegendPlace(position: () => TxChartLegendPosition): Signal<TxChartLegendPosition>;
|
|
656
691
|
/** Length of the entrance animation of a chart, in ms. */
|
|
657
692
|
export declare const TX_CHART_ENTER_MS = 1100;
|
|
658
693
|
/** Entrance animation state of a chart. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-core.d.ts","names":[],"sources":["../../../../packages/charts/core/src/chart.types.ts","../../../../packages/charts/core/src/scale.ts","../../../../packages/charts/core/src/format.ts","../../../../packages/charts/core/src/curve.ts","../../../../packages/charts/core/src/polar.ts","../../../../packages/charts/core/src/stack.ts","../../../../packages/charts/core/src/decimate.ts","../../../../packages/charts/core/src/palette.ts","../../../../packages/charts/core/src/cartesian.ts","../../../../packages/charts/core/src/chart-size.ts","../../../../packages/charts/core/src/chart-motion.ts","../../../../packages/charts/core/src/chart-templates.directive.ts","../../../../packages/charts/core/src/chart-legend.component.ts","../../../../packages/charts/core/src/chart-axes.component.ts","../../../../packages/charts/core/src/chart-hover-band.component.ts","../../../../packages/charts/core/src/chart-annotations.ts","../../../../packages/charts/core/src/chart-annotations.component.ts","../../../../packages/charts/core/src/chart-export.ts","../../../../packages/charts/core/src/chart-menu.component.ts","../../../../packages/charts/core/src/chart-frame.component.ts","../../../../packages/charts/core/src/series-data.ts","../../../../packages/charts/core/src/chart-interaction.ts","../../../../packages/charts/core/src/chart-token.ts"],"mappings":";;;;;;YACY;;iBAGK;;EAEf;;EAEA,QAAQ;;EAER,OAAO;;EAEP,IAAI;;EAEJ,OAAO;;EAEP,MAAM;;;YAII;;iBAGK;;EAEf,MAAM;;EAEN;;EAEA;;;iBAIe,oBAAoB;;EAEnC;;EAEA,SAAS,iBAAiB;;;iBAIX;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;EAEA;;EAEA,MAAM;;EAEN,OAAO;;EAEP,QAAQ;;;iBAIO;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;EAEA,GAAG;;EAEH,QAAQ;;;YAIE,6BAA6B;;iBAGxB;;EAEf,GAAG;;EAEH;;;iBAIe;;EAEf;;EAEA,4CAA4C;;EAE5C;;;YAIU,yBAAyB;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-core.d.ts","names":[],"sources":["../../../../packages/charts/core/src/chart.types.ts","../../../../packages/charts/core/src/scale.ts","../../../../packages/charts/core/src/format.ts","../../../../packages/charts/core/src/curve.ts","../../../../packages/charts/core/src/polar.ts","../../../../packages/charts/core/src/stack.ts","../../../../packages/charts/core/src/decimate.ts","../../../../packages/charts/core/src/palette.ts","../../../../packages/charts/core/src/cartesian.ts","../../../../packages/charts/core/src/chart-size.ts","../../../../packages/charts/core/src/chart-legend-place.ts","../../../../packages/charts/core/src/chart-motion.ts","../../../../packages/charts/core/src/chart-templates.directive.ts","../../../../packages/charts/core/src/chart-legend.component.ts","../../../../packages/charts/core/src/chart-axes.component.ts","../../../../packages/charts/core/src/chart-hover-band.component.ts","../../../../packages/charts/core/src/chart-annotations.ts","../../../../packages/charts/core/src/chart-annotations.component.ts","../../../../packages/charts/core/src/chart-export.ts","../../../../packages/charts/core/src/chart-menu.component.ts","../../../../packages/charts/core/src/chart-frame.component.ts","../../../../packages/charts/core/src/series-data.ts","../../../../packages/charts/core/src/chart-interaction.ts","../../../../packages/charts/core/src/chart-token.ts"],"mappings":";;;;;;YACY;;iBAGK;;EAEf;;EAEA,QAAQ;;EAER,OAAO;;EAEP,IAAI;;EAEJ,OAAO;;EAEP,MAAM;;;YAII;;iBAGK;;EAEf,MAAM;;EAEN;;EAEA;;;iBAIe,oBAAoB;;EAEnC;;EAEA,SAAS,iBAAiB;;;iBAIX;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;EAEA;;EAEA,MAAM;;EAEN,OAAO;;EAEP,QAAQ;;;iBAIO;;EAEf;;EAEA;;EAEA,OAAO;;EAEP;;EAEA,GAAG;;EAEH,QAAQ;;;YAIE,6BAA6B;;iBAGxB;;EAEf,GAAG;;EAEH;;;iBAIe;;EAEf;;EAEA,4CAA4C;;EAE5C;;;YAIU,yBAAyB;;iBAGpB;;EAEf;;EAEA,kBAAkB,KAAK;;;;;;YAOb,oEAAoE,wBAAwB;;iBAGvF;;EAEf;;EAEA;;;YAIU,2BAA2B,eAAe,SAAS;;YAGnD;;YAGA;;YAGA;;YAGA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Ac,gBACd,cACA,cACA,qBACA,oBACA;;qBAOW;;wBAGG,UAAU,eAAe;;wBASzB,WACd,2BACA;EAAmB;EAAc;KACjC,SAAS,eAAe,gCACxB,iBACC;;iBC1Ic;;EAEf;;EAEA;;EAEA;;EAEA;;;wBAIc,UAAU,MAAM,qBAAqB,cAAc;;wBAWnD,UAAU,aAAa,eAAe,eAAe,kBAAwB;;wBAa7E,WAAW,eAAe,cAAc;;;;;wBCjCxC,gBAAgB,SAAS,4BAA4B,cAAc;;;;;wBAanE,WAAW,yCAAyC"}
|
|
@@ -108,6 +108,11 @@ export declare function funnelConnectorPath(upper: TxFunnelBox, lower: TxFunnelB
|
|
|
108
108
|
export declare function funnelRate(value: number, base: number): number;
|
|
109
109
|
/** Index of the box at a vertical position, counting the gaps to the nearest box; -1 outside the funnel. */
|
|
110
110
|
export declare function funnelIndexAt(boxes: readonly TxFunnelBox[], y: number): number;
|
|
111
|
+
/**
|
|
112
|
+
* Splits a step name into at most `maxLines` lines that fit `maxWidth` at a font size, breaking
|
|
113
|
+
* between words; the last line is shortened with an ellipsis when the rest still does not fit.
|
|
114
|
+
*/
|
|
115
|
+
export declare function funnelLabelLines(text: string, maxWidth: number, fontSize: number, maxLines?: number): string[];
|
|
111
116
|
/**
|
|
112
117
|
* `<tx-funnel-chart>` — how many pass each step of a process: visits, sign-ups, trials, purchases. Centred bars sized by value, soft connectors between them and the conversion from the step before. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
|
|
113
118
|
* @see https://tectra-ng.com/components/funnel-chart
|
|
@@ -123,7 +128,7 @@ export declare class TxFunnelChart {
|
|
|
123
128
|
readonly height: import("@angular/core").InputSignal<TxChartHeight>;
|
|
124
129
|
/** Gives every step its own palette colour; by default the funnel is one colour */
|
|
125
130
|
readonly colorful: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
126
|
-
/** Writes the step names in a column on the left (on by default) */
|
|
131
|
+
/** Writes the step names in a column on the left (on by default), as wide as the longest name up to 40% of the chart (`chart.funnel.labelWidth`); a longer name wraps onto two lines between words, then is cut with the full name in a hint */
|
|
127
132
|
readonly showLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
128
133
|
/** Writes the values on the bars, or beside a bar that is too narrow (on by default) */
|
|
129
134
|
readonly showValues: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -133,7 +138,7 @@ export declare class TxFunnelChart {
|
|
|
133
138
|
readonly connectors: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
134
139
|
/** Shows the value, the share of the first step and the conversion on hover and keyboard focus */
|
|
135
140
|
readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
136
|
-
/** Format of the values: `number`, `integer`, `compact`, `percent` or a function */
|
|
141
|
+
/** Format of the values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
137
142
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
138
143
|
/** Shows the chart menu: download SVG, PNG or CSV (the file is named after `ariaLabel`) */
|
|
139
144
|
readonly toolbar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -176,6 +181,7 @@ export declare class TxFunnelChart {
|
|
|
176
181
|
readonly size: import("@angular/core").WritableSignal<import("@tectra-ng/charts/core").TxChartSize>;
|
|
177
182
|
readonly valueFormatter: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxChartValueFormatter>;
|
|
178
183
|
readonly percentFormatter: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxChartValueFormatter>;
|
|
184
|
+
readonly labelSpace: import("@angular/core").Signal<number>;
|
|
179
185
|
readonly labelColumn: import("@angular/core").Signal<number>;
|
|
180
186
|
readonly stages: import("@angular/core").Signal<TxFunnelStage[]>;
|
|
181
187
|
readonly connectorShapes: import("@angular/core").Signal<TxFunnelConnector[]>;
|
|
@@ -184,6 +190,7 @@ export declare class TxFunnelChart {
|
|
|
184
190
|
key: string;
|
|
185
191
|
index: number;
|
|
186
192
|
label: string;
|
|
193
|
+
lines: string[];
|
|
187
194
|
full: string;
|
|
188
195
|
labelX: number;
|
|
189
196
|
y: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-funnel.d.ts","names":[],"sources":["../../../../packages/charts/funnel/src/funnel-chart.types.ts","../../../../packages/charts/funnel/src/funnel-layout.ts","../../../../packages/charts/funnel/src/funnel-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;;YAIU,oBAAoB;;iBAGf;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-funnel.d.ts","names":[],"sources":["../../../../packages/charts/funnel/src/funnel-chart.types.ts","../../../../packages/charts/funnel/src/funnel-layout.ts","../../../../packages/charts/funnel/src/funnel-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;;YAIU,oBAAoB;;iBAGf;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;iBCnEe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;wBAMc,YAAY,OAAO,sBAAsB;;wBAczC,oBAAoB,OAAO,aAAa,OAAO;;wBAM/C,WAAW,eAAe;;wBAK1B,cAAc,gBAAgB,eAAe;;;;;wBAa7C,iBAAiB,cAAc,kBAAkB,kBAAkB;;;;;qBCVtE;m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