@nanahoshi/mona-ui 0.26.0 → 0.26.2
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/chart/README.md +2 -2
- package/docs/chart-bar.md +714 -0
- package/docs/chart-financial.md +567 -0
- package/docs/chart-funnel.md +546 -0
- package/docs/chart-heatmap.md +535 -0
- package/docs/chart-line-area.md +462 -0
- package/docs/chart-pie.md +645 -0
- package/docs/chart-radar.md +518 -0
- package/docs/chart-radial.md +658 -0
- package/docs/chart-scatter.md +479 -0
- package/docs/chart-treemap.md +651 -0
- package/docs/chart.md +263 -1856
- package/fesm2022/nanahoshi-mona-ui-button.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +126 -66
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +5 -8
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +7 -2
- package/llms.txt +11 -1
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-chart.d.ts +50 -20
- package/types/nanahoshi-mona-ui-internal.d.ts +6 -2
package/docs/chart.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Chart
|
|
1
|
+
# Chart Overview
|
|
2
2
|
|
|
3
3
|
> High-performance Canvas charts composed from series, axes and interaction parts.
|
|
4
4
|
|
|
@@ -6,57 +6,73 @@ Entry point: `@nanahoshi/mona-ui/chart`
|
|
|
6
6
|
|
|
7
7
|
**Selector:** `mona-chart`
|
|
8
8
|
|
|
9
|
-
`ChartComponent`
|
|
10
|
-
|
|
11
|
-
### Key Highlights
|
|
12
|
-
|
|
13
|
-
- **High Performance Canvas 2D Backing Store**: Smooth rendering with sub-pixel DPR scaling and zero SVG DOM bloat for high-density datasets.
|
|
14
|
-
- **Declarative Angular 22 Composition**: Compose `<mona-line-series>`, `<mona-area-series>`, `<mona-bar-series>`, `<mona-range-bar-series>`, `<mona-range-area-series>`, `<mona-scatter-series>`, `<mona-bubble-series>`, `<mona-candlestick-series>`, `<mona-ohlc-series>`, `<mona-waterfall-series>`, `<mona-funnel-series>`, `<mona-treemap-series>`, `<mona-heatmap-series>`, `<mona-pie-series>`, `<mona-donut-series>`, `<mona-radar-series>`, `<mona-polar-series>`, `<mona-radial-bar-series>`, `<mona-rose-series>`, `<mona-gauge-series>`, `<mona-chart-x-axis>`, `<mona-chart-y-axis>`, `<mona-chart-angular-axis>`, `<mona-chart-radial-axis>`, `<mona-chart-legend>`, `<mona-chart-tooltip>`, `<mona-chart-crosshair>`, `<mona-chart-reference-line>`, `<mona-chart-reference-band>`, and `<mona-chart-annotation>`.
|
|
15
|
-
- **Interactive Crosshairs & Overlays**: Multi-axis crosshair guide lines with snapped or raw pointer axis label badges, static reference lines and bands in underlay/overlay layers with threshold labels, and targeted point annotations with connector leaders, markers, and custom DOM template badges.
|
|
16
|
-
- **Cartesian, Financial, Heatmap, Funnel, Waterfall, Sector & Polar Axis Support**: Multi-series line, area, grouped/stacked bar, floating range bar, continuous range area, scatter, bubble, financial candlestick & OHLC bars, conversion funnels with step drop-off analytics, cash-flow and contribution waterfalls with change, subtotal, and total steps, heatmaps with custom color ramps, hierarchical treemaps with squarify tiling, alongside full and partial pie/donut charts, multi-metric radar charts with polygon/circular grid rings, and continuous polar charts mapping directional signals across 360 degrees.
|
|
17
|
-
- **Radial Fill Modes & Gradients**: Slices and radial series support uniform `solid` washes, soft radial `gradient` fills transitioning from transparent at the pole/inner radius to the outer boundary, and outline-only modes.
|
|
18
|
-
- **D3 Math Core**: Robust categorical band scales, continuous linear scales, temporal scales, and D3 `pie`/`arc`/`lineRadial`/`areaRadial`/`treemap` geometry without third-party rendering lock-in.
|
|
19
|
-
- **Theme-Aware Styling**: Seamless integration with `@nanahoshi/mona-ui/theme` palette tokens (`--color-chart-1` through `--color-chart-5`), dark mode, financial directional tokens (`--mona-chart-financial-rising-color`, `--mona-chart-financial-falling-color`), waterfall delta tokens, and CVA recipes.
|
|
20
|
-
- **WCAG AA / AXE Accessibility**: ARIA region container, live region announcements on focus/navigation, interactive series and slice legend toggling, and full arrow-key keyboard exploration across spokes, slices, stages, bars, and series.
|
|
9
|
+
`ChartComponent` draws charts on a Canvas from parts you write as markup: series, the axes they sit on, and optional parts for the legend, the tooltip, crosshairs, reference lines, annotations, selection and brushing. This page covers what every chart shares: the chart itself, its axes and interaction parts, synchronization between charts, dense data, locale, direction and accessibility. Each family of series has its own page.
|
|
21
10
|
|
|
22
11
|
## Overview
|
|
23
12
|
|
|
24
|
-
|
|
13
|
+
A chart is a `mona-chart` with parts inside it: one or more series, the axes they're drawn on, and optional parts for the legend, the tooltip and interaction. Every part is a component, so a chart is written as markup and changes when its inputs do. Charts draw on a Canvas, so they stay fast with large data, and keep an accessible description, live announcements and keyboard navigation alongside.
|
|
25
14
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
15
|
+
This page covers what every chart shares. Each family of series has its own page, with a playground that covers all of its inputs:
|
|
16
|
+
|
|
17
|
+
| Page | Series | Draw |
|
|
18
|
+
| :--- | :--- | :--- |
|
|
19
|
+
| [Line & Area](chart-line-area.md) | `mona-line-series`, `mona-area-series`, `mona-range-area-series` | Trends, volumes and bands along an X axis |
|
|
20
|
+
| [Bar & Waterfall](chart-bar.md) | `mona-bar-series`, `mona-range-bar-series`, `mona-waterfall-series` | Comparisons, intervals and running totals |
|
|
21
|
+
| [Scatter & Bubble](chart-scatter.md) | `mona-scatter-series`, `mona-bubble-series` | Relationships between two or three numbers |
|
|
22
|
+
| [Financial](chart-financial.md) | `mona-candlestick-series`, `mona-ohlc-series` | Open, high, low and close prices |
|
|
23
|
+
| [Heatmap](chart-heatmap.md) | `mona-heatmap-series` | A grid of cells colored by value |
|
|
24
|
+
| [Pie & Donut](chart-pie.md) | `mona-pie-series`, `mona-donut-series` | Parts of a whole |
|
|
25
|
+
| [Funnel](chart-funnel.md) | `mona-funnel-series` | Stages that narrow, with conversion between them |
|
|
26
|
+
| [Treemap](chart-treemap.md) | `mona-treemap-series` | Hierarchies sized by value |
|
|
27
|
+
| [Radar & Polar](chart-radar.md) | `mona-radar-series`, `mona-polar-series` | Metrics or directions around a circle |
|
|
28
|
+
| [Radial](chart-radial.md) | `mona-radial-bar-series`, `mona-rose-series`, `mona-gauge-series` | Values as arcs around a center |
|
|
29
|
+
|
|
30
|
+
The X-Y series (line, area, range area, bar, range bar, scatter, bubble, candlestick and OHLC) can share one chart. Several radar series can share a chart, and so can several polar series, but not radar with polar. A chart takes one pie or donut, or one radial bar, rose or gauge, and a waterfall, funnel, heatmap or treemap series has its chart to itself. Cartesian and polar series never mix. A chart that breaks one of these rules logs a development warning.
|
|
32
31
|
|
|
33
32
|
## Import & Quick Start
|
|
34
33
|
|
|
34
|
+
Everything is imported from `@nanahoshi/mona-ui/chart`.
|
|
35
|
+
|
|
35
36
|
```typescript
|
|
36
37
|
import {
|
|
37
38
|
ChartComponent,
|
|
38
|
-
ChartAngularAxisComponent,
|
|
39
|
-
ChartRadialAxisComponent,
|
|
40
|
-
RadarSeriesComponent,
|
|
41
|
-
PolarSeriesComponent,
|
|
42
39
|
ChartLegendComponent,
|
|
43
|
-
ChartTooltipComponent
|
|
40
|
+
ChartTooltipComponent,
|
|
41
|
+
ChartXAxisComponent,
|
|
42
|
+
ChartYAxisComponent,
|
|
43
|
+
LineSeriesComponent
|
|
44
44
|
} from "@nanahoshi/mona-ui/chart";
|
|
45
|
-
import type { ChartField, ChartValueFormatter, ChartViewportState } from "@nanahoshi/mona-ui/chart";
|
|
46
45
|
```
|
|
47
46
|
|
|
48
47
|
```html
|
|
49
|
-
<mona-chart
|
|
50
|
-
<mona-chart-
|
|
51
|
-
<mona-chart-
|
|
52
|
-
<mona-
|
|
53
|
-
<mona-
|
|
48
|
+
<mona-chart aria-label="Monthly visitors" class="h-72 w-full" xField="month" [data]="visitors">
|
|
49
|
+
<mona-chart-x-axis />
|
|
50
|
+
<mona-chart-y-axis title="Visitors" />
|
|
51
|
+
<mona-line-series field="web" name="Web" />
|
|
52
|
+
<mona-line-series field="mobile" name="Mobile" />
|
|
53
|
+
<mona-chart-legend />
|
|
54
54
|
<mona-chart-tooltip [shared]="true" />
|
|
55
55
|
</mona-chart>
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
The chart fills its host, so give the host a size. Series read their rows from the chart's `data` and their X value from its `xField`, unless they set their own.
|
|
59
|
+
|
|
58
60
|
## Anatomy
|
|
59
61
|
|
|
62
|
+
| Part | Selector | Role |
|
|
63
|
+
| :--- | :--- | :--- |
|
|
64
|
+
| Chart | `mona-chart` | Holds the data, title, animation, navigation and synchronization, and is the element that takes focus. |
|
|
65
|
+
| Cartesian axes | `mona-chart-x-axis`, `mona-chart-y-axis` | Scales, ticks, grid lines and titles. Add more than one with `axisId`, and bind series to them with `xAxisId` and `yAxisId`. |
|
|
66
|
+
| Polar axes | `mona-chart-angular-axis`, `mona-chart-radial-axis` | The axes of radar and polar series, described on [Radar & Polar](chart-radar.md). |
|
|
67
|
+
| Series | `mona-*-series` | The data marks, described on each family's page. |
|
|
68
|
+
| Legend | `mona-chart-legend` | Lists the series, or the slices of a pie, and toggles them. |
|
|
69
|
+
| Tooltip | `mona-chart-tooltip` | Shows the values under the pointer or the keyboard focus. |
|
|
70
|
+
| Crosshair | `mona-chart-crosshair` | Guide lines and axis badges that follow the pointer on Cartesian charts. |
|
|
71
|
+
| Reference line and band | `mona-chart-reference-line`, `mona-chart-reference-band` | A fixed value or range on an axis, such as a target or a threshold. |
|
|
72
|
+
| Annotation | `mona-chart-annotation` | A marker and callout attached to a data point. |
|
|
73
|
+
| Selection | `mona-chart-selection` | Lets users select points by click or keyboard. |
|
|
74
|
+
| Brush | `mona-chart-brush` | Lets users select the points inside a dragged range. |
|
|
75
|
+
|
|
60
76
|
### Template Directives
|
|
61
77
|
|
|
62
78
|
- `ng-template[monaChartTitleTemplate]`: Customizes the title with `{ $implicit, title }`.
|
|
@@ -65,238 +81,209 @@ import type { ChartField, ChartValueFormatter, ChartViewportState } from "@nanah
|
|
|
65
81
|
- `ng-template[monaChartAxisLabelTemplate]`: Customizes tick label markup with `{ $implicit, axis, axisId, index, position, scaleType, value }`.
|
|
66
82
|
- `ng-template[monaChartLegendItemTemplate]`: Customizes legend items with `{ $implicit, color, dataIndex, datum, interactive, itemId, kind, name, percentage, secondaryColor, series, seriesId, seriesType, value, visible }`.
|
|
67
83
|
- `ng-template[monaChartNoDataTemplate]`: Customizes the empty state when no renderable data is present.
|
|
68
|
-
- `ng-template[monaChartSliceLabelTemplate]`: Customizes pie and donut slice labels with `{ $implicit, category, color, dataIndex, datum, formattedCategory, formattedPercentage, formattedValue, percentage, seriesId, seriesName, seriesType, slice, value }`.
|
|
69
|
-
- `ng-template[monaChartCenterTemplate]`: Customizes the center of a donut with `{ $implicit, formattedTotal, seriesId, seriesName, total, visibleSliceCount }`.
|
|
70
|
-
- `ng-template[monaChartGaugeCenterTemplate]`: Customizes central gauge readout template with `{ $implicit, formattedMax, formattedMin, formattedValue, isClamped, max, min, ratio, seriesId, seriesName, value }`.
|
|
71
|
-
- `ng-template[monaChartTreemapLabelTemplate]`: Customizes DOM treemap node labels with `{ $implicit, bounds, color, datum, depth, formattedLabel, formattedPath, formattedValue, isCollapsed, isLeaf, label, node, nodeId, path, percentageOfParent, percentageOfRoot, textColor, value }`.
|
|
72
|
-
- `ng-template[monaChartFunnelLabelTemplate]`: Customizes DOM funnel stage labels with `{ $implicit, bounds, category, color, conversionRate, dataIndex, datum, dropOff, formattedCategory, formattedConversionRate, formattedOverallConversionRate, formattedValue, overallConversionRate, previousValue, stage, stageId, stageIndex, textColor, value }`.
|
|
73
|
-
- `ng-template[monaChartWaterfallLabelTemplate]`: Customizes DOM waterfall step labels with `{ $implicit, barEnd, barStart, bounds, category, color, cumulativeAfter, cumulativeBefore, dataIndex, datum, deltaValue, formattedCategory, formattedCumulativeAfter, formattedCumulativeBefore, formattedDelta, formattedValue, kind, step, textColor, value, visualKind }`.
|
|
74
84
|
- `ng-template[monaChartCrosshairLabelTemplate]` (or `[monaChartCrosshairLabel]`): Customizes DOM crosshair coordinate badges with `{ $implicit, axis, axisId, coordinate, formattedValue, snapped, source, value }`.
|
|
75
85
|
- `ng-template[monaChartReferenceLabelTemplate]` (or `[monaChartReferenceLabel]`): Customizes DOM reference line or band labels with `{ $implicit, axis, axisId, bounds, coordinate, formattedFrom, formattedTo, formattedValue, from, kind, to, value }`.
|
|
76
86
|
- `ng-template[monaChartAnnotationLabelTemplate]` (or `[monaChartAnnotationLabel]`): Customizes DOM point annotation callout badges with `{ $implicit, data, formattedX, formattedY, point, x, xAxisId, y, yAxisId }`.
|
|
77
87
|
- `ng-template[monaChartDataLabelTemplate]` (or `[monaChartDataLabel]`): Customizes data labels with `{ $implicit, close, color, dataIndex, datum, formattedClose, formattedFrom, formattedHigh, formattedLow, formattedOpen, formattedSize, formattedStackPercentage, formattedStackTotal, formattedTo, formattedValue, formattedX, formattedY, fromValue, high, low, markId, open, rawValue, selected, seriesId, seriesName, seriesType, sizeValue, stackEnd, stackMode, stackPercentage, stackStart, stackTotal, toValue, value, xValue, yValue }`.
|
|
88
|
+
- `ng-template[monaChartWaterfallLabelTemplate]`: Customizes [waterfall](chart-bar.md) step labels with `{ $implicit, barEnd, barStart, bounds, category, color, cumulativeAfter, cumulativeBefore, dataIndex, datum, deltaValue, formattedCategory, formattedCumulativeAfter, formattedCumulativeBefore, formattedDelta, formattedValue, kind, step, textColor, value, visualKind }`.
|
|
89
|
+
- `ng-template[monaChartSliceLabelTemplate]`: Customizes [pie and donut](chart-pie.md) slice labels with `{ $implicit, category, color, dataIndex, datum, formattedCategory, formattedPercentage, formattedValue, percentage, seriesId, seriesName, seriesType, slice, value }`.
|
|
90
|
+
- `ng-template[monaChartCenterTemplate]`: Customizes the center of a [donut](chart-pie.md) with `{ $implicit, formattedTotal, seriesId, seriesName, total, visibleSliceCount }`.
|
|
91
|
+
- `ng-template[monaChartFunnelLabelTemplate]`: Customizes [funnel](chart-funnel.md) stage labels with `{ $implicit, bounds, category, color, conversionRate, dataIndex, datum, dropOff, formattedCategory, formattedConversionRate, formattedOverallConversionRate, formattedValue, overallConversionRate, previousValue, stage, stageId, stageIndex, textColor, value }`.
|
|
92
|
+
- `ng-template[monaChartTreemapLabelTemplate]`: Customizes [treemap](chart-treemap.md) node labels with `{ $implicit, bounds, color, datum, depth, formattedLabel, formattedPath, formattedValue, isCollapsed, isLeaf, label, node, nodeId, path, percentageOfParent, percentageOfRoot, textColor, value }`.
|
|
93
|
+
- `ng-template[monaChartGaugeCenterTemplate]`: Customizes the readout in the middle of a [gauge](chart-radial.md) with `{ $implicit, formattedMax, formattedMin, formattedValue, isClamped, max, min, ratio, seriesId, seriesName, value }`.
|
|
94
|
+
|
|
95
|
+
The series templates, for slice, donut center, gauge center, treemap, funnel and waterfall labels, are described on their family's page.
|
|
78
96
|
|
|
79
97
|
Every directive types its `let-` variables under `strictTemplates`. `let-value` is the context's `$implicit`, which is the tick, line or annotation value, not the whole context: read other members by name, as in `let-axis="axis"`. Annotation data is `unknown`, so use `$any(data).note` or a typed method to read it.
|
|
80
98
|
|
|
81
99
|
## Examples
|
|
82
100
|
|
|
83
|
-
###
|
|
84
|
-
|
|
85
|
-
Series read their values from the chart's `data`, using `field` for the value and the chart's `xField` for the category.
|
|
86
|
-
|
|
87
|
-
`line-example.component.ts`
|
|
88
|
-
|
|
89
|
-
```typescript
|
|
90
|
-
import { Component } from "@angular/core";
|
|
91
|
-
import {
|
|
92
|
-
ChartComponent,
|
|
93
|
-
ChartLegendComponent,
|
|
94
|
-
ChartXAxisComponent,
|
|
95
|
-
ChartYAxisComponent,
|
|
96
|
-
LineSeriesComponent
|
|
97
|
-
} from "@nanahoshi/mona-ui/chart";
|
|
98
|
-
|
|
99
|
-
@Component({
|
|
100
|
-
selector: "app-chart-line-example",
|
|
101
|
-
imports: [ChartComponent, ChartLegendComponent, ChartXAxisComponent, ChartYAxisComponent, LineSeriesComponent],
|
|
102
|
-
templateUrl: "./line-example.component.html"
|
|
103
|
-
})
|
|
104
|
-
export class ChartLineExampleComponent {
|
|
105
|
-
protected readonly visitors = [
|
|
106
|
-
{ month: "Jan", mobile: 2100, web: 3200 },
|
|
107
|
-
{ month: "Feb", mobile: 2400, web: 3100 },
|
|
108
|
-
{ month: "Mar", mobile: 2900, web: 3500 },
|
|
109
|
-
{ month: "Apr", mobile: 3300, web: 3400 },
|
|
110
|
-
{ month: "May", mobile: 3800, web: 3700 },
|
|
111
|
-
{ month: "Jun", mobile: 4200, web: 3600 }
|
|
112
|
-
];
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
`line-example.component.html`
|
|
117
|
-
|
|
118
|
-
```html
|
|
119
|
-
<mona-chart aria-label="Monthly visitors by platform" class="h-72 w-full" xField="month" [data]="visitors">
|
|
120
|
-
<mona-chart-x-axis />
|
|
121
|
-
<mona-chart-y-axis title="Visitors" />
|
|
122
|
-
<mona-line-series curve="monotone-x" field="web" name="Web" [showPoints]="true" />
|
|
123
|
-
<mona-line-series curve="monotone-x" field="mobile" lineStyle="dashed" name="Mobile" [showPoints]="true" />
|
|
124
|
-
<mona-chart-legend position="bottom" />
|
|
125
|
-
</mona-chart>
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Stacked bars
|
|
101
|
+
### Custom tooltip
|
|
129
102
|
|
|
130
|
-
|
|
103
|
+
A shared tooltip shows every visible series at the active category. `ng-template[monaChartTooltipTemplate]` replaces its content.
|
|
131
104
|
|
|
132
|
-
`
|
|
105
|
+
`tooltip-example.component.ts`
|
|
133
106
|
|
|
134
107
|
```typescript
|
|
135
108
|
import { Component } from "@angular/core";
|
|
136
109
|
import {
|
|
137
|
-
|
|
110
|
+
AreaSeriesComponent,
|
|
138
111
|
ChartComponent,
|
|
139
|
-
ChartLegendComponent,
|
|
140
112
|
ChartTooltipComponent,
|
|
113
|
+
ChartTooltipTemplateDirective,
|
|
141
114
|
ChartXAxisComponent,
|
|
142
115
|
ChartYAxisComponent
|
|
143
116
|
} from "@nanahoshi/mona-ui/chart";
|
|
144
117
|
|
|
145
118
|
@Component({
|
|
146
|
-
selector: "app-chart-
|
|
119
|
+
selector: "app-chart-tooltip-example",
|
|
147
120
|
imports: [
|
|
148
|
-
|
|
121
|
+
AreaSeriesComponent,
|
|
149
122
|
ChartComponent,
|
|
150
|
-
ChartLegendComponent,
|
|
151
123
|
ChartTooltipComponent,
|
|
124
|
+
ChartTooltipTemplateDirective,
|
|
152
125
|
ChartXAxisComponent,
|
|
153
126
|
ChartYAxisComponent
|
|
154
127
|
],
|
|
155
|
-
templateUrl: "./
|
|
128
|
+
templateUrl: "./tooltip-example.component.html"
|
|
156
129
|
})
|
|
157
|
-
export class
|
|
158
|
-
protected readonly
|
|
159
|
-
{
|
|
160
|
-
{
|
|
161
|
-
{
|
|
162
|
-
{
|
|
130
|
+
export class ChartTooltipExampleComponent {
|
|
131
|
+
protected readonly usage = [
|
|
132
|
+
{ day: "Mon", downloads: 320, uploads: 140 },
|
|
133
|
+
{ day: "Tue", downloads: 410, uploads: 180 },
|
|
134
|
+
{ day: "Wed", downloads: 380, uploads: 210 },
|
|
135
|
+
{ day: "Thu", downloads: 520, uploads: 190 },
|
|
136
|
+
{ day: "Fri", downloads: 610, uploads: 260 },
|
|
137
|
+
{ day: "Sat", downloads: 290, uploads: 120 },
|
|
138
|
+
{ day: "Sun", downloads: 240, uploads: 90 }
|
|
163
139
|
];
|
|
164
140
|
|
|
165
|
-
protected
|
|
141
|
+
protected gigabytes = (value: unknown): string => `${String(value)} GB`;
|
|
166
142
|
}
|
|
167
143
|
```
|
|
168
144
|
|
|
169
|
-
`
|
|
145
|
+
`tooltip-example.component.html`
|
|
170
146
|
|
|
171
147
|
```html
|
|
172
|
-
<mona-chart aria-label="
|
|
148
|
+
<mona-chart aria-label="Daily data transfer" class="h-72 w-full" xField="day" [data]="usage">
|
|
173
149
|
<mona-chart-x-axis />
|
|
174
|
-
<mona-chart-y-axis
|
|
175
|
-
<mona-
|
|
176
|
-
<mona-
|
|
177
|
-
<mona-
|
|
178
|
-
|
|
179
|
-
|
|
150
|
+
<mona-chart-y-axis />
|
|
151
|
+
<mona-area-series field="downloads" name="Downloads" [valueFormatter]="gigabytes" />
|
|
152
|
+
<mona-area-series field="uploads" name="Uploads" [valueFormatter]="gigabytes" />
|
|
153
|
+
<mona-chart-tooltip [shared]="true">
|
|
154
|
+
<ng-template monaChartTooltipTemplate let-points="points">
|
|
155
|
+
<div class="min-w-36 rounded-md border border-border bg-popover p-2 text-xs text-popover-foreground">
|
|
156
|
+
<div class="mb-1 font-semibold">{{ points[0]?.formattedX }}</div>
|
|
157
|
+
@for (point of points; track point.seriesId) {
|
|
158
|
+
<div class="flex items-center justify-between gap-3">
|
|
159
|
+
<span class="flex items-center gap-1.5">
|
|
160
|
+
<span
|
|
161
|
+
class="size-2 rounded-full forced-color-adjust-none"
|
|
162
|
+
[style.background-color]="point.color"></span>
|
|
163
|
+
{{ point.seriesName }}
|
|
164
|
+
</span>
|
|
165
|
+
<span class="font-semibold">{{ point.formattedY }}</span>
|
|
166
|
+
</div>
|
|
167
|
+
}
|
|
168
|
+
</div>
|
|
169
|
+
</ng-template>
|
|
170
|
+
</mona-chart-tooltip>
|
|
180
171
|
</mona-chart>
|
|
181
172
|
```
|
|
182
173
|
|
|
183
|
-
###
|
|
174
|
+
### Reference lines, bands and annotations
|
|
184
175
|
|
|
185
|
-
A
|
|
176
|
+
A reference line marks one value on an axis and a reference band marks a range, such as a budget or busy hours. Values are on the axis's own scale: a category name on a category axis, a number or `Date` on a continuous one. Bands draw under the series by default (`layer="underlay"`) and lines over them. An annotation pins a marker and a label to one point, and the crosshair follows the pointer.
|
|
186
177
|
|
|
187
|
-
`
|
|
178
|
+
`overlays-example.component.ts`
|
|
188
179
|
|
|
189
180
|
```typescript
|
|
190
181
|
import { Component } from "@angular/core";
|
|
191
182
|
import {
|
|
192
|
-
|
|
183
|
+
ChartAnnotationComponent,
|
|
193
184
|
ChartComponent,
|
|
194
|
-
|
|
195
|
-
|
|
185
|
+
ChartCrosshairComponent,
|
|
186
|
+
ChartReferenceBandComponent,
|
|
187
|
+
ChartReferenceLineComponent,
|
|
188
|
+
ChartXAxisComponent,
|
|
189
|
+
ChartYAxisComponent,
|
|
190
|
+
LineSeriesComponent
|
|
196
191
|
} from "@nanahoshi/mona-ui/chart";
|
|
197
192
|
|
|
198
193
|
@Component({
|
|
199
|
-
selector: "app-chart-
|
|
200
|
-
imports: [
|
|
201
|
-
|
|
194
|
+
selector: "app-chart-overlays-example",
|
|
195
|
+
imports: [
|
|
196
|
+
ChartAnnotationComponent,
|
|
197
|
+
ChartComponent,
|
|
198
|
+
ChartCrosshairComponent,
|
|
199
|
+
ChartReferenceBandComponent,
|
|
200
|
+
ChartReferenceLineComponent,
|
|
201
|
+
ChartXAxisComponent,
|
|
202
|
+
ChartYAxisComponent,
|
|
203
|
+
LineSeriesComponent
|
|
204
|
+
],
|
|
205
|
+
templateUrl: "./overlays-example.component.html"
|
|
202
206
|
})
|
|
203
|
-
export class
|
|
204
|
-
protected readonly
|
|
205
|
-
{
|
|
206
|
-
{
|
|
207
|
-
{
|
|
208
|
-
{
|
|
207
|
+
export class ChartOverlaysExampleComponent {
|
|
208
|
+
protected readonly latency = [
|
|
209
|
+
{ hour: "00:00", ms: 120 },
|
|
210
|
+
{ hour: "04:00", ms: 98 },
|
|
211
|
+
{ hour: "08:00", ms: 180 },
|
|
212
|
+
{ hour: "12:00", ms: 260 },
|
|
213
|
+
{ hour: "16:00", ms: 210 },
|
|
214
|
+
{ hour: "20:00", ms: 150 }
|
|
209
215
|
];
|
|
210
216
|
}
|
|
211
217
|
```
|
|
212
218
|
|
|
213
|
-
`
|
|
219
|
+
`overlays-example.component.html`
|
|
214
220
|
|
|
215
221
|
```html
|
|
216
|
-
<mona-chart aria-label="
|
|
217
|
-
<mona-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
</mona-donut-series>
|
|
225
|
-
<mona-chart-legend position="end" />
|
|
222
|
+
<mona-chart aria-label="Response time by hour" class="h-72 w-full" xField="hour" [data]="latency">
|
|
223
|
+
<mona-chart-x-axis />
|
|
224
|
+
<mona-chart-y-axis title="ms" />
|
|
225
|
+
<mona-line-series field="ms" name="Response time" [showPoints]="true" />
|
|
226
|
+
<mona-chart-reference-band axis="x" from="08:00" label="Peak hours" to="16:00" />
|
|
227
|
+
<mona-chart-reference-line axis="y" label="Budget" [value]="200" />
|
|
228
|
+
<mona-chart-annotation label="Deploy" x="12:00" [y]="260" />
|
|
229
|
+
<mona-chart-crosshair mode="x" />
|
|
226
230
|
</mona-chart>
|
|
227
231
|
```
|
|
228
232
|
|
|
229
|
-
###
|
|
233
|
+
### Selection and brushing
|
|
230
234
|
|
|
231
|
-
|
|
235
|
+
`mona-chart-selection` lets users select points by click, `Enter` or `Space`, and `[(selectedMarkIds)]` holds the ids of the selected marks. `mona-chart-brush` selects every point in a dragged range (by default with `Shift` held), and `selectionBehavior` decides whether that replaces, adds to, removes from or toggles the selection.
|
|
232
236
|
|
|
233
|
-
`
|
|
237
|
+
`selection-example.component.ts`
|
|
234
238
|
|
|
235
239
|
```typescript
|
|
236
|
-
import { Component } from "@angular/core";
|
|
240
|
+
import { Component, signal } from "@angular/core";
|
|
237
241
|
import {
|
|
238
|
-
|
|
242
|
+
BarSeriesComponent,
|
|
243
|
+
ChartBrushComponent,
|
|
239
244
|
ChartComponent,
|
|
240
|
-
|
|
241
|
-
ChartTooltipTemplateDirective,
|
|
245
|
+
ChartSelectionComponent,
|
|
242
246
|
ChartXAxisComponent,
|
|
243
247
|
ChartYAxisComponent
|
|
244
248
|
} from "@nanahoshi/mona-ui/chart";
|
|
245
249
|
|
|
246
250
|
@Component({
|
|
247
|
-
selector: "app-chart-
|
|
251
|
+
selector: "app-chart-selection-example",
|
|
248
252
|
imports: [
|
|
249
|
-
|
|
253
|
+
BarSeriesComponent,
|
|
254
|
+
ChartBrushComponent,
|
|
250
255
|
ChartComponent,
|
|
251
|
-
|
|
252
|
-
ChartTooltipTemplateDirective,
|
|
256
|
+
ChartSelectionComponent,
|
|
253
257
|
ChartXAxisComponent,
|
|
254
258
|
ChartYAxisComponent
|
|
255
259
|
],
|
|
256
|
-
templateUrl: "./
|
|
260
|
+
templateUrl: "./selection-example.component.html"
|
|
257
261
|
})
|
|
258
|
-
export class
|
|
259
|
-
protected readonly
|
|
260
|
-
|
|
261
|
-
{ day: "
|
|
262
|
-
{ day: "
|
|
263
|
-
{ day: "
|
|
264
|
-
{ day: "
|
|
265
|
-
{ day: "
|
|
266
|
-
{ day: "Sun", downloads: 240, uploads: 90 }
|
|
262
|
+
export class ChartSelectionExampleComponent {
|
|
263
|
+
protected readonly selected = signal<readonly string[]>([]);
|
|
264
|
+
protected readonly tickets = [
|
|
265
|
+
{ day: "Mon", opened: 42 },
|
|
266
|
+
{ day: "Tue", opened: 38 },
|
|
267
|
+
{ day: "Wed", opened: 51 },
|
|
268
|
+
{ day: "Thu", opened: 47 },
|
|
269
|
+
{ day: "Fri", opened: 33 }
|
|
267
270
|
];
|
|
268
|
-
|
|
269
|
-
protected gigabytes = (value: unknown): string => `${String(value)} GB`;
|
|
270
271
|
}
|
|
271
272
|
```
|
|
272
273
|
|
|
273
|
-
`
|
|
274
|
+
`selection-example.component.html`
|
|
274
275
|
|
|
275
276
|
```html
|
|
276
|
-
<
|
|
277
|
-
<mona-chart-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
<
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
<div class="flex items-center justify-between gap-3">
|
|
287
|
-
<span class="flex items-center gap-1.5">
|
|
288
|
-
<span
|
|
289
|
-
class="size-2 rounded-full forced-color-adjust-none"
|
|
290
|
-
[style.background-color]="point.color"></span>
|
|
291
|
-
{{ point.seriesName }}
|
|
292
|
-
</span>
|
|
293
|
-
<span class="font-semibold">{{ point.formattedY }}</span>
|
|
294
|
-
</div>
|
|
295
|
-
}
|
|
296
|
-
</div>
|
|
297
|
-
</ng-template>
|
|
298
|
-
</mona-chart-tooltip>
|
|
299
|
-
</mona-chart>
|
|
277
|
+
<div class="flex w-full flex-col gap-2">
|
|
278
|
+
<mona-chart aria-label="Tickets opened by day" class="h-72 w-full" xField="day" [data]="tickets">
|
|
279
|
+
<mona-chart-x-axis />
|
|
280
|
+
<mona-chart-y-axis />
|
|
281
|
+
<mona-bar-series field="opened" name="Opened" />
|
|
282
|
+
<mona-chart-selection mode="multiple" [(selectedMarkIds)]="selected" />
|
|
283
|
+
<mona-chart-brush mode="x" selectionBehavior="replace" />
|
|
284
|
+
</mona-chart>
|
|
285
|
+
<p class="text-sm text-muted-foreground" aria-live="polite">{{ selected().length }} selected</p>
|
|
286
|
+
</div>
|
|
300
287
|
```
|
|
301
288
|
|
|
302
289
|
## Behavior
|
|
@@ -461,7 +448,21 @@ For eligible finite-X monotonic sources that retain a density runtime, viewport
|
|
|
461
448
|
| `zoom` | `boolean` | `true` | Allows zooming at all. |
|
|
462
449
|
| `zoomAxes` | `ChartNavigationAxisTarget` | `"auto"` | Axes that zoom. |
|
|
463
450
|
|
|
464
|
-
The viewport is a `ChartViewportState`: `{ axes: ChartViewportWindow[] }`. A window is `{ kind: "continuous", axis, axisId, min, max }` or `{ kind: "category", axis, axisId, startIndex, endIndexExclusive }`.
|
|
451
|
+
The viewport is a `ChartViewportState`: `{ axes: ChartViewportWindow[] }`. A window is `{ kind: "continuous", axis, axisId, min, max }` or `{ kind: "category", axis, axisId, startIndex, endIndexExclusive }`. To keep the viewport in your own state, for example to restore it later, bind it both ways:
|
|
452
|
+
|
|
453
|
+
```typescript
|
|
454
|
+
import type { ChartViewportState } from "@nanahoshi/mona-ui/chart";
|
|
455
|
+
|
|
456
|
+
protected readonly viewport = signal<ChartViewportState | undefined>(undefined);
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
```html
|
|
460
|
+
<mona-chart [data]="data" [navigation]="true" [viewport]="viewport()" (viewportChange)="viewport.set($event)">
|
|
461
|
+
<mona-chart-x-axis />
|
|
462
|
+
<mona-chart-y-axis />
|
|
463
|
+
<mona-line-series field="value" />
|
|
464
|
+
</mona-chart>
|
|
465
|
+
```
|
|
465
466
|
|
|
466
467
|
`viewportChangeDetails` gives the `source` of a change (`"drag"`, `"wheel"`, `"pinch"`, `"keyboard"`, `"fit"`, `"reset"`, `"sync"`, `"programmatic"` or `"data-reconcile"`) and its `phase` (`"start"`, `"update"` or `"end"`).
|
|
467
468
|
|
|
@@ -621,541 +622,6 @@ Root visualization container coordinating coordinate layouts, canvas rendering,
|
|
|
621
622
|
| `toggleSeriesVisibility(seriesId: string): void` | Toggles the visibility of a series. |
|
|
622
623
|
| `zoom(factor: number, anchor?: ChartPoint, target?: ChartNavigationAxisTarget): void` | Zooms the viewport by a scale factor around an optional pixel anchor point. |
|
|
623
624
|
|
|
624
|
-
### `TreemapSeriesComponent`
|
|
625
|
-
|
|
626
|
-
Renders hierarchical treemap visualizations using nested squarified, binary, dice, or slice-dice rectangles.
|
|
627
|
-
|
|
628
|
-
**Selector:** `mona-treemap-series`
|
|
629
|
-
|
|
630
|
-
#### Inputs
|
|
631
|
-
|
|
632
|
-
| Name | Type | Default | Description |
|
|
633
|
-
| --- | --- | --- | --- |
|
|
634
|
-
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to leaf node rectangles. |
|
|
635
|
-
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for node labels. |
|
|
636
|
-
| `childrenField` | `ChartField` | `"children"` | Property key or accessor function extracting child nodes from a hierarchical data object. |
|
|
637
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
638
|
-
| `color` | `string` | `""` | Fallback base fill color applied to series or root branches. |
|
|
639
|
-
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit fill color for a node. |
|
|
640
|
-
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors assigned to top-level branches and inherited down subtrees. |
|
|
641
|
-
| `data` | `readonly unknown[] \| unknown \| undefined` | `undefined` | Hierarchical root object or array of root nodes overriding chart-level data. |
|
|
642
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting the numeric value for a leaf node. |
|
|
643
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of leaf node fills (0 to 1). |
|
|
644
|
-
| `hiddenNodeIds` (two-way) | `readonly string[]` | `[]` | The hidden top-level node IDs. Bind `[(hiddenNodeIds)]` for two-way binding; legend toggles write to it. |
|
|
645
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across data updates. |
|
|
646
|
-
| `labelField` | `ChartField` | `"name"` | Property key or accessor extracting the display label for a node. |
|
|
647
|
-
| `labelFormatter` | `ChartValueFormatter \| undefined` | `undefined` | **Deprecated.** Use `categoryFormatter`, as on the other series. Formatter callback for node display labels. |
|
|
648
|
-
| `maxDepth` | `number \| undefined` | `undefined` | Maximum tree depth to layout and render. Normalized: finite <= 0 becomes 1, finite > 0 is floored, undefined/NaN/Infinity is unlimited. |
|
|
649
|
-
| `maxLabels` | `number` | `100` | Maximum number of DOM label candidates to render (prioritizing parent headers and largest leaf areas). |
|
|
650
|
-
| `minLabelHeight` | `number \| undefined` | `undefined` | Minimum pixel height required for a node to display a DOM label (defaults to 16 when showValues is false, 24 when true). |
|
|
651
|
-
| `minLabelWidth` | `number \| undefined` | `undefined` | Minimum pixel width required for a node to display a DOM label (defaults to 30). |
|
|
652
|
-
| `name` | `string` | `"Treemap"` | Series name used in tooltips and accessibility announcements. |
|
|
653
|
-
| `paddingInner` | `number` | `2` | Inner padding in pixels between sibling treemap rectangles. |
|
|
654
|
-
| `paddingOuter` | `number` | `4` | Outer padding in pixels around parent boundaries. |
|
|
655
|
-
| `parentFillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to non-leaf parent group background rectangles. |
|
|
656
|
-
| `parentHeaderHeight` | `number \| undefined` | `undefined` | Header height in pixels reserved for parent node header labels. |
|
|
657
|
-
| `showLabels` | `boolean` | `true` | Whether to display DOM labels for leaf and terminal nodes. |
|
|
658
|
-
| `showParentLabels` | `boolean` | `true` | Whether to reserve header space and display labels for parent grouping nodes. |
|
|
659
|
-
| `showValues` | `boolean` | `false` | Whether to display numeric values in default leaf labels. |
|
|
660
|
-
| `sort` | `ChartTreemapSort` | `"descending"` | Sort order for sibling nodes: "descending", "ascending", or "none". |
|
|
661
|
-
| `strokeColor` | `string` | `""` | Color of node boundary stroke borders. |
|
|
662
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for node boundary borders. |
|
|
663
|
-
| `tile` | `ChartTreemapTile` | `"squarify"` | D3 treemap tiling algorithm: "squarify", "binary", "dice", "slice", or "slice-dice". |
|
|
664
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for numeric values in labels and tooltips. |
|
|
665
|
-
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
666
|
-
|
|
667
|
-
#### Outputs
|
|
668
|
-
|
|
669
|
-
| Name | Type | Description |
|
|
670
|
-
| --- | --- | --- |
|
|
671
|
-
| `hiddenNodeIdsChange` | `readonly string[]` | Emitted when `hiddenNodeIds` changes. |
|
|
672
|
-
| `nodeVisibilityChange` | `ChartTreemapNodeVisibilityEvent<unknown>` | Emits when an individual node or branch's visibility is toggled via the legend. |
|
|
673
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
674
|
-
|
|
675
|
-
#### Methods
|
|
676
|
-
|
|
677
|
-
| Signature | Description |
|
|
678
|
-
| --- | --- |
|
|
679
|
-
| `toggleNode(nodeId: string): boolean` | Shows or hides the node with this id, and returns whether it's now visible. |
|
|
680
|
-
|
|
681
|
-
### `RadialBarSeriesComponent`
|
|
682
|
-
|
|
683
|
-
Renders concentric circular progress rings with customizable bar gap, thickness, rounded corners, and background
|
|
684
|
-
tracks.
|
|
685
|
-
|
|
686
|
-
**Selector:** `mona-radial-bar-series`
|
|
687
|
-
|
|
688
|
-
#### Inputs
|
|
689
|
-
|
|
690
|
-
| Name | Type | Default | Description |
|
|
691
|
-
| --- | --- | --- | --- |
|
|
692
|
-
| `barGap` | `number` | `4` | Spacing in pixels between concentric radial rings. |
|
|
693
|
-
| `barThickness` | `number \| undefined` | `undefined` | Explicit radial thickness in pixels for each bar ring. |
|
|
694
|
-
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each radial ring. |
|
|
695
|
-
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for ring category labels. |
|
|
696
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
697
|
-
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each radial ring. |
|
|
698
|
-
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive radial rings. |
|
|
699
|
-
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to arc endpoints. |
|
|
700
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
701
|
-
| `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
702
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric value for each radial ring. |
|
|
703
|
-
| `fillMode` | `ChartRadialArcFillMode` | `"solid"` | Fill style applied to radial rings ("solid" or radial "gradient"). |
|
|
704
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of bar fills (between 0 and 1). |
|
|
705
|
-
| `hiddenItemIds` (two-way) | `readonly string[]` | `[]` | The hidden item IDs. Bind `[(hiddenItemIds)]` for two-way binding; legend toggles write to it. |
|
|
706
|
-
| `innerRadiusRatio` | `number` | `0.2` | Inner radius ratio relative to available plot bounds (0 to 1). |
|
|
707
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
708
|
-
| `max` | `number \| undefined` | `undefined` | Explicit maximum value for the radial bar progress scale. |
|
|
709
|
-
| `min` | `number \| undefined` | `undefined` | Explicit minimum value for the radial bar progress scale. |
|
|
710
|
-
| `name` | `string` | `"Radial Bar"` | Series name used in tooltips and accessibility announcements. |
|
|
711
|
-
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
712
|
-
| `showTrack` | `boolean` | `true` | Whether to display background circular track rings. |
|
|
713
|
-
| `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
714
|
-
| `strokeColor` | `string` | `""` | Color of bar stroke boundary. |
|
|
715
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for bar boundaries. |
|
|
716
|
-
| `trackColor` | `string` | `""` | Color of background track rings. |
|
|
717
|
-
| `trackOpacity` | `number \| undefined` | `undefined` | Opacity of background track rings. |
|
|
718
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for bar numeric values. |
|
|
719
|
-
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
720
|
-
|
|
721
|
-
#### Outputs
|
|
722
|
-
|
|
723
|
-
| Name | Type | Description |
|
|
724
|
-
| --- | --- | --- |
|
|
725
|
-
| `datumVisibilityChange` | `ChartRadialDatumVisibilityEvent` | Emits when an individual ring's visibility is toggled via the legend. |
|
|
726
|
-
| `hiddenItemIdsChange` | `readonly string[]` | Emitted when `hiddenItemIds` changes. |
|
|
727
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
728
|
-
|
|
729
|
-
#### Methods
|
|
730
|
-
|
|
731
|
-
| Signature | Description |
|
|
732
|
-
| --- | --- |
|
|
733
|
-
| `toggleDatum(itemId: string): boolean` | Shows or hides the bar with this id, and returns whether it's now visible. |
|
|
734
|
-
|
|
735
|
-
### `FunnelSeriesComponent`
|
|
736
|
-
|
|
737
|
-
Renders conversion pipeline and sales funnel visualizations using connected trapezoidal stages. Supports vertical and
|
|
738
|
-
horizontal layouts, custom stage colors, inscribed DOM labels, widening stages (>100% conversion), and dynamic stage
|
|
739
|
-
visibility toggling.
|
|
740
|
-
|
|
741
|
-
**Selector:** `mona-funnel-series`
|
|
742
|
-
|
|
743
|
-
#### Inputs
|
|
744
|
-
|
|
745
|
-
| Name | Type | Default | Description |
|
|
746
|
-
| --- | --- | --- | --- |
|
|
747
|
-
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting stage names. |
|
|
748
|
-
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Optional custom formatter for category names. |
|
|
749
|
-
| `class` | `string` | `""` | CSS class name applied to the hidden series host element. |
|
|
750
|
-
| `color` | `string` | `""` | Uniform fill color for all funnel stages. |
|
|
751
|
-
| `colorField` | `ChartField \| undefined` | `undefined` | Property key extracting discrete colors per datum. |
|
|
752
|
-
| `colors` | `readonly string[] \| undefined` | `undefined` | Palette array of colors cycled across stages. |
|
|
753
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Array of stage data items overriding chart-level root data. |
|
|
754
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting numeric values. |
|
|
755
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to stage trapezoids (0 to 1). |
|
|
756
|
-
| `gap` | `number` | `2` | Spacing in pixels between consecutive funnel stages. |
|
|
757
|
-
| `hiddenStageIds` (two-way) | `readonly string[]` | `[]` | The hidden stage IDs. Bind `[(hiddenStageIds)]` for two-way binding; legend toggles write to it. |
|
|
758
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Unique identifier key field for datums. |
|
|
759
|
-
| `labelContent` | `ChartFunnelLabelContent` | `"category-value"` | Content format for automatic stage labels. |
|
|
760
|
-
| `maxLabels` | `number` | `100` | Maximum number of visible stage labels rendered simultaneously. |
|
|
761
|
-
| `minLabelHeight` | `number \| undefined` | `undefined` | Minimum stage height required in vertical orientation to render label. |
|
|
762
|
-
| `minLabelWidth` | `number \| undefined` | `undefined` | Minimum stage width required in horizontal orientation to render label. |
|
|
763
|
-
| `name` | `string` | `"Funnel"` | Descriptive series name displayed in chart legend and tooltips. |
|
|
764
|
-
| `orientation` | `ChartFunnelOrientation` | `"vertical"` | Layout orientation of the funnel ('vertical' or 'horizontal'). |
|
|
765
|
-
| `showLabels` | `boolean` | `true` | Controls whether built-in stage text labels are rendered. |
|
|
766
|
-
| `strokeColor` | `string` | `""` | Stroke outline color for stage trapezoids. |
|
|
767
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for stage trapezoids. |
|
|
768
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter function for numeric values. |
|
|
769
|
-
| `visible` (two-way) | `boolean` | `true` | Controls overall visibility of the funnel series. |
|
|
770
|
-
| `widthRatio` | `number` | `0.9` | Maximum width ratio (0 to 1) for the funnel's widest stage relative to plot area. |
|
|
771
|
-
|
|
772
|
-
#### Outputs
|
|
773
|
-
|
|
774
|
-
| Name | Type | Description |
|
|
775
|
-
| --- | --- | --- |
|
|
776
|
-
| `hiddenStageIdsChange` | `readonly string[]` | Emitted when `hiddenStageIds` changes. |
|
|
777
|
-
| `stageVisibilityChange` | `ChartFunnelStageVisibilityEvent<unknown>` | Emits when a stage's visibility is toggled via legend or API. |
|
|
778
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
779
|
-
|
|
780
|
-
#### Methods
|
|
781
|
-
|
|
782
|
-
| Signature | Description |
|
|
783
|
-
| --- | --- |
|
|
784
|
-
| `isDatumVisible(stageId: string): boolean` | Whether the stage with this id is visible. |
|
|
785
|
-
| `resetVisibility(): void` | Shows every stage again. |
|
|
786
|
-
| `setDatumVisibility(stageId: string, visible: boolean): void` | Shows or hides the stage with this id. |
|
|
787
|
-
| `toggleDatumVisibility(stageId: string): boolean` | Shows or hides the stage with this id, and returns whether it's now visible. |
|
|
788
|
-
|
|
789
|
-
### `DonutSeriesComponent`
|
|
790
|
-
|
|
791
|
-
Renders a full or partial donut. Use `ng-template[monaChartCenterTemplate]` for the center.
|
|
792
|
-
|
|
793
|
-
**Selector:** `mona-donut-series`
|
|
794
|
-
|
|
795
|
-
#### Inputs
|
|
796
|
-
|
|
797
|
-
| Name | Type | Default | Description |
|
|
798
|
-
| --- | --- | --- | --- |
|
|
799
|
-
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each slice. |
|
|
800
|
-
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice category labels. |
|
|
801
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
802
|
-
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each slice. |
|
|
803
|
-
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive slices. |
|
|
804
|
-
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to slice arc boundaries. |
|
|
805
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
806
|
-
| `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
807
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric slice value. |
|
|
808
|
-
| `fillMode` | `ChartPolarFillMode` | `"solid"` | Fill style applied to slices ("solid" or radial "gradient" from center to arc). |
|
|
809
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of slice fills (between 0 and 1). |
|
|
810
|
-
| `hiddenIndices` (two-way) | `readonly number[]` | `[]` | The hidden data indices. Bind `[(hiddenIndices)]` for two-way binding; legend toggles write to it. |
|
|
811
|
-
| `innerRadiusRatio` | `number` | `0.6` | Ratio of the inner hole radius relative to the outer radius (0 to 0.95). |
|
|
812
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
813
|
-
| `labelContent` | `ChartPolarLabelContent` | `"percentage"` | Content to display in default slice data labels. |
|
|
814
|
-
| `labelPosition` | `ChartPolarLabelPosition` | `"outside"` | Placement position for slice data labels ("outside" with leader lines or "inside" slice bounds). |
|
|
815
|
-
| `minLabelAngle` | `number` | `12` | Minimum slice arc angle in degrees required to render an inside data label. |
|
|
816
|
-
| `name` | `string` | `"Donut"` | Series name used in tooltips and accessibility announcements. |
|
|
817
|
-
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
818
|
-
| `padAngle` | `number` | `0` | Angular padding in degrees between adjacent slices. |
|
|
819
|
-
| `showLabels` | `boolean` | `false` | Whether to display inside slice data labels. |
|
|
820
|
-
| `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
821
|
-
| `strokeColor` | `string` | `""` | Color of slice separator strokes. |
|
|
822
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for slice separators. |
|
|
823
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice numeric values. |
|
|
824
|
-
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
825
|
-
|
|
826
|
-
#### Outputs
|
|
827
|
-
|
|
828
|
-
| Name | Type | Description |
|
|
829
|
-
| --- | --- | --- |
|
|
830
|
-
| `hiddenIndicesChange` | `readonly number[]` | Emitted when `hiddenIndices` changes. |
|
|
831
|
-
| `sliceVisibilityChange` | `ChartSliceVisibilityEvent` | Emits when an individual slice's visibility is toggled via the legend. |
|
|
832
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
833
|
-
|
|
834
|
-
#### Methods
|
|
835
|
-
|
|
836
|
-
| Signature | Description |
|
|
837
|
-
| --- | --- |
|
|
838
|
-
| `toggleSlice(dataIndex: number): boolean` | Shows or hides the slice at `dataIndex`, and returns whether it's now visible. |
|
|
839
|
-
|
|
840
|
-
### `OhlcSeriesComponent`
|
|
841
|
-
|
|
842
|
-
Renders traditional financial OHLC (Open-High-Low-Close) bar series with vertical high/low price spans, left-facing
|
|
843
|
-
open ticks, right-facing close ticks, and directional color coding.
|
|
844
|
-
|
|
845
|
-
**Selector:** `mona-ohlc-series`
|
|
846
|
-
|
|
847
|
-
#### Inputs
|
|
848
|
-
|
|
849
|
-
| Name | Type | Default | Description |
|
|
850
|
-
| --- | --- | --- | --- |
|
|
851
|
-
| `bodyWidth` | `number \| undefined` | `undefined` | Explicit total width in pixels for open/close tick arms. |
|
|
852
|
-
| `bodyWidthRatio` | `number` | `0.7` | Ratio of available category slot or mark spacing allocated to open/close tick arms (0.0 to 1.0). |
|
|
853
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
854
|
-
| `closeField` (required) | `ChartField` | — | Property key or accessor extracting the closing price for each data item. |
|
|
855
|
-
| `color` | `string \| undefined` | `undefined` | Optional color override applied uniformly across all OHLC ticks and stems. |
|
|
856
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
857
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
858
|
-
| `fallingColor` | `string` | `""` | Color for falling / bearish bars (close < open). |
|
|
859
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill and stroke opacity ratio (0 to 1). |
|
|
860
|
-
| `highField` (required) | `ChartField` | — | Property key or accessor extracting the highest price for each data item. |
|
|
861
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
862
|
-
| `lowField` (required) | `ChartField` | — | Property key or accessor extracting the lowest price for each data item. |
|
|
863
|
-
| `maxBodyWidth` | `number` | `32` | Maximum total tick width in pixels. |
|
|
864
|
-
| `name` | `string` | `"OHLC"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
865
|
-
| `neutralColor` | `string` | `""` | Color for neutral / flat bars (close === open). |
|
|
866
|
-
| `opacity` | `number \| undefined` | `undefined` | **Deprecated.** Use `fillOpacity`, as on the other series. Overall opacity multiplier applied to OHLC stems and tick arms. |
|
|
867
|
-
| `openField` (required) | `ChartField` | — | Property key or accessor extracting the opening price for each data item. |
|
|
868
|
-
| `risingColor` | `string` | `""` | Color for rising / bullish bars (close > open). |
|
|
869
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
870
|
-
| `tickLength` | `number \| undefined` | `undefined` | Length in pixels for horizontal open and close tick arms. |
|
|
871
|
-
| `tickWidth` | `number \| undefined` | `undefined` | Backward-compatible alias for tickLength. |
|
|
872
|
-
| `valueFormatter` | `ChartAxisFormatter \| undefined` | `undefined` | Formatter callback transforming financial numeric values into custom display strings. |
|
|
873
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
874
|
-
| `wickColor` | `string` | `""` | Explicit stroke color for the central vertical stem. |
|
|
875
|
-
| `wickWidth` | `number` | `1` | Pixel stroke width for OHLC stems and tick arms. |
|
|
876
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
877
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
|
|
878
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
879
|
-
|
|
880
|
-
#### Outputs
|
|
881
|
-
|
|
882
|
-
| Name | Type | Description |
|
|
883
|
-
| --- | --- | --- |
|
|
884
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
885
|
-
|
|
886
|
-
### `CandlestickSeriesComponent`
|
|
887
|
-
|
|
888
|
-
Renders financial Japanese candlestick series with central high/low wicks, rectangular open/close bodies,
|
|
889
|
-
rising/falling/neutral color coding, and solid or hollow rising bodies.
|
|
890
|
-
|
|
891
|
-
**Selector:** `mona-candlestick-series`
|
|
892
|
-
|
|
893
|
-
#### Inputs
|
|
894
|
-
|
|
895
|
-
| Name | Type | Default | Description |
|
|
896
|
-
| --- | --- | --- | --- |
|
|
897
|
-
| `bodyWidth` | `number \| undefined` | `undefined` | Explicit body width in pixels for candlestick candles. |
|
|
898
|
-
| `bodyWidthRatio` | `number` | `0.7` | Ratio of available category slot or mark spacing allocated to candle bodies (0.0 to 1.0). |
|
|
899
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
900
|
-
| `closeField` (required) | `ChartField` | — | Property key or accessor extracting the closing price for each data item. |
|
|
901
|
-
| `color` | `string \| undefined` | `undefined` | Optional color override applied uniformly across all candle bodies. |
|
|
902
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
903
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
904
|
-
| `fallingColor` | `string` | `""` | Color for falling / bearish candles (close < open). |
|
|
905
|
-
| `fillMode` | `ChartFinancialFillMode` | `"hollow"` | Visual fill mode for candle bodies: 'filled' (solid fill) or 'hollow' (rising hollow, falling filled). |
|
|
906
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill and stroke opacity ratio (0 to 1). |
|
|
907
|
-
| `highField` (required) | `ChartField` | — | Property key or accessor extracting the highest price for each data item. |
|
|
908
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
909
|
-
| `lowField` (required) | `ChartField` | — | Property key or accessor extracting the lowest price for each data item. |
|
|
910
|
-
| `maxBodyWidth` | `number` | `32` | Maximum candle body width in pixels. |
|
|
911
|
-
| `name` | `string` | `"Candlestick"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
912
|
-
| `neutralColor` | `string` | `""` | Color for neutral / flat candles (close === open). |
|
|
913
|
-
| `opacity` | `number \| undefined` | `undefined` | **Deprecated.** Use `fillOpacity`, as on the other series. Overall opacity multiplier applied to candle wicks and bodies. |
|
|
914
|
-
| `openField` (required) | `ChartField` | — | Property key or accessor extracting the opening price for each data item. |
|
|
915
|
-
| `risingColor` | `string` | `""` | Color for rising / bullish candles (close > open). |
|
|
916
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
917
|
-
| `valueFormatter` | `ChartAxisFormatter \| undefined` | `undefined` | Formatter callback transforming financial numeric values into custom display strings. |
|
|
918
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
919
|
-
| `wickColor` | `string` | `""` | Explicit stroke color for the upper and lower wicks. |
|
|
920
|
-
| `wickWidth` | `number` | `1` | Pixel stroke width for candle wicks. |
|
|
921
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
922
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
|
|
923
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
924
|
-
|
|
925
|
-
#### Outputs
|
|
926
|
-
|
|
927
|
-
| Name | Type | Description |
|
|
928
|
-
| --- | --- | --- |
|
|
929
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
930
|
-
|
|
931
|
-
### `PieSeriesComponent`
|
|
932
|
-
|
|
933
|
-
Renders a full or partial pie.
|
|
934
|
-
|
|
935
|
-
**Selector:** `mona-pie-series`
|
|
936
|
-
|
|
937
|
-
#### Inputs
|
|
938
|
-
|
|
939
|
-
| Name | Type | Default | Description |
|
|
940
|
-
| --- | --- | --- | --- |
|
|
941
|
-
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each slice. |
|
|
942
|
-
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice category labels. |
|
|
943
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
944
|
-
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each slice. |
|
|
945
|
-
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive slices. |
|
|
946
|
-
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to slice arc boundaries. |
|
|
947
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
948
|
-
| `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
949
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric slice value. |
|
|
950
|
-
| `fillMode` | `ChartPolarFillMode` | `"solid"` | Fill style applied to slices ("solid" or radial "gradient" from center to arc). |
|
|
951
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of slice fills (between 0 and 1). |
|
|
952
|
-
| `hiddenIndices` (two-way) | `readonly number[]` | `[]` | The hidden data indices. Bind `[(hiddenIndices)]` for two-way binding; legend toggles write to it. |
|
|
953
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
954
|
-
| `labelContent` | `ChartPolarLabelContent` | `"percentage"` | Content to display in default slice data labels. |
|
|
955
|
-
| `labelPosition` | `ChartPolarLabelPosition` | `"outside"` | Placement position for slice data labels ("outside" with leader lines or "inside" slice bounds). |
|
|
956
|
-
| `minLabelAngle` | `number` | `12` | Minimum slice arc angle in degrees required to render an inside data label. |
|
|
957
|
-
| `name` | `string` | `"Pie"` | Series name used in tooltips and accessibility announcements. |
|
|
958
|
-
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
959
|
-
| `padAngle` | `number` | `0` | Angular padding in degrees between adjacent slices. |
|
|
960
|
-
| `showLabels` | `boolean` | `false` | Whether to display inside slice data labels. |
|
|
961
|
-
| `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
962
|
-
| `strokeColor` | `string` | `""` | Color of slice separator strokes. |
|
|
963
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for slice separators. |
|
|
964
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice numeric values. |
|
|
965
|
-
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
966
|
-
|
|
967
|
-
#### Outputs
|
|
968
|
-
|
|
969
|
-
| Name | Type | Description |
|
|
970
|
-
| --- | --- | --- |
|
|
971
|
-
| `hiddenIndicesChange` | `readonly number[]` | Emitted when `hiddenIndices` changes. |
|
|
972
|
-
| `sliceVisibilityChange` | `ChartSliceVisibilityEvent` | Emits when an individual slice's visibility is toggled via the legend. |
|
|
973
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
974
|
-
|
|
975
|
-
#### Methods
|
|
976
|
-
|
|
977
|
-
| Signature | Description |
|
|
978
|
-
| --- | --- |
|
|
979
|
-
| `toggleSlice(dataIndex: number): boolean` | Shows or hides the slice at `dataIndex`, and returns whether it's now visible. |
|
|
980
|
-
|
|
981
|
-
### `GaugeSeriesComponent`
|
|
982
|
-
|
|
983
|
-
Renders circular or semi-circular gauge meters with value progress arcs, tapered needles, central hubs, and centered
|
|
984
|
-
value projection.
|
|
985
|
-
|
|
986
|
-
**Selector:** `mona-gauge-series`
|
|
987
|
-
|
|
988
|
-
#### Inputs
|
|
989
|
-
|
|
990
|
-
| Name | Type | Default | Description |
|
|
991
|
-
| --- | --- | --- | --- |
|
|
992
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
993
|
-
| `color` | `string` | `""` | Primary color of the gauge value arc. |
|
|
994
|
-
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to gauge arc endpoints. |
|
|
995
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
996
|
-
| `endAngle` | `number` | `120` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
997
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric gauge value when direct value is not set. |
|
|
998
|
-
| `fillMode` | `ChartRadialArcFillMode` | `"solid"` | Fill style applied to gauge value arc ("solid" or radial "gradient"). |
|
|
999
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of gauge value arc fill (between 0 and 1). |
|
|
1000
|
-
| `hubRadius` | `number` | `5` | Radius in pixels of the needle center hub circle. |
|
|
1001
|
-
| `indicator` | `ChartGaugeIndicator` | `"arc"` | Indicator mode: "arc" (progress arc), "needle" (pointer needle), or "both". |
|
|
1002
|
-
| `innerRadiusRatio` | `number` | `0.72` | Inner radius ratio relative to outer radius (0 to 1). |
|
|
1003
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1004
|
-
| `max` | `number` | `100` | Maximum domain value. |
|
|
1005
|
-
| `min` | `number` | `0` | Minimum domain value. |
|
|
1006
|
-
| `name` | `string` | `"Gauge"` | Series name used in tooltips and accessibility announcements. |
|
|
1007
|
-
| `needleColor` | `string` | `""` | Color of the needle and center hub. |
|
|
1008
|
-
| `needleLengthRatio` | `number` | `0.78` | Length of the needle pointer as a fraction of outer radius (0.1 to 1). |
|
|
1009
|
-
| `needleWidth` | `number` | `2` | Stroke width in pixels for the needle pointer. |
|
|
1010
|
-
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
1011
|
-
| `showValue` | `boolean` | `true` | Whether to display the formatted value in the center of the gauge. |
|
|
1012
|
-
| `startAngle` | `number` | `-120` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
1013
|
-
| `trackColor` | `string` | `""` | Color of background track arc. |
|
|
1014
|
-
| `trackOpacity` | `number \| undefined` | `undefined` | Opacity of background track arc. |
|
|
1015
|
-
| `value` | `number \| undefined` | `undefined` | Direct scalar value for the gauge. When defined, takes precedence over data/field. |
|
|
1016
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for gauge numeric values. |
|
|
1017
|
-
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
1018
|
-
|
|
1019
|
-
#### Outputs
|
|
1020
|
-
|
|
1021
|
-
| Name | Type | Description |
|
|
1022
|
-
| --- | --- | --- |
|
|
1023
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1024
|
-
|
|
1025
|
-
### `WaterfallSeriesComponent`
|
|
1026
|
-
|
|
1027
|
-
Renders financial cash-flow and contribution movements with positive delta increases, negative delta decreases,
|
|
1028
|
-
zero-change neutral bars, intermediate subtotals, and cumulative grand totals.
|
|
1029
|
-
|
|
1030
|
-
**Selector:** `mona-waterfall-series`
|
|
1031
|
-
|
|
1032
|
-
#### Inputs
|
|
1033
|
-
|
|
1034
|
-
| Name | Type | Default | Description |
|
|
1035
|
-
| --- | --- | --- | --- |
|
|
1036
|
-
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to the four corners of waterfall bars. |
|
|
1037
|
-
| `class` | `string` | `""` | CSS class name applied to the hidden series host element for custom styling hooks. |
|
|
1038
|
-
| `connectorColor` | `string` | `""` | Color of the horizontal connector lines joining consecutive bars. |
|
|
1039
|
-
| `connectorWidth` | `number \| undefined` | `undefined` | Line width in pixels of the connector lines between steps. |
|
|
1040
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Array of step data items overriding chart-level root data. |
|
|
1041
|
-
| `decreaseColor` | `string` | `""` | Fill color for negative change steps (decreases). |
|
|
1042
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting the numeric value/delta for each step. |
|
|
1043
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to waterfall bars (0 to 1). |
|
|
1044
|
-
| `increaseColor` | `string` | `""` | Fill color for positive change steps (increases). |
|
|
1045
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Unique identifier key field for datums. |
|
|
1046
|
-
| `kindField` | `ChartField \| undefined` | `"kind"` | Property key or accessor extracting step kind ('change' \| 'subtotal' \| 'total'). |
|
|
1047
|
-
| `maxBarWidth` | `number \| undefined` | `undefined` | Maximum width in pixels for waterfall bars. |
|
|
1048
|
-
| `maxLabels` | `number` | `100` | Maximum number of visible step labels rendered simultaneously. |
|
|
1049
|
-
| `minLabelWidth` | `number \| undefined` | `undefined` | Minimum bar width in pixels required to render its value label. |
|
|
1050
|
-
| `name` | `string` | `"Waterfall"` | Descriptive series name displayed in chart legend and tooltips. |
|
|
1051
|
-
| `neutralColor` | `string` | `""` | Fill color for zero-change steps. |
|
|
1052
|
-
| `showConnectors` | `boolean` | `true` | Controls whether horizontal connector lines are drawn between steps. |
|
|
1053
|
-
| `showLabels` | `boolean` | `false` | Controls whether built-in value text labels are rendered. |
|
|
1054
|
-
| `startValue` | `number` | `0` | Starting cumulative baseline value before the first step. |
|
|
1055
|
-
| `strokeColor` | `string` | `""` | Stroke outline color for waterfall bars. |
|
|
1056
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for waterfall bars. |
|
|
1057
|
-
| `subtotalColor` | `string` | `""` | Fill color for subtotal steps that anchor to baseline without resetting cumulative count. |
|
|
1058
|
-
| `totalColor` | `string` | `""` | Fill color for final total summary steps. |
|
|
1059
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter function for numeric values. |
|
|
1060
|
-
| `visible` (two-way) | `boolean` | `true` | Controls overall visibility of the waterfall series. |
|
|
1061
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting category / step names. |
|
|
1062
|
-
|
|
1063
|
-
#### Outputs
|
|
1064
|
-
|
|
1065
|
-
| Name | Type | Description |
|
|
1066
|
-
| --- | --- | --- |
|
|
1067
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1068
|
-
|
|
1069
|
-
### `RoseSeriesComponent`
|
|
1070
|
-
|
|
1071
|
-
Renders Nightingale rose (coxcomb) charts with angular category petals whose radial extent scales by area or radius.
|
|
1072
|
-
|
|
1073
|
-
**Selector:** `mona-rose-series`
|
|
1074
|
-
|
|
1075
|
-
#### Inputs
|
|
1076
|
-
|
|
1077
|
-
| Name | Type | Default | Description |
|
|
1078
|
-
| --- | --- | --- | --- |
|
|
1079
|
-
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each rose petal. |
|
|
1080
|
-
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for category labels. |
|
|
1081
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
1082
|
-
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each petal. |
|
|
1083
|
-
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive rose petals. |
|
|
1084
|
-
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to outer petal corners. |
|
|
1085
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
1086
|
-
| `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
1087
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric petal value. |
|
|
1088
|
-
| `fillMode` | `ChartRadialArcFillMode` | `"solid"` | Fill style applied to rose petals ("solid" or radial "gradient"). |
|
|
1089
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of petal fills (between 0 and 1). |
|
|
1090
|
-
| `hiddenItemIds` (two-way) | `readonly string[]` | `[]` | The hidden item IDs. Bind `[(hiddenItemIds)]` for two-way binding; legend toggles write to it. |
|
|
1091
|
-
| `innerRadiusRatio` | `number` | `0` | Inner radius ratio relative to available plot bounds (0 to 1). |
|
|
1092
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1093
|
-
| `name` | `string` | `"Rose"` | Series name used in tooltips and accessibility announcements. |
|
|
1094
|
-
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
1095
|
-
| `padAngle` | `number` | `2` | Angular padding in degrees between adjacent rose petals. |
|
|
1096
|
-
| `scaleMode` | `ChartRoseScaleMode` | `"area"` | Scale mode for petal radius: "area" (annular area proportional to value) or "radius" (linear radial distance). |
|
|
1097
|
-
| `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
1098
|
-
| `strokeColor` | `string` | `""` | Color of petal separator strokes. |
|
|
1099
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for petal boundaries. |
|
|
1100
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for petal numeric values. |
|
|
1101
|
-
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
1102
|
-
|
|
1103
|
-
#### Outputs
|
|
1104
|
-
|
|
1105
|
-
| Name | Type | Description |
|
|
1106
|
-
| --- | --- | --- |
|
|
1107
|
-
| `datumVisibilityChange` | `ChartRadialDatumVisibilityEvent` | Emits when an individual petal's visibility is toggled via the legend. |
|
|
1108
|
-
| `hiddenItemIdsChange` | `readonly string[]` | Emitted when `hiddenItemIds` changes. |
|
|
1109
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1110
|
-
|
|
1111
|
-
#### Methods
|
|
1112
|
-
|
|
1113
|
-
| Signature | Description |
|
|
1114
|
-
| --- | --- |
|
|
1115
|
-
| `toggleDatum(itemId: string): boolean` | Shows or hides the petal with this id, and returns whether it's now visible. |
|
|
1116
|
-
|
|
1117
|
-
### `AreaSeriesComponent`
|
|
1118
|
-
|
|
1119
|
-
Renders a continuous Cartesian area series supporting gradient fades, solid fills, cumulative stacking, and 100%
|
|
1120
|
-
normalized bands.
|
|
1121
|
-
|
|
1122
|
-
**Selector:** `mona-area-series`
|
|
1123
|
-
|
|
1124
|
-
#### Inputs
|
|
1125
|
-
|
|
1126
|
-
| Name | Type | Default | Description |
|
|
1127
|
-
| --- | --- | --- | --- |
|
|
1128
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1129
|
-
| `color` | `string` | `""` | Explicit stroke and fill color override for the area series. |
|
|
1130
|
-
| `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
|
|
1131
|
-
| `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
|
|
1132
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1133
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1134
|
-
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1135
|
-
| `field` | `ChartField` | `""` | Property key or accessor extracting the Y value for each data item. |
|
|
1136
|
-
| `fillMode` | `ChartAreaFillMode` | `"gradient"` | Area fill style (`"gradient"` fading to zero baseline, or uniform `"solid"`). |
|
|
1137
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Maximum opacity applied to the area fill. |
|
|
1138
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1139
|
-
| `lineStyle` | `ChartLineStyle` | `"solid"` | Stroke pattern used for the area's boundary line (`"solid"`, `"dashed"`, or `"dotted"`). |
|
|
1140
|
-
| `name` | `string` | `""` | Name of the series displayed in legends and tooltips. |
|
|
1141
|
-
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers. |
|
|
1142
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1143
|
-
| `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along the top boundary line. |
|
|
1144
|
-
| `stack` | `string \| undefined` | `undefined` | Named stack group to participate in. Series with matching trimmed stack names stack together. |
|
|
1145
|
-
| `stackMode` | `ChartStackMode` | `"normal"` | Stacking mode used when stack is specified: 'normal' for raw cumulative values, or 'percent' for 100% normalized segments. |
|
|
1146
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the area boundary line. |
|
|
1147
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw Y/data values in tooltips and live region announcements. |
|
|
1148
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1149
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1150
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
|
|
1151
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1152
|
-
|
|
1153
|
-
#### Outputs
|
|
1154
|
-
|
|
1155
|
-
| Name | Type | Description |
|
|
1156
|
-
| --- | --- | --- |
|
|
1157
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1158
|
-
|
|
1159
625
|
### `ChartXAxisComponent`
|
|
1160
626
|
|
|
1161
627
|
Configures an X axis in Cartesian charts. Add more than one with distinct `axisId` values for multiple axes.
|
|
@@ -1190,46 +656,6 @@ Configures an X axis in Cartesian charts. Add more than one with distinct `axisI
|
|
|
1190
656
|
| `type` | `ChartXAxisType` | `"auto"` | Scale type for the X axis (`"auto"`, `"category"`, `"linear"`, `"log"`, `"symlog"`, `"pow"`, `"sqrt"`, `"time"`, or `"utc"`). |
|
|
1191
657
|
| `visible` | `boolean` | `true` | Whether the axis and its labels are visible. |
|
|
1192
658
|
|
|
1193
|
-
### `HeatmapSeriesComponent`
|
|
1194
|
-
|
|
1195
|
-
Renders a matrix of cells colored by value, with a color scale in the legend.
|
|
1196
|
-
|
|
1197
|
-
**Selector:** `mona-heatmap-series`
|
|
1198
|
-
|
|
1199
|
-
#### Inputs
|
|
1200
|
-
|
|
1201
|
-
| Name | Type | Default | Description |
|
|
1202
|
-
| --- | --- | --- | --- |
|
|
1203
|
-
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels for each individual heat cell. |
|
|
1204
|
-
| `cellGap` | `number` | `1` | Spacing gap in pixels between adjacent cells. |
|
|
1205
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1206
|
-
| `color` | `string` | `""` | Explicit primary base color used to derive the heat palette. |
|
|
1207
|
-
| `colorMode` | `ChartHeatmapColorMode` | `"sequential"` | Color scale mapping mode: 'sequential' for continuous single-hue intensity or 'diverging' for dual-pole deviations. |
|
|
1208
|
-
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of color stops defining the gradient palette. |
|
|
1209
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
1210
|
-
| `field` (required) | `ChartField` | — | Property key or accessor extracting the numeric heat value for each cell. |
|
|
1211
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to the heat cells (0 to 1). |
|
|
1212
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1213
|
-
| `max` | `number \| undefined` | `undefined` | Explicit upper bound for the numeric value color domain. |
|
|
1214
|
-
| `midpoint` | `number \| undefined` | `undefined` | Explicit central midpoint for diverging color scales. |
|
|
1215
|
-
| `min` | `number \| undefined` | `undefined` | Explicit lower bound for the numeric value color domain. |
|
|
1216
|
-
| `name` | `string` | `"Heatmap"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
1217
|
-
| `showValues` | `boolean` | `false` | Whether to render numeric value labels inside individual heat cells on Canvas. |
|
|
1218
|
-
| `strokeColor` | `string` | `""` | Explicit border stroke color for individual heat cells. |
|
|
1219
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for cell borders. |
|
|
1220
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw cell values in labels, tooltips, and live regions. |
|
|
1221
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1222
|
-
| `xCategories` | `readonly unknown[] \| undefined` | `undefined` | Explicit category ordering for the X axis columns. |
|
|
1223
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X column category for each cell. |
|
|
1224
|
-
| `yCategories` | `readonly unknown[] \| undefined` | `undefined` | Explicit category ordering for the Y axis rows. |
|
|
1225
|
-
| `yField` (required) | `ChartField` | — | Property key or accessor extracting the Y row category for each cell. |
|
|
1226
|
-
|
|
1227
|
-
#### Outputs
|
|
1228
|
-
|
|
1229
|
-
| Name | Type | Description |
|
|
1230
|
-
| --- | --- | --- |
|
|
1231
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1232
|
-
|
|
1233
659
|
### `ChartYAxisComponent`
|
|
1234
660
|
|
|
1235
661
|
Configures a Y axis in Cartesian charts. Add more than one with distinct `axisId` values for multiple axes.
|
|
@@ -1247,173 +673,21 @@ Configures a Y axis in Cartesian charts. Add more than one with distinct `axisId
|
|
|
1247
673
|
| `gridLines` | `boolean \| undefined` | `undefined` | Whether horizontal grid lines aligned with Y-axis ticks are visible. Defaults to true in standard Cartesian and false for horizontal value axes. |
|
|
1248
674
|
| `labelMaxWidth` | `number \| undefined` | `undefined` | Maximum unrotated width in pixels for tick labels before truncation. |
|
|
1249
675
|
| `labelPadding` | `number \| undefined` | `undefined` | Spacing in pixels between the axis baseline / tick marks and tick labels. |
|
|
1250
|
-
| `labelRotation` | `ChartAxisLabelRotation` | `0` | Explicit rotation angle in degrees for tick labels (-90 to 90), or 'auto' for responsive automatic angling. |
|
|
1251
|
-
| `labels` | `boolean` | `true` | Whether the axis tick labels are rendered in the DOM. |
|
|
1252
|
-
| `logBase` | `number` | `10` | Base logarithm for log scale (`type="log"`). Must be a positive finite number not equal to 1. |
|
|
1253
|
-
| `max` | `number \| undefined` | `undefined` | Explicit upper bound for the numeric value range. |
|
|
1254
|
-
| `min` | `number \| undefined` | `undefined` | Explicit lower bound for the numeric value range. |
|
|
1255
|
-
| `nice` | `boolean` | `true` | Automatically extends the axis domain to round, pleasant values. |
|
|
1256
|
-
| `position` | `ChartYAxisPosition` | `"start"` | Position of the Y axis relative to the plot area. `start` and `end` follow the direction; `left` and `right` stay on that side. |
|
|
1257
|
-
| `symlogConstant` | `number` | `1` | Constant for symlog scale (`type="symlog"`). Must be a positive finite number. |
|
|
1258
|
-
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of ticks to display along the axis (acts as preferred label count for category axes). |
|
|
1259
|
-
| `tickMarks` | `boolean` | `false` | Whether tick mark lines extending outward from the baseline are drawn. |
|
|
1260
|
-
| `tickSize` | `number \| undefined` | `undefined` | Length in pixels of outward tick mark lines. |
|
|
1261
|
-
| `title` | `string` | `""` | Title text rendered alongside the axis. |
|
|
1262
|
-
| `titlePadding` | `number \| undefined` | `undefined` | Spacing in pixels between the outward extent of tick labels and the axis title. |
|
|
1263
|
-
| `type` | `ChartYAxisType` | `"auto"` | Scale type for the Y axis (`"auto"`, `"category"`, `"linear"`, `"log"`, `"symlog"`, `"pow"`, or `"sqrt"`). |
|
|
1264
|
-
| `visible` | `boolean` | `true` | Whether the axis and its labels are visible. |
|
|
1265
|
-
|
|
1266
|
-
### `BubbleSeriesComponent`
|
|
1267
|
-
|
|
1268
|
-
Renders 3-dimensional data points with position (X, Y) and proportionally-scaled circle areas (Size).
|
|
1269
|
-
|
|
1270
|
-
**Selector:** `mona-bubble-series`
|
|
1271
|
-
|
|
1272
|
-
#### Inputs
|
|
1273
|
-
|
|
1274
|
-
| Name | Type | Default | Description |
|
|
1275
|
-
| --- | --- | --- | --- |
|
|
1276
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1277
|
-
| `color` | `string` | `""` | Explicit fill color for the bubbles. |
|
|
1278
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1279
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1280
|
-
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1281
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the Y value for each data item. |
|
|
1282
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity for bubbles between 0 and 1. |
|
|
1283
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1284
|
-
| `maxRadius` | `number` | `24` | Maximum rendered pixel radius for the largest data size value. |
|
|
1285
|
-
| `minRadius` | `number` | `4` | Minimum rendered pixel radius for the smallest data size value. |
|
|
1286
|
-
| `name` | `string` | `"Bubble"` | Name of the series displayed in legends and tooltips. |
|
|
1287
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1288
|
-
| `sizeField` | `ChartField` | `"size"` | Property key or accessor extracting the size magnitude for each bubble. |
|
|
1289
|
-
| `sizeFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Optional custom formatter for displaying bubble size values in tooltips. |
|
|
1290
|
-
| `strokeColor` | `string` | `""` | Stroke outline color for bubble markers. |
|
|
1291
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for bubble marker outlines. |
|
|
1292
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formats this series' values in tooltips, data labels and announcements, without changing the axis ticks. Takes precedence over the axis formatter. |
|
|
1293
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1294
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1295
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
|
|
1296
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1297
|
-
|
|
1298
|
-
#### Outputs
|
|
1299
|
-
|
|
1300
|
-
| Name | Type | Description |
|
|
1301
|
-
| --- | --- | --- |
|
|
1302
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1303
|
-
|
|
1304
|
-
### `RangeAreaSeriesComponent`
|
|
1305
|
-
|
|
1306
|
-
Renders continuous Cartesian vertical range bands/areas bounded between lower and upper values (e.g. confidence
|
|
1307
|
-
intervals, forecast envelopes, or high/low bands).
|
|
1308
|
-
|
|
1309
|
-
**Selector:** `mona-range-area-series`
|
|
1310
|
-
|
|
1311
|
-
#### Inputs
|
|
1312
|
-
|
|
1313
|
-
| Name | Type | Default | Description |
|
|
1314
|
-
| --- | --- | --- | --- |
|
|
1315
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1316
|
-
| `color` | `string` | `""` | Explicit stroke and fill color override for the range area series. |
|
|
1317
|
-
| `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
|
|
1318
|
-
| `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
|
|
1319
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1320
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1321
|
-
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1322
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Maximum opacity applied to the range area fill. |
|
|
1323
|
-
| `fromField` (required) | `ChartField` | — | Property key or accessor extracting the starting range value for each data item. |
|
|
1324
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1325
|
-
| `name` | `string` | `"Range Area"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
1326
|
-
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers drawn along the boundary curves. |
|
|
1327
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1328
|
-
| `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along both boundary curves. |
|
|
1329
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the boundary lines. |
|
|
1330
|
-
| `toField` (required) | `ChartField` | — | Property key or accessor extracting the ending range value for each data item. |
|
|
1331
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw range values in tooltips and live region announcements. |
|
|
1332
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1333
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1334
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
|
|
1335
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1336
|
-
|
|
1337
|
-
#### Outputs
|
|
1338
|
-
|
|
1339
|
-
| Name | Type | Description |
|
|
1340
|
-
| --- | --- | --- |
|
|
1341
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1342
|
-
|
|
1343
|
-
### `LineSeriesComponent`
|
|
1344
|
-
|
|
1345
|
-
Renders a continuous Cartesian line series with configurable interpolation, optional null-gap joining, point markers,
|
|
1346
|
-
data labels, and multi-axis binding.
|
|
1347
|
-
|
|
1348
|
-
**Selector:** `mona-line-series`
|
|
1349
|
-
|
|
1350
|
-
#### Inputs
|
|
1351
|
-
|
|
1352
|
-
| Name | Type | Default | Description |
|
|
1353
|
-
| --- | --- | --- | --- |
|
|
1354
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1355
|
-
| `color` | `string` | `""` | Explicit stroke color override for the series line. |
|
|
1356
|
-
| `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
|
|
1357
|
-
| `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
|
|
1358
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1359
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1360
|
-
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1361
|
-
| `field` | `ChartField` | `""` | Property key or accessor extracting the Y value for each data item. |
|
|
1362
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1363
|
-
| `lineStyle` | `ChartLineStyle` | `"solid"` | Stroke pattern used to render the series line (`"solid"`, `"dashed"`, or `"dotted"`). |
|
|
1364
|
-
| `name` | `string` | `""` | Name of the series displayed in legends and tooltips. |
|
|
1365
|
-
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers. |
|
|
1366
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1367
|
-
| `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along the line. |
|
|
1368
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the series line. |
|
|
1369
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formats this series' values in tooltips, data labels and announcements, without changing the axis ticks. Takes precedence over the axis formatter. |
|
|
1370
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1371
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1372
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
|
|
1373
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1374
|
-
|
|
1375
|
-
#### Outputs
|
|
1376
|
-
|
|
1377
|
-
| Name | Type | Description |
|
|
1378
|
-
| --- | --- | --- |
|
|
1379
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1380
|
-
|
|
1381
|
-
### `BarSeriesComponent`
|
|
1382
|
-
|
|
1383
|
-
Renders a Cartesian bar series supporting standalone bars, grouped slots, stacked segments, and 100% normalized
|
|
1384
|
-
stacks.
|
|
1385
|
-
|
|
1386
|
-
**Selector:** `mona-bar-series`
|
|
1387
|
-
|
|
1388
|
-
#### Inputs
|
|
1389
|
-
|
|
1390
|
-
| Name | Type | Default | Description |
|
|
1391
|
-
| --- | --- | --- | --- |
|
|
1392
|
-
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels for the bar caps. |
|
|
1393
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1394
|
-
| `color` | `string` | `""` | Explicit fill color override for the series bars. |
|
|
1395
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1396
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1397
|
-
| `field` | `ChartField` | `""` | Property key or accessor extracting the Y/value for each bar. |
|
|
1398
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to the bars. |
|
|
1399
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1400
|
-
| `maxBarWidth` | `number \| undefined` | `undefined` | Maximum width in pixels for each individual bar. |
|
|
1401
|
-
| `name` | `string` | `""` | Name of the series displayed in legends and tooltips. |
|
|
1402
|
-
| `orientation` | `ChartBarOrientation` | `"vertical"` | Orientation of the bars ('vertical' for column bars, 'horizontal' for row bars). |
|
|
1403
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1404
|
-
| `stack` | `string \| undefined` | `undefined` | Named stack group to participate in. Series with matching trimmed stack names stack together. |
|
|
1405
|
-
| `stackMode` | `ChartStackMode` | `"normal"` | Stacking mode used when stack is specified: 'normal' for raw cumulative values, or 'percent' for 100% normalized segments. |
|
|
1406
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw Y/data values in tooltips and live region announcements. |
|
|
1407
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1408
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1409
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X/category value, overriding the root chart X field. |
|
|
1410
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1411
|
-
|
|
1412
|
-
#### Outputs
|
|
1413
|
-
|
|
1414
|
-
| Name | Type | Description |
|
|
1415
|
-
| --- | --- | --- |
|
|
1416
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
676
|
+
| `labelRotation` | `ChartAxisLabelRotation` | `0` | Explicit rotation angle in degrees for tick labels (-90 to 90), or 'auto' for responsive automatic angling. |
|
|
677
|
+
| `labels` | `boolean` | `true` | Whether the axis tick labels are rendered in the DOM. |
|
|
678
|
+
| `logBase` | `number` | `10` | Base logarithm for log scale (`type="log"`). Must be a positive finite number not equal to 1. |
|
|
679
|
+
| `max` | `number \| undefined` | `undefined` | Explicit upper bound for the numeric value range. |
|
|
680
|
+
| `min` | `number \| undefined` | `undefined` | Explicit lower bound for the numeric value range. |
|
|
681
|
+
| `nice` | `boolean` | `true` | Automatically extends the axis domain to round, pleasant values. |
|
|
682
|
+
| `position` | `ChartYAxisPosition` | `"start"` | Position of the Y axis relative to the plot area. `start` and `end` follow the direction; `left` and `right` stay on that side. |
|
|
683
|
+
| `symlogConstant` | `number` | `1` | Constant for symlog scale (`type="symlog"`). Must be a positive finite number. |
|
|
684
|
+
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of ticks to display along the axis (acts as preferred label count for category axes). |
|
|
685
|
+
| `tickMarks` | `boolean` | `false` | Whether tick mark lines extending outward from the baseline are drawn. |
|
|
686
|
+
| `tickSize` | `number \| undefined` | `undefined` | Length in pixels of outward tick mark lines. |
|
|
687
|
+
| `title` | `string` | `""` | Title text rendered alongside the axis. |
|
|
688
|
+
| `titlePadding` | `number \| undefined` | `undefined` | Spacing in pixels between the outward extent of tick labels and the axis title. |
|
|
689
|
+
| `type` | `ChartYAxisType` | `"auto"` | Scale type for the Y axis (`"auto"`, `"category"`, `"linear"`, `"log"`, `"symlog"`, `"pow"`, or `"sqrt"`). |
|
|
690
|
+
| `visible` | `boolean` | `true` | Whether the axis and its labels are visible. |
|
|
1417
691
|
|
|
1418
692
|
### `ChartAnnotationComponent`
|
|
1419
693
|
|
|
@@ -1444,144 +718,6 @@ Renders callouts, milestone badges, and outlier markers anchored to specific (X,
|
|
|
1444
718
|
| `y` (required) | `ChartAnnotationAxisValue` | — | Y coordinate value or category key for the annotation anchor. |
|
|
1445
719
|
| `yAxisId` | `string \| undefined` | `undefined` | Explicit target Y axis identifier. Defaults to primary Y axis. |
|
|
1446
720
|
|
|
1447
|
-
### `RangeBarSeriesComponent`
|
|
1448
|
-
|
|
1449
|
-
Renders floating Cartesian range bars spanning between a lower value and an upper value (e.g. min/max temperatures,
|
|
1450
|
-
price spans, or SLA tolerances).
|
|
1451
|
-
|
|
1452
|
-
**Selector:** `mona-range-bar-series`
|
|
1453
|
-
|
|
1454
|
-
#### Inputs
|
|
1455
|
-
|
|
1456
|
-
| Name | Type | Default | Description |
|
|
1457
|
-
| --- | --- | --- | --- |
|
|
1458
|
-
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels for the floating bar caps. |
|
|
1459
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1460
|
-
| `color` | `string` | `""` | Explicit fill color override for the range bars. |
|
|
1461
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1462
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1463
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to the range bars. |
|
|
1464
|
-
| `fromField` (required) | `ChartField` | — | Property key or accessor extracting the starting range value for each bar. |
|
|
1465
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1466
|
-
| `maxBarWidth` | `number \| undefined` | `undefined` | Maximum width in pixels for each individual range bar. |
|
|
1467
|
-
| `name` | `string` | `"Range Bar"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
1468
|
-
| `orientation` | `ChartBarOrientation` | `"vertical"` | Orientation of the range bars ('vertical' for vertical spans, 'horizontal' for horizontal intervals). |
|
|
1469
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1470
|
-
| `toField` (required) | `ChartField` | — | Property key or accessor extracting the ending range value for each bar. |
|
|
1471
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw range values in tooltips and live region announcements. |
|
|
1472
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1473
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1474
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X/category value, overriding the root chart X field. |
|
|
1475
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1476
|
-
|
|
1477
|
-
#### Outputs
|
|
1478
|
-
|
|
1479
|
-
| Name | Type | Description |
|
|
1480
|
-
| --- | --- | --- |
|
|
1481
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1482
|
-
|
|
1483
|
-
### `ScatterSeriesComponent`
|
|
1484
|
-
|
|
1485
|
-
Renders individual point markers across continuous numeric (linear) or temporal (time/utc) Cartesian coordinates.
|
|
1486
|
-
|
|
1487
|
-
**Selector:** `mona-scatter-series`
|
|
1488
|
-
|
|
1489
|
-
#### Inputs
|
|
1490
|
-
|
|
1491
|
-
| Name | Type | Default | Description |
|
|
1492
|
-
| --- | --- | --- | --- |
|
|
1493
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1494
|
-
| `color` | `string` | `""` | Explicit fill color for the scatter points. |
|
|
1495
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1496
|
-
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1497
|
-
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1498
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the Y value for each data item. |
|
|
1499
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity for scatter points between 0 and 1. |
|
|
1500
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1501
|
-
| `name` | `string` | `"Scatter"` | Name of the series displayed in legends and tooltips. |
|
|
1502
|
-
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for scatter point markers. |
|
|
1503
|
-
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1504
|
-
| `strokeColor` | `string` | `""` | Stroke outline color for scatter point markers. |
|
|
1505
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for scatter point markers. |
|
|
1506
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formats this series' values in tooltips, data labels and announcements, without changing the axis ticks. Takes precedence over the axis formatter. |
|
|
1507
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1508
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1509
|
-
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
|
|
1510
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1511
|
-
|
|
1512
|
-
#### Outputs
|
|
1513
|
-
|
|
1514
|
-
| Name | Type | Description |
|
|
1515
|
-
| --- | --- | --- |
|
|
1516
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1517
|
-
|
|
1518
|
-
### `PolarSeriesComponent`
|
|
1519
|
-
|
|
1520
|
-
Renders continuous polar series mapping magnitude over continuous degree angles (0° to 360°).
|
|
1521
|
-
|
|
1522
|
-
**Selector:** `mona-polar-series`
|
|
1523
|
-
|
|
1524
|
-
#### Inputs
|
|
1525
|
-
|
|
1526
|
-
| Name | Type | Default | Description |
|
|
1527
|
-
| --- | --- | --- | --- |
|
|
1528
|
-
| `angleField` | `ChartField` | `"angle"` | **Deprecated.** Use `categoryField`, as on the other series. Property key or accessor function extracting the degree angle (0° to 360°) for each data item. |
|
|
1529
|
-
| `categoryField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the angle for each point. Takes precedence over `angleField`. |
|
|
1530
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1531
|
-
| `color` | `string` | `""` | Explicit stroke and marker color override for the series. |
|
|
1532
|
-
| `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
|
|
1533
|
-
| `curve` | `ChartRadialCurve` | `"linear"` | Radial curve interpolation style (`"linear"` or `"smooth"`). |
|
|
1534
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1535
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting the numeric radial distance/value for each data item. |
|
|
1536
|
-
| `fillMode` | `ChartRadialFillMode` | `"none"` | Fill mode applied to the area between the data curve and the chart center pole (`"none"`, `"solid"`, or `"gradient"`). |
|
|
1537
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity ratio for polar area fills (0 to 1). |
|
|
1538
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1539
|
-
| `name` | `string` | `"Polar"` | Series name displayed in legends, tooltips, and accessibility regions. |
|
|
1540
|
-
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers. |
|
|
1541
|
-
| `showPoints` | `boolean` | `false` | Whether to draw point markers at each valid angular coordinate. |
|
|
1542
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the outer data line. |
|
|
1543
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter function for numeric values in tooltips and live region announcements. |
|
|
1544
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the polar series is visible on the chart. |
|
|
1545
|
-
|
|
1546
|
-
#### Outputs
|
|
1547
|
-
|
|
1548
|
-
| Name | Type | Description |
|
|
1549
|
-
| --- | --- | --- |
|
|
1550
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1551
|
-
|
|
1552
|
-
### `RadarSeriesComponent`
|
|
1553
|
-
|
|
1554
|
-
Renders closed polygonal radar series comparing categorical metrics across angular spokes.
|
|
1555
|
-
|
|
1556
|
-
**Selector:** `mona-radar-series`
|
|
1557
|
-
|
|
1558
|
-
#### Inputs
|
|
1559
|
-
|
|
1560
|
-
| Name | Type | Default | Description |
|
|
1561
|
-
| --- | --- | --- | --- |
|
|
1562
|
-
| `categoryField` | `ChartField` | `"category"` | Property key or accessor function extracting the angular spoke category for each data item. |
|
|
1563
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1564
|
-
| `color` | `string` | `""` | Explicit stroke and marker color override for the series. |
|
|
1565
|
-
| `connectNulls` | `boolean` | `false` | Whether to connect adjacent valid category points across missing or null categories. |
|
|
1566
|
-
| `curve` | `ChartRadialCurve` | `"linear"` | Radial interpolation curve (`"linear"` or `"smooth"`). |
|
|
1567
|
-
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1568
|
-
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting the numeric radial value for each data item. |
|
|
1569
|
-
| `fillMode` | `ChartRadialFillMode` | `"none"` | Fill mode applied to the radar polygon (`"none"`, `"solid"`, or `"gradient"`). |
|
|
1570
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity ratio for polygon interior fills (0 to 1). |
|
|
1571
|
-
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1572
|
-
| `name` | `string` | `"Radar"` | Series name displayed in legends, tooltips, and accessibility regions. |
|
|
1573
|
-
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers rendered at category vertices. |
|
|
1574
|
-
| `showPoints` | `boolean` | `true` | Whether to draw point markers at each category vertex along the radar polygon. |
|
|
1575
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the outer polygon boundary. |
|
|
1576
|
-
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter function for numeric values in tooltips and live region announcements. |
|
|
1577
|
-
| `visible` (two-way) | `boolean` | `true` | Whether the radar series is visible on the chart. |
|
|
1578
|
-
|
|
1579
|
-
#### Outputs
|
|
1580
|
-
|
|
1581
|
-
| Name | Type | Description |
|
|
1582
|
-
| --- | --- | --- |
|
|
1583
|
-
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1584
|
-
|
|
1585
721
|
### `ChartCrosshairComponent`
|
|
1586
722
|
|
|
1587
723
|
Renders dynamic crosshair guide lines and axis label badges for pointer and keyboard navigation in Cartesian XY
|
|
@@ -1690,30 +826,6 @@ Renders static horizontal or vertical benchmark lines in Cartesian XY charts.
|
|
|
1690
826
|
| `visible` | `boolean` | `true` | Sets whether the reference line is visible. |
|
|
1691
827
|
| `width` | `number \| undefined` | `undefined` | Stroke width of the reference line in pixels. |
|
|
1692
828
|
|
|
1693
|
-
### `ChartRadialAxisComponent`
|
|
1694
|
-
|
|
1695
|
-
Configures the radial numeric dimension (distance from pole) in Polar Axis charts.
|
|
1696
|
-
|
|
1697
|
-
**Selector:** `mona-chart-radial-axis`
|
|
1698
|
-
|
|
1699
|
-
#### Inputs
|
|
1700
|
-
|
|
1701
|
-
| Name | Type | Default | Description |
|
|
1702
|
-
| --- | --- | --- | --- |
|
|
1703
|
-
| `axisLine` | `boolean` | `true` | Whether the pole-to-boundary axis line along the label angle is rendered. |
|
|
1704
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the axis host element. |
|
|
1705
|
-
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for radial tick labels. |
|
|
1706
|
-
| `gridLines` | `boolean` | `true` | Whether concentric radial grid rings or polygons are visible. |
|
|
1707
|
-
| `gridShape` | `ChartRadialGridShape` | `"auto"` | Geometry of radial grid lines (`"auto"`, `"circle"`, or `"polygon"`). |
|
|
1708
|
-
| `labelAngle` | `number` | `0` | Angle in degrees at which radial tick labels are positioned (0 = 12 o'clock). |
|
|
1709
|
-
| `labelOffset` | `number` | `6` | Pixel offset between radial tick markers and their labels. |
|
|
1710
|
-
| `labels` | `boolean` | `true` | Whether radial tick numeric labels are rendered. |
|
|
1711
|
-
| `max` | `number \| undefined` | `undefined` | Explicit upper bound for the radial scale range. |
|
|
1712
|
-
| `min` | `number \| undefined` | `undefined` | Explicit lower bound for the radial scale range. |
|
|
1713
|
-
| `nice` | `boolean` | `true` | Automatically extends the radial domain to round, pleasant intervals. |
|
|
1714
|
-
| `tickCount` | `number \| undefined` | `5` | Suggested number of concentric radial intervals. |
|
|
1715
|
-
| `visible` | `boolean` | `true` | Whether the radial axis, grid rings, and tick labels are visible. |
|
|
1716
|
-
|
|
1717
829
|
### `ChartSelectionComponent`
|
|
1718
830
|
|
|
1719
831
|
Lets users select marks with the pointer and keyboard, and holds the selected mark IDs.
|
|
@@ -1743,26 +855,6 @@ Lets users select marks with the pointer and keyboard, and holds the selected ma
|
|
|
1743
855
|
| `selectedMarkIdsChange` | `readonly string[]` | Emits the proposed selected mark IDs. |
|
|
1744
856
|
| `selectionChange` | `ChartSelectionChangeEvent<unknown>` | Emitted when mark selection is proposed or changed. |
|
|
1745
857
|
|
|
1746
|
-
### `ChartAngularAxisComponent`
|
|
1747
|
-
|
|
1748
|
-
Configures the angular dimension (spokes and continuous degrees) in Polar Axis charts.
|
|
1749
|
-
|
|
1750
|
-
**Selector:** `mona-chart-angular-axis`
|
|
1751
|
-
|
|
1752
|
-
#### Inputs
|
|
1753
|
-
|
|
1754
|
-
| Name | Type | Default | Description |
|
|
1755
|
-
| --- | --- | --- | --- |
|
|
1756
|
-
| `axisLine` | `boolean` | `true` | Whether the outer circular or polygonal baseline axis boundary line is rendered. |
|
|
1757
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the axis host element. |
|
|
1758
|
-
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for angular tick and spoke labels. |
|
|
1759
|
-
| `gridLines` | `boolean` | `true` | Whether radial angular spokes connecting the pole to outer categories/ticks are visible. |
|
|
1760
|
-
| `labelOffset` | `number` | `10` | Radial offset in pixels between the outer chart boundary and the angular labels. |
|
|
1761
|
-
| `labels` | `boolean` | `true` | Whether angular category or degree labels are rendered. |
|
|
1762
|
-
| `rotation` | `number` | `0` | Angular rotation offset in degrees applied clockwise to all spoke positions. |
|
|
1763
|
-
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of degree ticks for polar charts (defaults to 12). Radar tick count is derived from categories. |
|
|
1764
|
-
| `visible` | `boolean` | `true` | Whether the angular axis, spokes, and labels are visible. |
|
|
1765
|
-
|
|
1766
858
|
### `ChartLegendComponent`
|
|
1767
859
|
|
|
1768
860
|
Adds a legend. Items toggle what they represent unless `interactive` is off.
|
|
@@ -1826,21 +918,6 @@ Adds a tooltip for pointer and keyboard interaction. Use `ng-template[monaChartT
|
|
|
1826
918
|
| `scaleType?` | `string \| undefined` |
|
|
1827
919
|
| `value` | `unknown` |
|
|
1828
920
|
|
|
1829
|
-
### `ChartCenterTemplateDirective`
|
|
1830
|
-
|
|
1831
|
-
**Selector:** `ng-template[monaChartCenterTemplate]`
|
|
1832
|
-
|
|
1833
|
-
#### Template context
|
|
1834
|
-
|
|
1835
|
-
| Name | Type |
|
|
1836
|
-
| --- | --- |
|
|
1837
|
-
| `$implicit` | `number` |
|
|
1838
|
-
| `formattedTotal` | `string` |
|
|
1839
|
-
| `seriesId` | `string` |
|
|
1840
|
-
| `seriesName` | `string` |
|
|
1841
|
-
| `total` | `number` |
|
|
1842
|
-
| `visibleSliceCount` | `number` |
|
|
1843
|
-
|
|
1844
921
|
### `ChartCrosshairLabelTemplateDirective`
|
|
1845
922
|
|
|
1846
923
|
**Selector:** `ng-template[monaChartCrosshairLabelTemplate], ng-template[monaChartCrosshairLabel]`
|
|
@@ -1905,54 +982,6 @@ Adds a tooltip for pointer and keyboard interaction. Use `ng-template[monaChartT
|
|
|
1905
982
|
| `xValue?` | `unknown` | The x value of the mark. |
|
|
1906
983
|
| `yValue?` | `unknown` | The y value of the mark. |
|
|
1907
984
|
|
|
1908
|
-
### `ChartFunnelLabelTemplateDirective`
|
|
1909
|
-
|
|
1910
|
-
**Selector:** `ng-template[monaChartFunnelLabelTemplate]`
|
|
1911
|
-
|
|
1912
|
-
#### Template context
|
|
1913
|
-
|
|
1914
|
-
| Name | Type |
|
|
1915
|
-
| --- | --- |
|
|
1916
|
-
| `$implicit` | `ChartFunnelStageContext<unknown>` |
|
|
1917
|
-
| `bounds` | `ChartRect` |
|
|
1918
|
-
| `category` | `unknown` |
|
|
1919
|
-
| `color` | `string` |
|
|
1920
|
-
| `conversionRate?` | `number \| undefined` |
|
|
1921
|
-
| `dataIndex` | `number` |
|
|
1922
|
-
| `datum` | `unknown` |
|
|
1923
|
-
| `dropOff?` | `number \| undefined` |
|
|
1924
|
-
| `formattedCategory` | `string` |
|
|
1925
|
-
| `formattedConversionRate?` | `string \| undefined` |
|
|
1926
|
-
| `formattedOverallConversionRate?` | `string \| undefined` |
|
|
1927
|
-
| `formattedValue` | `string` |
|
|
1928
|
-
| `overallConversionRate?` | `number \| undefined` |
|
|
1929
|
-
| `previousValue?` | `number \| undefined` |
|
|
1930
|
-
| `stage` | `ChartFunnelStageContext<unknown>` |
|
|
1931
|
-
| `stageId` | `string` |
|
|
1932
|
-
| `stageIndex` | `number` |
|
|
1933
|
-
| `textColor?` | `string \| undefined` |
|
|
1934
|
-
| `value` | `number` |
|
|
1935
|
-
|
|
1936
|
-
### `ChartGaugeCenterTemplateDirective`
|
|
1937
|
-
|
|
1938
|
-
**Selector:** `ng-template[monaChartGaugeCenterTemplate]`
|
|
1939
|
-
|
|
1940
|
-
#### Template context
|
|
1941
|
-
|
|
1942
|
-
| Name | Type |
|
|
1943
|
-
| --- | --- |
|
|
1944
|
-
| `$implicit` | `number` |
|
|
1945
|
-
| `formattedMax` | `string` |
|
|
1946
|
-
| `formattedMin` | `string` |
|
|
1947
|
-
| `formattedValue` | `string` |
|
|
1948
|
-
| `isClamped` | `boolean` |
|
|
1949
|
-
| `max` | `number` |
|
|
1950
|
-
| `min` | `number` |
|
|
1951
|
-
| `ratio` | `number` |
|
|
1952
|
-
| `seriesId` | `string` |
|
|
1953
|
-
| `seriesName` | `string` |
|
|
1954
|
-
| `value` | `number` |
|
|
1955
|
-
|
|
1956
985
|
### `ChartLegendItemTemplateDirective`
|
|
1957
986
|
|
|
1958
987
|
**Selector:** `ng-template[monaChartLegendItemTemplate]`
|
|
@@ -2002,29 +1031,6 @@ Adds a tooltip for pointer and keyboard interaction. Use `ng-template[monaChartT
|
|
|
2002
1031
|
| `to?` | `ChartAnnotationAxisValue \| undefined` |
|
|
2003
1032
|
| `value?` | `ChartAnnotationAxisValue \| undefined` |
|
|
2004
1033
|
|
|
2005
|
-
### `ChartSliceLabelTemplateDirective`
|
|
2006
|
-
|
|
2007
|
-
**Selector:** `ng-template[monaChartSliceLabelTemplate]`
|
|
2008
|
-
|
|
2009
|
-
#### Template context
|
|
2010
|
-
|
|
2011
|
-
| Name | Type |
|
|
2012
|
-
| --- | --- |
|
|
2013
|
-
| `$implicit` | `ChartSliceContext` |
|
|
2014
|
-
| `category` | `unknown` |
|
|
2015
|
-
| `color` | `string` |
|
|
2016
|
-
| `dataIndex` | `number` |
|
|
2017
|
-
| `datum` | `unknown` |
|
|
2018
|
-
| `formattedCategory` | `string` |
|
|
2019
|
-
| `formattedPercentage` | `string` |
|
|
2020
|
-
| `formattedValue` | `string` |
|
|
2021
|
-
| `percentage` | `number` |
|
|
2022
|
-
| `seriesId` | `string` |
|
|
2023
|
-
| `seriesName` | `string` |
|
|
2024
|
-
| `seriesType` | `"donut" \| "pie"` |
|
|
2025
|
-
| `slice` | `ChartSliceContext` |
|
|
2026
|
-
| `value` | `number` |
|
|
2027
|
-
|
|
2028
1034
|
### `ChartSubtitleTemplateDirective`
|
|
2029
1035
|
|
|
2030
1036
|
**Selector:** `ng-template[monaChartSubtitleTemplate]`
|
|
@@ -2061,72 +1067,46 @@ Adds a tooltip for pointer and keyboard interaction. Use `ng-template[monaChartT
|
|
|
2061
1067
|
| `series` | `readonly string[]` |
|
|
2062
1068
|
| `shared` | `boolean` |
|
|
2063
1069
|
|
|
2064
|
-
### `
|
|
1070
|
+
### `ChartExportError`
|
|
2065
1071
|
|
|
2066
|
-
|
|
1072
|
+
Error thrown when a chart export operation fails.
|
|
2067
1073
|
|
|
2068
|
-
####
|
|
1074
|
+
#### Properties
|
|
2069
1075
|
|
|
2070
1076
|
| Name | Type |
|
|
2071
1077
|
| --- | --- |
|
|
2072
|
-
|
|
|
2073
|
-
| `bounds` | `ChartRect` |
|
|
2074
|
-
| `color` | `string` |
|
|
2075
|
-
| `datum` | `unknown` |
|
|
2076
|
-
| `depth` | `number` |
|
|
2077
|
-
| `formattedLabel` | `string` |
|
|
2078
|
-
| `formattedPath` | `readonly string[]` |
|
|
2079
|
-
| `formattedValue` | `string` |
|
|
2080
|
-
| `isCollapsed` | `boolean` |
|
|
2081
|
-
| `isLeaf` | `boolean` |
|
|
2082
|
-
| `label` | `unknown` |
|
|
2083
|
-
| `node` | `ChartHierarchyNodeContext<unknown>` |
|
|
2084
|
-
| `nodeId` | `string` |
|
|
2085
|
-
| `path` | `readonly unknown[]` |
|
|
2086
|
-
| `percentageOfParent?` | `number \| undefined` |
|
|
2087
|
-
| `percentageOfRoot?` | `number \| undefined` |
|
|
2088
|
-
| `textColor` | `string` |
|
|
2089
|
-
| `value` | `number` |
|
|
1078
|
+
| `code` (read-only) | `ChartExportErrorCode` |
|
|
2090
1079
|
|
|
2091
|
-
### `
|
|
1080
|
+
### `chartItemCategoryId`
|
|
2092
1081
|
|
|
2093
|
-
|
|
1082
|
+
The ID of the item whose category is `category`, as a radial bar or rose series gives an item without a `keyField`
|
|
1083
|
+
value. Use it in `hiddenItemIds`. Returns `undefined` for a number that isn't finite or a date that isn't valid,
|
|
1084
|
+
which can't identify an item.
|
|
2094
1085
|
|
|
2095
|
-
|
|
1086
|
+
```typescript
|
|
1087
|
+
function chartItemCategoryId(category: boolean | string): string;
|
|
1088
|
+
function chartItemCategoryId(category: ChartItemKey): string | undefined;
|
|
1089
|
+
```
|
|
2096
1090
|
|
|
2097
|
-
|
|
2098
|
-
| --- | --- |
|
|
2099
|
-
| `$implicit` | `ChartWaterfallPointContext<unknown>` |
|
|
2100
|
-
| `barEnd` | `number` |
|
|
2101
|
-
| `barStart` | `number` |
|
|
2102
|
-
| `bounds` | `ChartRect` |
|
|
2103
|
-
| `category` | `unknown` |
|
|
2104
|
-
| `color` | `string` |
|
|
2105
|
-
| `cumulativeAfter` | `number` |
|
|
2106
|
-
| `cumulativeBefore` | `number` |
|
|
2107
|
-
| `dataIndex` | `number` |
|
|
2108
|
-
| `datum` | `unknown` |
|
|
2109
|
-
| `deltaValue?` | `number \| undefined` |
|
|
2110
|
-
| `formattedCategory` | `string` |
|
|
2111
|
-
| `formattedCumulativeAfter` | `string` |
|
|
2112
|
-
| `formattedCumulativeBefore` | `string` |
|
|
2113
|
-
| `formattedDelta?` | `string \| undefined` |
|
|
2114
|
-
| `formattedValue` | `string` |
|
|
2115
|
-
| `kind` | `ChartWaterfallDatumKind` |
|
|
2116
|
-
| `step` | `ChartWaterfallPointContext<unknown>` |
|
|
2117
|
-
| `textColor?` | `string \| undefined` |
|
|
2118
|
-
| `value` | `number` |
|
|
2119
|
-
| `visualKind` | `ChartWaterfallVisualKind` |
|
|
1091
|
+
### `chartItemIndexId`
|
|
2120
1092
|
|
|
2121
|
-
|
|
1093
|
+
The ID of the item in row `index`, as a funnel stage, waterfall step, or radial bar or rose item gets it when it has
|
|
1094
|
+
no `keyField` value (and, for a radial series, no category). It follows the position, not the row.
|
|
2122
1095
|
|
|
2123
|
-
|
|
1096
|
+
```typescript
|
|
1097
|
+
function chartItemIndexId(index: number): string;
|
|
1098
|
+
```
|
|
2124
1099
|
|
|
2125
|
-
|
|
1100
|
+
### `chartItemKeyId`
|
|
2126
1101
|
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
1102
|
+
The ID of the item whose `keyField` value is `key`, as funnel stages, treemap nodes, waterfall steps and radial bar
|
|
1103
|
+
and rose items use it. Use it in `hiddenStageIds`, `hiddenNodeIds` or `hiddenItemIds`, or to compare with an ID an
|
|
1104
|
+
event gives. Returns `undefined` for a number that isn't finite or a date that isn't valid, which can't be a key.
|
|
1105
|
+
|
|
1106
|
+
```typescript
|
|
1107
|
+
function chartItemKeyId(key: boolean | string): string;
|
|
1108
|
+
function chartItemKeyId(key: ChartItemKey): string | undefined;
|
|
1109
|
+
```
|
|
2130
1110
|
|
|
2131
1111
|
### `getChartSeriesFamily`
|
|
2132
1112
|
|
|
@@ -2260,47 +1240,6 @@ const CHART_DEFAULT_MESSAGES: MonaChartMessages;
|
|
|
2260
1240
|
| `kind` (read-only) | `"category"` |
|
|
2261
1241
|
| `startIndex` (read-only) | `number` |
|
|
2262
1242
|
|
|
2263
|
-
#### `ChartCenterTemplateContext`
|
|
2264
|
-
|
|
2265
|
-
| Name | Type |
|
|
2266
|
-
| --- | --- |
|
|
2267
|
-
| `$implicit` | `number` |
|
|
2268
|
-
| `formattedTotal` | `string` |
|
|
2269
|
-
| `seriesId` | `string` |
|
|
2270
|
-
| `seriesName` | `string` |
|
|
2271
|
-
| `total` | `number` |
|
|
2272
|
-
| `visibleSliceCount` | `number` |
|
|
2273
|
-
|
|
2274
|
-
#### `ChartColorLegendScale`
|
|
2275
|
-
|
|
2276
|
-
| Name | Type |
|
|
2277
|
-
| --- | --- |
|
|
2278
|
-
| `formattedMax` (read-only) | `string` |
|
|
2279
|
-
| `formattedMidpoint?` (read-only) | `string` |
|
|
2280
|
-
| `formattedMin` (read-only) | `string` |
|
|
2281
|
-
| `kind` (read-only) | `"color"` |
|
|
2282
|
-
| `midpoint?` (read-only) | `number` |
|
|
2283
|
-
| `mode` (read-only) | `ChartHeatmapColorMode` |
|
|
2284
|
-
| `stops` (read-only) | `readonly ChartColorLegendStop[]` |
|
|
2285
|
-
| `ticks` (read-only) | `readonly ChartColorLegendTick[]` |
|
|
2286
|
-
| `title` (read-only) | `string` |
|
|
2287
|
-
|
|
2288
|
-
#### `ChartColorLegendStop`
|
|
2289
|
-
|
|
2290
|
-
| Name | Type |
|
|
2291
|
-
| --- | --- |
|
|
2292
|
-
| `color` (read-only) | `string` |
|
|
2293
|
-
| `offset` (read-only) | `number` |
|
|
2294
|
-
| `value` (read-only) | `number` |
|
|
2295
|
-
|
|
2296
|
-
#### `ChartColorLegendTick`
|
|
2297
|
-
|
|
2298
|
-
| Name | Type |
|
|
2299
|
-
| --- | --- |
|
|
2300
|
-
| `formattedValue` (read-only) | `string` |
|
|
2301
|
-
| `offset` (read-only) | `number` |
|
|
2302
|
-
| `value` (read-only) | `number` |
|
|
2303
|
-
|
|
2304
1243
|
#### `ChartContinuousViewportWindow`
|
|
2305
1244
|
|
|
2306
1245
|
**Extends:** `ChartViewportAxisRef`
|
|
@@ -2402,231 +1341,53 @@ const CHART_DEFAULT_MESSAGES: MonaChartMessages;
|
|
|
2402
1341
|
| `color?` | `string` | Optional text color override. |
|
|
2403
1342
|
| `formatter?` | `ChartDataLabelFormatter` | Optional semantic formatter. Returning null/undefined/"" suppresses that label. |
|
|
2404
1343
|
| `maxLabels?` | `number` | Maximum accepted labels for this series. Default: 200 |
|
|
2405
|
-
| `offset?` | `number` | Distance in CSS pixels between the mark anchor and label. Default: 6 |
|
|
2406
|
-
| `overflow?` | `"clip" \| "hide"` | Plot-boundary behavior. Default: "hide" |
|
|
2407
|
-
| `position?` | `ChartDataLabelPosition` | Placement strategy. Default: "auto" |
|
|
2408
|
-
|
|
2409
|
-
#### `ChartDownsamplingOptions`
|
|
2410
|
-
|
|
2411
|
-
| Name | Type |
|
|
2412
|
-
| --- | --- |
|
|
2413
|
-
| `algorithm?` (read-only) | `ChartDownsamplingAlgorithm` |
|
|
2414
|
-
| `enabled?` (read-only) | `boolean` |
|
|
2415
|
-
| `maxPoints?` (read-only) | `number` |
|
|
2416
|
-
| `samplesPerPixel?` (read-only) | `number` |
|
|
2417
|
-
| `threshold?` (read-only) | `number` |
|
|
2418
|
-
|
|
2419
|
-
#### `ChartExportBaseOptions`
|
|
2420
|
-
|
|
2421
|
-
Shared base options for all chart export formats.
|
|
2422
|
-
|
|
2423
|
-
| Name | Type | Description |
|
|
2424
|
-
| --- | --- | --- |
|
|
2425
|
-
| `background?` (read-only) | `ChartExportBackground` | Background color policy or explicit CSS color. Default: "auto". |
|
|
2426
|
-
| `height?` (read-only) | `number` | Optional logical output height in CSS pixels. When omitted, the current chart aspect ratio or source height is preserved. |
|
|
2427
|
-
| `presentation?` (read-only) | `ChartExportPresentationOptions` | Optional presentation options controlling selection, crosshair, and brush inclusion. |
|
|
2428
|
-
| `signal?` (read-only) | `AbortSignal` | Optional AbortSignal for aborting the export operation. |
|
|
2429
|
-
| `width?` (read-only) | `number` | Optional logical output width in CSS pixels. When omitted, the current chart width is preserved. |
|
|
2430
|
-
|
|
2431
|
-
#### `ChartExportPresentationOptions`
|
|
2432
|
-
|
|
2433
|
-
Options controlling which interactive/presentation elements are included in the export.
|
|
2434
|
-
|
|
2435
|
-
| Name | Type | Description |
|
|
2436
|
-
| --- | --- | --- |
|
|
2437
|
-
| `brush?` (read-only) | `boolean` | Whether to include active brush marquee overlay. Default: false. |
|
|
2438
|
-
| `crosshair?` (read-only) | `boolean` | Whether to include active crosshair overlay and axis badges. Default: false. |
|
|
2439
|
-
| `selection?` (read-only) | `boolean` | Whether to include persistent mark selection visuals. Default: true. |
|
|
2440
|
-
|
|
2441
|
-
#### `ChartExportResult`
|
|
2442
|
-
|
|
2443
|
-
Result of a chart export operation.
|
|
2444
|
-
|
|
2445
|
-
| Name | Type | Description |
|
|
2446
|
-
| --- | --- | --- |
|
|
2447
|
-
| `blob` (read-only) | `Blob` | The generated binary Blob containing the exported chart. |
|
|
2448
|
-
| `format` (read-only) | `ChartExportFormat` | The export format that was produced. |
|
|
2449
|
-
| `height` (read-only) | `number` | The logical output height in CSS pixels. |
|
|
2450
|
-
| `mimeType` (read-only) | `string` | The MIME type of the exported blob (e.g. "image/png", "image/svg+xml", "application/pdf"). |
|
|
2451
|
-
| `width` (read-only) | `number` | The logical output width in CSS pixels. |
|
|
2452
|
-
|
|
2453
|
-
#### `ChartFunnelLabelTemplateContext`
|
|
2454
|
-
|
|
2455
|
-
**Type parameters:** `T = unknown`
|
|
2456
|
-
|
|
2457
|
-
| Name | Type |
|
|
2458
|
-
| --- | --- |
|
|
2459
|
-
| `$implicit` (read-only) | `ChartFunnelStageContext<T>` |
|
|
2460
|
-
| `bounds` (read-only) | `ChartRect` |
|
|
2461
|
-
| `category` (read-only) | `unknown` |
|
|
2462
|
-
| `color` (read-only) | `string` |
|
|
2463
|
-
| `conversionRate?` (read-only) | `number` |
|
|
2464
|
-
| `dataIndex` (read-only) | `number` |
|
|
2465
|
-
| `datum` (read-only) | `T` |
|
|
2466
|
-
| `dropOff?` (read-only) | `number` |
|
|
2467
|
-
| `formattedCategory` (read-only) | `string` |
|
|
2468
|
-
| `formattedConversionRate?` (read-only) | `string` |
|
|
2469
|
-
| `formattedOverallConversionRate?` (read-only) | `string` |
|
|
2470
|
-
| `formattedValue` (read-only) | `string` |
|
|
2471
|
-
| `overallConversionRate?` (read-only) | `number` |
|
|
2472
|
-
| `previousValue?` (read-only) | `number` |
|
|
2473
|
-
| `stage` (read-only) | `ChartFunnelStageContext<T>` |
|
|
2474
|
-
| `stageId` (read-only) | `string` |
|
|
2475
|
-
| `stageIndex` (read-only) | `number` |
|
|
2476
|
-
| `textColor?` (read-only) | `string` |
|
|
2477
|
-
| `value` (read-only) | `number` |
|
|
2478
|
-
|
|
2479
|
-
#### `ChartFunnelPointMetadata`
|
|
2480
|
-
|
|
2481
|
-
| Name | Type |
|
|
2482
|
-
| --- | --- |
|
|
2483
|
-
| `category` (read-only) | `unknown` |
|
|
2484
|
-
| `conversionRate?` (read-only) | `number` |
|
|
2485
|
-
| `dropOff?` (read-only) | `number` |
|
|
2486
|
-
| `formattedCategory` (read-only) | `string` |
|
|
2487
|
-
| `formattedConversionRate?` (read-only) | `string` |
|
|
2488
|
-
| `formattedOverallConversionRate?` (read-only) | `string` |
|
|
2489
|
-
| `formattedValue` (read-only) | `string` |
|
|
2490
|
-
| `overallConversionRate?` (read-only) | `number` |
|
|
2491
|
-
| `previousValue?` (read-only) | `number` |
|
|
2492
|
-
| `stageId` (read-only) | `string` |
|
|
2493
|
-
| `stageIndex` (read-only) | `number` |
|
|
2494
|
-
| `value` (read-only) | `number` |
|
|
2495
|
-
|
|
2496
|
-
#### `ChartFunnelStageContext`
|
|
2497
|
-
|
|
2498
|
-
**Type parameters:** `T = unknown`
|
|
2499
|
-
|
|
2500
|
-
| Name | Type |
|
|
2501
|
-
| --- | --- |
|
|
2502
|
-
| `bounds` (read-only) | `ChartRect` |
|
|
2503
|
-
| `category` (read-only) | `unknown` |
|
|
2504
|
-
| `color` (read-only) | `string` |
|
|
2505
|
-
| `conversionRate?` (read-only) | `number` |
|
|
2506
|
-
| `dataIndex` (read-only) | `number` |
|
|
2507
|
-
| `datum` (read-only) | `T` |
|
|
2508
|
-
| `dropOff?` (read-only) | `number` |
|
|
2509
|
-
| `formattedCategory` (read-only) | `string` |
|
|
2510
|
-
| `formattedConversionRate?` (read-only) | `string` |
|
|
2511
|
-
| `formattedOverallConversionRate?` (read-only) | `string` |
|
|
2512
|
-
| `formattedValue` (read-only) | `string` |
|
|
2513
|
-
| `overallConversionRate?` (read-only) | `number` |
|
|
2514
|
-
| `previousValue?` (read-only) | `number` |
|
|
2515
|
-
| `stageId` (read-only) | `string` |
|
|
2516
|
-
| `stageIndex` (read-only) | `number` |
|
|
2517
|
-
| `textColor?` (read-only) | `string` |
|
|
2518
|
-
| `value` (read-only) | `number` |
|
|
2519
|
-
|
|
2520
|
-
#### `ChartFunnelStageVisibilityEvent`
|
|
2521
|
-
|
|
2522
|
-
**Type parameters:** `T = unknown`
|
|
2523
|
-
|
|
2524
|
-
| Name | Type |
|
|
2525
|
-
| --- | --- |
|
|
2526
|
-
| `category` (read-only) | `unknown` |
|
|
2527
|
-
| `dataIndex` (read-only) | `number` |
|
|
2528
|
-
| `datum` (read-only) | `T` |
|
|
2529
|
-
| `formattedCategory` (read-only) | `string` |
|
|
2530
|
-
| `seriesId` (read-only) | `string` |
|
|
2531
|
-
| `seriesName` (read-only) | `string` |
|
|
2532
|
-
| `seriesType` (read-only) | `"funnel"` |
|
|
2533
|
-
| `stageId` (read-only) | `string` |
|
|
2534
|
-
| `visible` (read-only) | `boolean` |
|
|
1344
|
+
| `offset?` | `number` | Distance in CSS pixels between the mark anchor and label. Default: 6 |
|
|
1345
|
+
| `overflow?` | `"clip" \| "hide"` | Plot-boundary behavior. Default: "hide" |
|
|
1346
|
+
| `position?` | `ChartDataLabelPosition` | Placement strategy. Default: "auto" |
|
|
2535
1347
|
|
|
2536
|
-
#### `
|
|
1348
|
+
#### `ChartDownsamplingOptions`
|
|
2537
1349
|
|
|
2538
1350
|
| Name | Type |
|
|
2539
1351
|
| --- | --- |
|
|
2540
|
-
|
|
|
2541
|
-
| `
|
|
2542
|
-
| `
|
|
2543
|
-
| `
|
|
2544
|
-
| `
|
|
2545
|
-
| `max` (read-only) | `number` |
|
|
2546
|
-
| `min` (read-only) | `number` |
|
|
2547
|
-
| `ratio` (read-only) | `number` |
|
|
2548
|
-
| `seriesId` (read-only) | `string` |
|
|
2549
|
-
| `seriesName` (read-only) | `string` |
|
|
2550
|
-
| `value` (read-only) | `number` |
|
|
1352
|
+
| `algorithm?` (read-only) | `ChartDownsamplingAlgorithm` |
|
|
1353
|
+
| `enabled?` (read-only) | `boolean` |
|
|
1354
|
+
| `maxPoints?` (read-only) | `number` |
|
|
1355
|
+
| `samplesPerPixel?` (read-only) | `number` |
|
|
1356
|
+
| `threshold?` (read-only) | `number` |
|
|
2551
1357
|
|
|
2552
|
-
#### `
|
|
1358
|
+
#### `ChartExportBaseOptions`
|
|
2553
1359
|
|
|
2554
|
-
|
|
2555
|
-
| --- | --- |
|
|
2556
|
-
| `formattedValue` (read-only) | `string` |
|
|
2557
|
-
| `index` (read-only) | `number` |
|
|
2558
|
-
| `key` (read-only) | `string` |
|
|
2559
|
-
| `value` (read-only) | `unknown` |
|
|
1360
|
+
Shared base options for all chart export formats.
|
|
2560
1361
|
|
|
2561
|
-
|
|
1362
|
+
| Name | Type | Description |
|
|
1363
|
+
| --- | --- | --- |
|
|
1364
|
+
| `background?` (read-only) | `ChartExportBackground` | Background color policy or explicit CSS color. Default: "auto". |
|
|
1365
|
+
| `height?` (read-only) | `number` | Optional logical output height in CSS pixels. When omitted, the current chart aspect ratio or source height is preserved. |
|
|
1366
|
+
| `presentation?` (read-only) | `ChartExportPresentationOptions` | Optional presentation options controlling selection, crosshair, and brush inclusion. |
|
|
1367
|
+
| `signal?` (read-only) | `AbortSignal` | Optional AbortSignal for aborting the export operation. |
|
|
1368
|
+
| `width?` (read-only) | `number` | Optional logical output width in CSS pixels. When omitted, the current chart width is preserved. |
|
|
2562
1369
|
|
|
2563
|
-
|
|
1370
|
+
#### `ChartExportPresentationOptions`
|
|
2564
1371
|
|
|
2565
|
-
|
|
2566
|
-
| --- | --- |
|
|
2567
|
-
| `categoryX` (read-only) | `string` |
|
|
2568
|
-
| `categoryY` (read-only) | `string` |
|
|
2569
|
-
| `datum` (read-only) | `TDatum` |
|
|
2570
|
-
| `formattedValue` (read-only) | `string` |
|
|
2571
|
-
| `formattedX` (read-only) | `string` |
|
|
2572
|
-
| `formattedY` (read-only) | `string` |
|
|
2573
|
-
| `numericValue` (read-only) | `number \| null` |
|
|
2574
|
-
| `rawValue` (read-only) | `unknown` |
|
|
2575
|
-
| `xIndex` (read-only) | `number` |
|
|
2576
|
-
| `yIndex` (read-only) | `number` |
|
|
1372
|
+
Options controlling which interactive/presentation elements are included in the export.
|
|
2577
1373
|
|
|
2578
|
-
|
|
1374
|
+
| Name | Type | Description |
|
|
1375
|
+
| --- | --- | --- |
|
|
1376
|
+
| `brush?` (read-only) | `boolean` | Whether to include active brush marquee overlay. Default: false. |
|
|
1377
|
+
| `crosshair?` (read-only) | `boolean` | Whether to include active crosshair overlay and axis badges. Default: false. |
|
|
1378
|
+
| `selection?` (read-only) | `boolean` | Whether to include persistent mark selection visuals. Default: true. |
|
|
2579
1379
|
|
|
2580
|
-
|
|
1380
|
+
#### `ChartExportResult`
|
|
2581
1381
|
|
|
2582
|
-
|
|
2583
|
-
| --- | --- |
|
|
2584
|
-
| `aggregateValue` (read-only) | `number` |
|
|
2585
|
-
| `childCount` (read-only) | `number` |
|
|
2586
|
-
| `dataIndex` (read-only) | `number` |
|
|
2587
|
-
| `datum` (read-only) | `T` |
|
|
2588
|
-
| `depth` (read-only) | `number` |
|
|
2589
|
-
| `descendantCount` (read-only) | `number` |
|
|
2590
|
-
| `formattedLabel` (read-only) | `string` |
|
|
2591
|
-
| `formattedPath` (read-only) | `readonly string[]` |
|
|
2592
|
-
| `formattedValue` (read-only) | `string` |
|
|
2593
|
-
| `isCollapsed` (read-only) | `boolean` |
|
|
2594
|
-
| `isLeaf` (read-only) | `boolean` |
|
|
2595
|
-
| `label` (read-only) | `unknown` |
|
|
2596
|
-
| `nodeId` (read-only) | `string` |
|
|
2597
|
-
| `parentId?` (read-only) | `string` |
|
|
2598
|
-
| `path` (read-only) | `readonly unknown[]` |
|
|
2599
|
-
| `percentageOfParent?` (read-only) | `number` |
|
|
2600
|
-
| `percentageOfRoot?` (read-only) | `number` |
|
|
2601
|
-
| `rawValue?` (read-only) | `number` |
|
|
2602
|
-
| `siblingIndex` (read-only) | `number` |
|
|
2603
|
-
| `sourceIndexPath` (read-only) | `readonly number[]` |
|
|
2604
|
-
| `treeHeight` (read-only) | `number` |
|
|
2605
|
-
|
|
2606
|
-
#### `ChartHierarchyPointMetadata`
|
|
1382
|
+
Result of a chart export operation.
|
|
2607
1383
|
|
|
2608
|
-
| Name | Type |
|
|
2609
|
-
| --- | --- |
|
|
2610
|
-
| `
|
|
2611
|
-
| `
|
|
2612
|
-
| `
|
|
2613
|
-
| `
|
|
2614
|
-
| `
|
|
2615
|
-
| `formattedLabel` (read-only) | `string` |
|
|
2616
|
-
| `formattedPath` (read-only) | `readonly string[]` |
|
|
2617
|
-
| `formattedValue` (read-only) | `string` |
|
|
2618
|
-
| `isCollapsed` (read-only) | `boolean` |
|
|
2619
|
-
| `isLeaf` (read-only) | `boolean` |
|
|
2620
|
-
| `label` (read-only) | `unknown` |
|
|
2621
|
-
| `nodeId` (read-only) | `string` |
|
|
2622
|
-
| `parentId?` (read-only) | `string` |
|
|
2623
|
-
| `path` (read-only) | `readonly unknown[]` |
|
|
2624
|
-
| `percentageOfParent?` (read-only) | `number` |
|
|
2625
|
-
| `percentageOfRoot?` (read-only) | `number` |
|
|
2626
|
-
| `rawValue?` (read-only) | `number` |
|
|
2627
|
-
| `siblingIndex` (read-only) | `number` |
|
|
2628
|
-
| `sourceIndexPath` (read-only) | `readonly number[]` |
|
|
2629
|
-
| `treeHeight` (read-only) | `number` |
|
|
1384
|
+
| Name | Type | Description |
|
|
1385
|
+
| --- | --- | --- |
|
|
1386
|
+
| `blob` (read-only) | `Blob` | The generated binary Blob containing the exported chart. |
|
|
1387
|
+
| `format` (read-only) | `ChartExportFormat` | The export format that was produced. |
|
|
1388
|
+
| `height` (read-only) | `number` | The logical output height in CSS pixels. |
|
|
1389
|
+
| `mimeType` (read-only) | `string` | The MIME type of the exported blob (e.g. "image/png", "image/svg+xml", "application/pdf"). |
|
|
1390
|
+
| `width` (read-only) | `number` | The logical output width in CSS pixels. |
|
|
2630
1391
|
|
|
2631
1392
|
#### `ChartLabelMeasurement`
|
|
2632
1393
|
|
|
@@ -2693,25 +1454,6 @@ Result of a chart export operation.
|
|
|
2693
1454
|
| `zoom?` (read-only) | `boolean` |
|
|
2694
1455
|
| `zoomAxes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
2695
1456
|
|
|
2696
|
-
#### `ChartOhlcPointValue`
|
|
2697
|
-
|
|
2698
|
-
| Name | Type |
|
|
2699
|
-
| --- | --- |
|
|
2700
|
-
| `change?` (read-only) | `number` |
|
|
2701
|
-
| `changePercentage?` (read-only) | `number` |
|
|
2702
|
-
| `close` (read-only) | `number` |
|
|
2703
|
-
| `direction` (read-only) | `ChartFinancialDirection` |
|
|
2704
|
-
| `formattedChange?` (read-only) | `string` |
|
|
2705
|
-
| `formattedChangePercentage?` (read-only) | `string` |
|
|
2706
|
-
| `formattedClose?` (read-only) | `string` |
|
|
2707
|
-
| `formattedHigh?` (read-only) | `string` |
|
|
2708
|
-
| `formattedLow?` (read-only) | `string` |
|
|
2709
|
-
| `formattedOpen?` (read-only) | `string` |
|
|
2710
|
-
| `high` (read-only) | `number` |
|
|
2711
|
-
| `low` (read-only) | `number` |
|
|
2712
|
-
| `open` (read-only) | `number` |
|
|
2713
|
-
| `valueKind` (read-only) | `"ohlc"` |
|
|
2714
|
-
|
|
2715
1457
|
#### `ChartPadding`
|
|
2716
1458
|
|
|
2717
1459
|
| Name | Type |
|
|
@@ -2890,19 +1632,6 @@ Options for exporting a chart as a PNG raster image.
|
|
|
2890
1632
|
| `yCategory?` (read-only) | `unknown` |
|
|
2891
1633
|
| `yValue?` (read-only) | `number` |
|
|
2892
1634
|
|
|
2893
|
-
#### `ChartRadialDatumVisibilityEvent`
|
|
2894
|
-
|
|
2895
|
-
| Name | Type |
|
|
2896
|
-
| --- | --- |
|
|
2897
|
-
| `category` (read-only) | `unknown` |
|
|
2898
|
-
| `dataIndex` (read-only) | `number` |
|
|
2899
|
-
| `datum` (read-only) | `unknown` |
|
|
2900
|
-
| `itemId` (read-only) | `string` |
|
|
2901
|
-
| `seriesId` (read-only) | `string` |
|
|
2902
|
-
| `seriesName` (read-only) | `string` |
|
|
2903
|
-
| `seriesType` (read-only) | `"radialBar" \| "rose"` |
|
|
2904
|
-
| `visible` (read-only) | `boolean` |
|
|
2905
|
-
|
|
2906
1635
|
#### `ChartRangePointValue`
|
|
2907
1636
|
|
|
2908
1637
|
| Name | Type |
|
|
@@ -3035,54 +1764,6 @@ Options for exporting a chart as a PNG raster image.
|
|
|
3035
1764
|
| `height` | `number` |
|
|
3036
1765
|
| `width` | `number` |
|
|
3037
1766
|
|
|
3038
|
-
#### `ChartSliceContext`
|
|
3039
|
-
|
|
3040
|
-
| Name | Type |
|
|
3041
|
-
| --- | --- |
|
|
3042
|
-
| `category` | `unknown` |
|
|
3043
|
-
| `color` | `string` |
|
|
3044
|
-
| `dataIndex` | `number` |
|
|
3045
|
-
| `datum` | `unknown` |
|
|
3046
|
-
| `formattedCategory` | `string` |
|
|
3047
|
-
| `formattedPercentage` | `string` |
|
|
3048
|
-
| `formattedValue` | `string` |
|
|
3049
|
-
| `percentage` | `number` |
|
|
3050
|
-
| `seriesId` | `string` |
|
|
3051
|
-
| `seriesName` | `string` |
|
|
3052
|
-
| `seriesType` | `"donut" \| "pie"` |
|
|
3053
|
-
| `value` | `number` |
|
|
3054
|
-
|
|
3055
|
-
#### `ChartSliceLabelTemplateContext`
|
|
3056
|
-
|
|
3057
|
-
| Name | Type |
|
|
3058
|
-
| --- | --- |
|
|
3059
|
-
| `$implicit` | `ChartSliceContext` |
|
|
3060
|
-
| `category` | `unknown` |
|
|
3061
|
-
| `color` | `string` |
|
|
3062
|
-
| `dataIndex` | `number` |
|
|
3063
|
-
| `datum` | `unknown` |
|
|
3064
|
-
| `formattedCategory` | `string` |
|
|
3065
|
-
| `formattedPercentage` | `string` |
|
|
3066
|
-
| `formattedValue` | `string` |
|
|
3067
|
-
| `percentage` | `number` |
|
|
3068
|
-
| `seriesId` | `string` |
|
|
3069
|
-
| `seriesName` | `string` |
|
|
3070
|
-
| `seriesType` | `"donut" \| "pie"` |
|
|
3071
|
-
| `slice` | `ChartSliceContext` |
|
|
3072
|
-
| `value` | `number` |
|
|
3073
|
-
|
|
3074
|
-
#### `ChartSliceVisibilityEvent`
|
|
3075
|
-
|
|
3076
|
-
| Name | Type |
|
|
3077
|
-
| --- | --- |
|
|
3078
|
-
| `category` | `unknown` |
|
|
3079
|
-
| `dataIndex` | `number` |
|
|
3080
|
-
| `datum` | `unknown` |
|
|
3081
|
-
| `seriesId` | `string` |
|
|
3082
|
-
| `seriesName` | `string` |
|
|
3083
|
-
| `seriesType` | `"donut" \| "pie"` |
|
|
3084
|
-
| `visible` | `boolean` |
|
|
3085
|
-
|
|
3086
1767
|
#### `ChartSubtitleTemplateContext`
|
|
3087
1768
|
|
|
3088
1769
|
| Name | Type |
|
|
@@ -3209,48 +1890,6 @@ Options for exporting a chart as a standalone SVG vector document.
|
|
|
3209
1890
|
| `series` | `readonly string[]` |
|
|
3210
1891
|
| `shared` | `boolean` |
|
|
3211
1892
|
|
|
3212
|
-
#### `ChartTreemapLabelTemplateContext`
|
|
3213
|
-
|
|
3214
|
-
**Type parameters:** `T = unknown`
|
|
3215
|
-
|
|
3216
|
-
| Name | Type |
|
|
3217
|
-
| --- | --- |
|
|
3218
|
-
| `$implicit` (read-only) | `ChartHierarchyNodeContext<T>` |
|
|
3219
|
-
| `bounds` (read-only) | `ChartRect` |
|
|
3220
|
-
| `color` (read-only) | `string` |
|
|
3221
|
-
| `datum` (read-only) | `T` |
|
|
3222
|
-
| `depth` (read-only) | `number` |
|
|
3223
|
-
| `formattedLabel` (read-only) | `string` |
|
|
3224
|
-
| `formattedPath` (read-only) | `readonly string[]` |
|
|
3225
|
-
| `formattedValue` (read-only) | `string` |
|
|
3226
|
-
| `isCollapsed` (read-only) | `boolean` |
|
|
3227
|
-
| `isLeaf` (read-only) | `boolean` |
|
|
3228
|
-
| `label` (read-only) | `unknown` |
|
|
3229
|
-
| `node` (read-only) | `ChartHierarchyNodeContext<T>` |
|
|
3230
|
-
| `nodeId` (read-only) | `string` |
|
|
3231
|
-
| `path` (read-only) | `readonly unknown[]` |
|
|
3232
|
-
| `percentageOfParent?` (read-only) | `number` |
|
|
3233
|
-
| `percentageOfRoot?` (read-only) | `number` |
|
|
3234
|
-
| `textColor` (read-only) | `string` |
|
|
3235
|
-
| `value` (read-only) | `number` |
|
|
3236
|
-
|
|
3237
|
-
#### `ChartTreemapNodeVisibilityEvent`
|
|
3238
|
-
|
|
3239
|
-
**Type parameters:** `T = unknown`
|
|
3240
|
-
|
|
3241
|
-
| Name | Type |
|
|
3242
|
-
| --- | --- |
|
|
3243
|
-
| `dataIndex?` (read-only) | `number` |
|
|
3244
|
-
| `datum?` (read-only) | `T` |
|
|
3245
|
-
| `depth?` (read-only) | `number` |
|
|
3246
|
-
| `formattedLabel?` (read-only) | `string` |
|
|
3247
|
-
| `label?` (read-only) | `unknown` |
|
|
3248
|
-
| `nodeId` (read-only) | `string` |
|
|
3249
|
-
| `seriesId` (read-only) | `string` |
|
|
3250
|
-
| `seriesName` (read-only) | `string` |
|
|
3251
|
-
| `seriesType` (read-only) | `"treemap"` |
|
|
3252
|
-
| `visible` (read-only) | `boolean` |
|
|
3253
|
-
|
|
3254
1893
|
#### `ChartViewportAxisRef`
|
|
3255
1894
|
|
|
3256
1895
|
| Name | Type |
|
|
@@ -3303,104 +1942,6 @@ Options for exporting a chart as a standalone SVG vector document.
|
|
|
3303
1942
|
| `mode?` (read-only) | `ChartSynchronizationMode` |
|
|
3304
1943
|
| `phase?` (read-only) | `"continuous" \| "end"` |
|
|
3305
1944
|
|
|
3306
|
-
#### `ChartWaterfallLabelTemplateContext`
|
|
3307
|
-
|
|
3308
|
-
**Type parameters:** `T = unknown`
|
|
3309
|
-
|
|
3310
|
-
| Name | Type |
|
|
3311
|
-
| --- | --- |
|
|
3312
|
-
| `$implicit` (read-only) | `ChartWaterfallPointContext<T>` |
|
|
3313
|
-
| `barEnd` (read-only) | `number` |
|
|
3314
|
-
| `barStart` (read-only) | `number` |
|
|
3315
|
-
| `bounds` (read-only) | `ChartRect` |
|
|
3316
|
-
| `category` (read-only) | `unknown` |
|
|
3317
|
-
| `color` (read-only) | `string` |
|
|
3318
|
-
| `cumulativeAfter` (read-only) | `number` |
|
|
3319
|
-
| `cumulativeBefore` (read-only) | `number` |
|
|
3320
|
-
| `dataIndex` (read-only) | `number` |
|
|
3321
|
-
| `datum` (read-only) | `T` |
|
|
3322
|
-
| `deltaValue?` (read-only) | `number` |
|
|
3323
|
-
| `formattedCategory` (read-only) | `string` |
|
|
3324
|
-
| `formattedCumulativeAfter` (read-only) | `string` |
|
|
3325
|
-
| `formattedCumulativeBefore` (read-only) | `string` |
|
|
3326
|
-
| `formattedDelta?` (read-only) | `string` |
|
|
3327
|
-
| `formattedValue` (read-only) | `string` |
|
|
3328
|
-
| `kind` (read-only) | `ChartWaterfallDatumKind` |
|
|
3329
|
-
| `step` (read-only) | `ChartWaterfallPointContext<T>` |
|
|
3330
|
-
| `textColor?` (read-only) | `string` |
|
|
3331
|
-
| `value` (read-only) | `number` |
|
|
3332
|
-
| `visualKind` (read-only) | `ChartWaterfallVisualKind` |
|
|
3333
|
-
|
|
3334
|
-
#### `ChartWaterfallPointContext`
|
|
3335
|
-
|
|
3336
|
-
**Type parameters:** `T = unknown`
|
|
3337
|
-
|
|
3338
|
-
| Name | Type |
|
|
3339
|
-
| --- | --- |
|
|
3340
|
-
| `barEnd` (read-only) | `number` |
|
|
3341
|
-
| `barStart` (read-only) | `number` |
|
|
3342
|
-
| `bounds` (read-only) | `ChartRect` |
|
|
3343
|
-
| `category` (read-only) | `unknown` |
|
|
3344
|
-
| `color` (read-only) | `string` |
|
|
3345
|
-
| `cumulativeAfter` (read-only) | `number` |
|
|
3346
|
-
| `cumulativeBefore` (read-only) | `number` |
|
|
3347
|
-
| `dataIndex` (read-only) | `number` |
|
|
3348
|
-
| `datum` (read-only) | `T` |
|
|
3349
|
-
| `deltaValue?` (read-only) | `number` |
|
|
3350
|
-
| `formattedCategory` (read-only) | `string` |
|
|
3351
|
-
| `formattedCumulativeAfter` (read-only) | `string` |
|
|
3352
|
-
| `formattedCumulativeBefore` (read-only) | `string` |
|
|
3353
|
-
| `formattedDelta?` (read-only) | `string` |
|
|
3354
|
-
| `formattedValue` (read-only) | `string` |
|
|
3355
|
-
| `kind` (read-only) | `ChartWaterfallDatumKind` |
|
|
3356
|
-
| `textColor?` (read-only) | `string` |
|
|
3357
|
-
| `value` (read-only) | `number` |
|
|
3358
|
-
| `visualKind` (read-only) | `ChartWaterfallVisualKind` |
|
|
3359
|
-
|
|
3360
|
-
#### `ChartWaterfallPointValue`
|
|
3361
|
-
|
|
3362
|
-
| Name | Type |
|
|
3363
|
-
| --- | --- |
|
|
3364
|
-
| `barEnd` (read-only) | `number` |
|
|
3365
|
-
| `barStart` (read-only) | `number` |
|
|
3366
|
-
| `cumulativeAfter` (read-only) | `number` |
|
|
3367
|
-
| `cumulativeBefore` (read-only) | `number` |
|
|
3368
|
-
| `deltaValue?` (read-only) | `number` |
|
|
3369
|
-
| `formattedCumulativeAfter` (read-only) | `string` |
|
|
3370
|
-
| `formattedCumulativeBefore` (read-only) | `string` |
|
|
3371
|
-
| `formattedDelta?` (read-only) | `string` |
|
|
3372
|
-
| `kind` (read-only) | `ChartWaterfallDatumKind` |
|
|
3373
|
-
| `valueKind` (read-only) | `"waterfall"` |
|
|
3374
|
-
|
|
3375
|
-
#### `HeatmapCellClickEvent`
|
|
3376
|
-
|
|
3377
|
-
**Deprecated.** Nothing emits this. Use `pointClick` on the chart.
|
|
3378
|
-
|
|
3379
|
-
**Type parameters:** `T = unknown`
|
|
3380
|
-
|
|
3381
|
-
| Name | Type |
|
|
3382
|
-
| --- | --- |
|
|
3383
|
-
| `categoryX` (read-only) | `string` |
|
|
3384
|
-
| `categoryY` (read-only) | `string` |
|
|
3385
|
-
| `datum` (read-only) | `T` |
|
|
3386
|
-
| `formattedValue` (read-only) | `string` |
|
|
3387
|
-
| `rawValue` (read-only) | `unknown` |
|
|
3388
|
-
| `seriesId` (read-only) | `string` |
|
|
3389
|
-
| `seriesName` (read-only) | `string` |
|
|
3390
|
-
| `seriesType` (read-only) | `"heatmap"` |
|
|
3391
|
-
| `value` (read-only) | `number \| null` |
|
|
3392
|
-
| `xIndex` (read-only) | `number` |
|
|
3393
|
-
| `yIndex` (read-only) | `number` |
|
|
3394
|
-
|
|
3395
|
-
#### `HeatmapColorStop`
|
|
3396
|
-
|
|
3397
|
-
**Deprecated.** No chart input takes this.
|
|
3398
|
-
|
|
3399
|
-
| Name | Type |
|
|
3400
|
-
| --- | --- |
|
|
3401
|
-
| `color` (read-only) | `string` |
|
|
3402
|
-
| `offset` (read-only) | `number` |
|
|
3403
|
-
|
|
3404
1945
|
#### `ChartAnimationEasing`
|
|
3405
1946
|
|
|
3406
1947
|
```typescript
|
|
@@ -3431,12 +1972,6 @@ type ChartAnnotationLabelPlacement = "bottom" | "left" | "right" | "top";
|
|
|
3431
1972
|
type ChartAnnotationMarker = "circle" | "diamond" | "none";
|
|
3432
1973
|
```
|
|
3433
1974
|
|
|
3434
|
-
#### `ChartAreaFillMode`
|
|
3435
|
-
|
|
3436
|
-
```typescript
|
|
3437
|
-
type ChartAreaFillMode = "gradient" | "solid";
|
|
3438
|
-
```
|
|
3439
|
-
|
|
3440
1975
|
#### `ChartAxisFormatter`
|
|
3441
1976
|
|
|
3442
1977
|
```typescript
|
|
@@ -3455,12 +1990,6 @@ type ChartAxisLabelRotation = "auto" | number;
|
|
|
3455
1990
|
type ChartAxisPosition = ChartXAxisPosition | ChartYAxisSide;
|
|
3456
1991
|
```
|
|
3457
1992
|
|
|
3458
|
-
#### `ChartBarOrientation`
|
|
3459
|
-
|
|
3460
|
-
```typescript
|
|
3461
|
-
type ChartBarOrientation = "horizontal" | "vertical";
|
|
3462
|
-
```
|
|
3463
|
-
|
|
3464
1993
|
#### `ChartBrushActivation`
|
|
3465
1994
|
|
|
3466
1995
|
```typescript
|
|
@@ -3533,12 +2062,6 @@ type ChartCrosshairMode = "auto" | "x" | "xy" | "y";
|
|
|
3533
2062
|
type ChartCrosshairSnapMode = "nearest" | "pointer";
|
|
3534
2063
|
```
|
|
3535
2064
|
|
|
3536
|
-
#### `ChartCurve`
|
|
3537
|
-
|
|
3538
|
-
```typescript
|
|
3539
|
-
type ChartCurve = "linear" | "monotone-x" | "natural" | "step" | "step-after";
|
|
3540
|
-
```
|
|
3541
|
-
|
|
3542
2065
|
#### `ChartDataLabelFormatter`
|
|
3543
2066
|
|
|
3544
2067
|
```typescript
|
|
@@ -3618,36 +2141,6 @@ type ChartExportOptions = ChartPngExportOptions | ChartSvgExportOptions | ChartP
|
|
|
3618
2141
|
type ChartField<T = any, TResult = unknown> = string | ChartValueAccessor<T, TResult>;
|
|
3619
2142
|
```
|
|
3620
2143
|
|
|
3621
|
-
#### `ChartFinancialDirection`
|
|
3622
|
-
|
|
3623
|
-
```typescript
|
|
3624
|
-
type ChartFinancialDirection = "falling" | "neutral" | "rising";
|
|
3625
|
-
```
|
|
3626
|
-
|
|
3627
|
-
#### `ChartFinancialFillMode`
|
|
3628
|
-
|
|
3629
|
-
```typescript
|
|
3630
|
-
type ChartFinancialFillMode = "filled" | "hollow";
|
|
3631
|
-
```
|
|
3632
|
-
|
|
3633
|
-
#### `ChartFunnelLabelContent`
|
|
3634
|
-
|
|
3635
|
-
```typescript
|
|
3636
|
-
type ChartFunnelLabelContent = "category" | "category-value" | "category-value-conversion" | "value";
|
|
3637
|
-
```
|
|
3638
|
-
|
|
3639
|
-
#### `ChartFunnelOrientation`
|
|
3640
|
-
|
|
3641
|
-
```typescript
|
|
3642
|
-
type ChartFunnelOrientation = "horizontal" | "vertical";
|
|
3643
|
-
```
|
|
3644
|
-
|
|
3645
|
-
#### `ChartGaugeIndicator`
|
|
3646
|
-
|
|
3647
|
-
```typescript
|
|
3648
|
-
type ChartGaugeIndicator = "arc" | "both" | "needle";
|
|
3649
|
-
```
|
|
3650
|
-
|
|
3651
2144
|
#### `ChartHeaderAlignment`
|
|
3652
2145
|
|
|
3653
2146
|
How the title and subtitle align: `start` and `end` follow the direction, `left` and `right` don't.
|
|
@@ -3656,16 +2149,12 @@ How the title and subtitle align: `start` and `end` follow the direction, `left`
|
|
|
3656
2149
|
type ChartHeaderAlignment = "center" | "end" | "left" | "right" | "start";
|
|
3657
2150
|
```
|
|
3658
2151
|
|
|
3659
|
-
#### `
|
|
2152
|
+
#### `ChartItemKey`
|
|
3660
2153
|
|
|
3661
|
-
|
|
3662
|
-
type ChartHeatmapColorMode = "diverging" | "sequential";
|
|
3663
|
-
```
|
|
3664
|
-
|
|
3665
|
-
#### `ChartHierarchicalKind`
|
|
2154
|
+
A value that can identify a chart item: a `keyField` value or a category.
|
|
3666
2155
|
|
|
3667
2156
|
```typescript
|
|
3668
|
-
type
|
|
2157
|
+
type ChartItemKey = boolean | Date | number | string;
|
|
3669
2158
|
```
|
|
3670
2159
|
|
|
3671
2160
|
#### `ChartLegendItemKind`
|
|
@@ -3688,12 +2177,6 @@ Where a legend goes: `start` and `end` follow the direction, `left` and `right`
|
|
|
3688
2177
|
type ChartLegendPosition = "bottom" | "end" | "left" | "right" | "start" | "top";
|
|
3689
2178
|
```
|
|
3690
2179
|
|
|
3691
|
-
#### `ChartLineStyle`
|
|
3692
|
-
|
|
3693
|
-
```typescript
|
|
3694
|
-
type ChartLineStyle = "solid" | "dashed" | "dotted";
|
|
3695
|
-
```
|
|
3696
|
-
|
|
3697
2180
|
#### `ChartNavigationAxisTarget`
|
|
3698
2181
|
|
|
3699
2182
|
```typescript
|
|
@@ -3753,54 +2236,6 @@ type ChartPointValue = ChartOhlcPointValue | ChartRangePointValue | ChartScalarP
|
|
|
3753
2236
|
type ChartPointValueKind = "ohlc" | "range" | "scalar" | "waterfall";
|
|
3754
2237
|
```
|
|
3755
2238
|
|
|
3756
|
-
#### `ChartPolarFillMode`
|
|
3757
|
-
|
|
3758
|
-
```typescript
|
|
3759
|
-
type ChartPolarFillMode = "gradient" | "solid";
|
|
3760
|
-
```
|
|
3761
|
-
|
|
3762
|
-
#### `ChartPolarLabelContent`
|
|
3763
|
-
|
|
3764
|
-
```typescript
|
|
3765
|
-
type ChartPolarLabelContent = "category" | "category-percentage" | "percentage" | "value";
|
|
3766
|
-
```
|
|
3767
|
-
|
|
3768
|
-
#### `ChartPolarLabelPosition`
|
|
3769
|
-
|
|
3770
|
-
```typescript
|
|
3771
|
-
type ChartPolarLabelPosition = "inside" | "outside";
|
|
3772
|
-
```
|
|
3773
|
-
|
|
3774
|
-
#### `ChartPolarLabelSide`
|
|
3775
|
-
|
|
3776
|
-
```typescript
|
|
3777
|
-
type ChartPolarLabelSide = "left" | "right";
|
|
3778
|
-
```
|
|
3779
|
-
|
|
3780
|
-
#### `ChartRadialArcFillMode`
|
|
3781
|
-
|
|
3782
|
-
```typescript
|
|
3783
|
-
type ChartRadialArcFillMode = "gradient" | "solid";
|
|
3784
|
-
```
|
|
3785
|
-
|
|
3786
|
-
#### `ChartRadialCurve`
|
|
3787
|
-
|
|
3788
|
-
```typescript
|
|
3789
|
-
type ChartRadialCurve = "linear" | "smooth";
|
|
3790
|
-
```
|
|
3791
|
-
|
|
3792
|
-
#### `ChartRadialFillMode`
|
|
3793
|
-
|
|
3794
|
-
```typescript
|
|
3795
|
-
type ChartRadialFillMode = "gradient" | "none" | "solid";
|
|
3796
|
-
```
|
|
3797
|
-
|
|
3798
|
-
#### `ChartRadialGridShape`
|
|
3799
|
-
|
|
3800
|
-
```typescript
|
|
3801
|
-
type ChartRadialGridShape = "auto" | "circle" | "polygon";
|
|
3802
|
-
```
|
|
3803
|
-
|
|
3804
2239
|
#### `ChartReferenceLabelPosition`
|
|
3805
2240
|
|
|
3806
2241
|
```typescript
|
|
@@ -3825,12 +2260,6 @@ type ChartReferenceLineStyle = "dashed" | "dotted" | "solid";
|
|
|
3825
2260
|
type ChartRendererMode = "canvas" | "svg";
|
|
3826
2261
|
```
|
|
3827
2262
|
|
|
3828
|
-
#### `ChartRoseScaleMode`
|
|
3829
|
-
|
|
3830
|
-
```typescript
|
|
3831
|
-
type ChartRoseScaleMode = "area" | "radius";
|
|
3832
|
-
```
|
|
3833
|
-
|
|
3834
2263
|
#### `ChartSelectionChangeSource`
|
|
3835
2264
|
|
|
3836
2265
|
```typescript
|
|
@@ -3873,18 +2302,6 @@ type ChartSynchronizationInput = false | string | ChartSynchronizationOptions;
|
|
|
3873
2302
|
type ChartSynchronizationMode = "domain" | "relative";
|
|
3874
2303
|
```
|
|
3875
2304
|
|
|
3876
|
-
#### `ChartTreemapSort`
|
|
3877
|
-
|
|
3878
|
-
```typescript
|
|
3879
|
-
type ChartTreemapSort = "ascending" | "descending" | "none";
|
|
3880
|
-
```
|
|
3881
|
-
|
|
3882
|
-
#### `ChartTreemapTile`
|
|
3883
|
-
|
|
3884
|
-
```typescript
|
|
3885
|
-
type ChartTreemapTile = "binary" | "dice" | "slice" | "slice-dice" | "squarify";
|
|
3886
|
-
```
|
|
3887
|
-
|
|
3888
2305
|
#### `ChartValueAccessor`
|
|
3889
2306
|
|
|
3890
2307
|
```typescript
|
|
@@ -3921,18 +2338,6 @@ type ChartViewportLinkMode = "domain" | "relative";
|
|
|
3921
2338
|
type ChartViewportWindow = ChartCategoryViewportWindow | ChartContinuousViewportWindow;
|
|
3922
2339
|
```
|
|
3923
2340
|
|
|
3924
|
-
#### `ChartWaterfallDatumKind`
|
|
3925
|
-
|
|
3926
|
-
```typescript
|
|
3927
|
-
type ChartWaterfallDatumKind = "change" | "subtotal" | "total";
|
|
3928
|
-
```
|
|
3929
|
-
|
|
3930
|
-
#### `ChartWaterfallVisualKind`
|
|
3931
|
-
|
|
3932
|
-
```typescript
|
|
3933
|
-
type ChartWaterfallVisualKind = "decrease" | "increase" | "neutral" | "subtotal" | "total";
|
|
3934
|
-
```
|
|
3935
|
-
|
|
3936
2341
|
#### `ChartXAxisPosition`
|
|
3937
2342
|
|
|
3938
2343
|
```typescript
|
|
@@ -4056,3 +2461,5 @@ From `@nanahoshi/mona-ui/i18n`.
|
|
|
4056
2461
|
| `visualIndicatorClamped` (read-only) | `string` | Shown and announced when a gauge value lies outside the gauge's scale and its indicator stops at the edge. |
|
|
4057
2462
|
| `zoomedIn` (read-only) | `string` | Announced when the keyboard zooms the viewport in. |
|
|
4058
2463
|
| `zoomedOut` (read-only) | `string` | Announced when the keyboard zooms the viewport out. |
|
|
2464
|
+
|
|
2465
|
+
**Documented elsewhere:** [`ChartFinancialDirection`](chart-financial.md), [`ChartFunnelPointMetadata`](chart-funnel.md), [`ChartHierarchyPointMetadata`](chart-treemap.md), [`ChartLineStyle`](chart-line-area.md), [`ChartOhlcPointValue`](chart-financial.md), [`ChartWaterfallPointValue`](chart-bar.md)
|