@nanahoshi/mona-ui 0.25.1 → 0.26.1
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/README.md +2 -0
- package/chart/README.md +2 -2
- package/command/package.json +4 -0
- package/docs/auto-complete.md +733 -0
- package/docs/avatar.md +220 -0
- package/docs/breadcrumb.md +320 -0
- package/docs/button-group.md +392 -0
- package/docs/button.md +256 -0
- package/docs/calendar.md +515 -0
- package/docs/card.md +292 -0
- 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 +2465 -0
- package/docs/checkbox.md +374 -0
- package/docs/chip.md +339 -0
- package/docs/circular-progress-bar.md +287 -0
- package/docs/collapsible.md +308 -0
- package/docs/color-gradient.md +336 -0
- package/docs/color-palette.md +317 -0
- package/docs/color-picker.md +387 -0
- package/docs/combo-box.md +764 -0
- package/docs/command.md +582 -0
- package/docs/contextmenu.md +530 -0
- package/docs/date-picker.md +251 -0
- package/docs/datetime-picker.md +284 -0
- package/docs/decimal-textbox.md +260 -0
- package/docs/dialog.md +822 -0
- package/docs/dropdown-button.md +507 -0
- package/docs/dropdown-list.md +779 -0
- package/docs/editor.md +374 -0
- package/docs/expansion-panel.md +348 -0
- package/docs/fieldset.md +217 -0
- package/docs/forms.md +162 -0
- package/docs/grid.md +2053 -0
- package/docs/input.md +197 -0
- package/docs/installation.md +54 -0
- package/docs/introduction.md +46 -0
- package/docs/label.md +340 -0
- package/docs/list-box.md +637 -0
- package/docs/list-view.md +584 -0
- package/docs/menubar.md +559 -0
- package/docs/multi-select.md +765 -0
- package/docs/notification.md +460 -0
- package/docs/numeric-textbox.md +301 -0
- package/docs/otp-input.md +539 -0
- package/docs/pager.md +513 -0
- package/docs/placeholder.md +176 -0
- package/docs/popover.md +423 -0
- package/docs/popup-menu.md +658 -0
- package/docs/popup.md +617 -0
- package/docs/progress-bar.md +368 -0
- package/docs/radio-button.md +451 -0
- package/docs/range-slider.md +367 -0
- package/docs/rating.md +518 -0
- package/docs/scroll-view.md +375 -0
- package/docs/segmented.md +434 -0
- package/docs/sheet.md +348 -0
- package/docs/sidebar.md +1126 -0
- package/docs/skeleton.md +181 -0
- package/docs/slider.md +423 -0
- package/docs/spinner.md +370 -0
- package/docs/split-button.md +522 -0
- package/docs/splitter.md +342 -0
- package/docs/stepper.md +539 -0
- package/docs/switch.md +340 -0
- package/docs/tabs.md +542 -0
- package/docs/textarea.md +196 -0
- package/docs/textbox.md +332 -0
- package/docs/theming.md +403 -0
- package/docs/time-picker.md +254 -0
- package/docs/tooltip-directive.md +340 -0
- package/docs/tooltip.md +321 -0
- package/docs/tree-view.md +1018 -0
- package/docs/window.md +663 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +8 -0
- package/fesm2022/nanahoshi-mona-ui-button.mjs +12 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +212 -66
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +16 -2
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-command.mjs +924 -0
- package/fesm2022/nanahoshi-mona-ui-common.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +10 -6
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +55 -1
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +13 -0
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +5 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs → nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs → nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs} +18 -35
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs} +4653 -4529
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +168 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +19 -1
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +32 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +15 -8
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +8 -5
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +9 -0
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +5 -0
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -6
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +48 -183
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +7 -2
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +9 -6
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +18 -21
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +11 -8
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +9 -1
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +16 -5
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +13 -11
- package/fesm2022/nanahoshi-mona-ui-window.mjs +12 -5
- package/i18n/catalogs/en-US.messages.json +10 -0
- package/internal/popup-menu/package.json +4 -0
- package/llms.txt +133 -0
- package/locales/ar-sa/ar-sa.messages.json +10 -0
- package/locales/de-de/de-de.messages.json +10 -0
- package/locales/es-es/es-es.messages.json +10 -0
- package/locales/fr-fr/fr-fr.messages.json +10 -0
- package/locales/id-id/id-id.messages.json +10 -0
- package/locales/it-it/it-it.messages.json +10 -0
- package/locales/ja-jp/ja-jp.messages.json +10 -0
- package/locales/ko-kr/ko-kr.messages.json +10 -0
- package/locales/pt-br/pt-br.messages.json +10 -0
- package/locales/ru-ru/ru-ru.messages.json +10 -0
- package/locales/tr-tr/tr-tr.messages.json +10 -0
- package/locales/zh-cn/zh-cn.messages.json +10 -0
- package/locales/zh-tw/zh-tw.messages.json +10 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -1
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +8 -0
- package/types/nanahoshi-mona-ui-button.d.ts +12 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +3 -0
- package/types/nanahoshi-mona-ui-chart.d.ts +250 -20
- package/types/nanahoshi-mona-ui-check-box.d.ts +4 -0
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-collapsible.d.ts +10 -0
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-command.d.ts +253 -0
- package/types/nanahoshi-mona-ui-common.d.ts +17 -1
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-dialog.d.ts +58 -1
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +7 -3
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +55 -1
- package/types/nanahoshi-mona-ui-editor.d.ts +31 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +13 -0
- package/types/nanahoshi-mona-ui-fieldset.d.ts +5 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +162 -35
- package/types/nanahoshi-mona-ui-i18n.d.ts +144 -1
- package/types/nanahoshi-mona-ui-internal-list.d.ts +16 -1
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +165 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +21 -2
- package/types/nanahoshi-mona-ui-internal.d.ts +4 -5
- package/types/nanahoshi-mona-ui-label.d.ts +1 -0
- package/types/nanahoshi-mona-ui-list-box.d.ts +27 -4
- package/types/nanahoshi-mona-ui-list-view.d.ts +34 -1
- package/types/nanahoshi-mona-ui-list.d.ts +1 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +10 -0
- package/types/nanahoshi-mona-ui-menubar.d.ts +10 -3
- package/types/nanahoshi-mona-ui-multi-select.d.ts +3 -3
- package/types/nanahoshi-mona-ui-notification.d.ts +9 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
- package/types/nanahoshi-mona-ui-pager.d.ts +5 -1
- package/types/nanahoshi-mona-ui-popover.d.ts +9 -1
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +48 -161
- package/types/nanahoshi-mona-ui-popup.d.ts +16 -0
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-rating.d.ts +2 -0
- package/types/nanahoshi-mona-ui-segmented.d.ts +1 -0
- package/types/nanahoshi-mona-ui-sheet.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +2 -0
- package/types/nanahoshi-mona-ui-spinner.d.ts +7 -0
- package/types/nanahoshi-mona-ui-split-button.d.ts +7 -4
- package/types/nanahoshi-mona-ui-stepper.d.ts +11 -2
- package/types/nanahoshi-mona-ui-tabs.d.ts +4 -1
- package/types/nanahoshi-mona-ui-text-box.d.ts +9 -1
- package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-tooltip.d.ts +10 -2
- package/types/nanahoshi-mona-ui-tree-view.d.ts +6 -5
- package/types/nanahoshi-mona-ui-window.d.ts +66 -1
package/docs/chart.md
ADDED
|
@@ -0,0 +1,2465 @@
|
|
|
1
|
+
# Chart Overview
|
|
2
|
+
|
|
3
|
+
> High-performance Canvas charts composed from series, axes and interaction parts.
|
|
4
|
+
|
|
5
|
+
Entry point: `@nanahoshi/mona-ui/chart`
|
|
6
|
+
|
|
7
|
+
**Selector:** `mona-chart`
|
|
8
|
+
|
|
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.
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
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.
|
|
14
|
+
|
|
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.
|
|
31
|
+
|
|
32
|
+
## Import & Quick Start
|
|
33
|
+
|
|
34
|
+
Everything is imported from `@nanahoshi/mona-ui/chart`.
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import {
|
|
38
|
+
ChartComponent,
|
|
39
|
+
ChartLegendComponent,
|
|
40
|
+
ChartTooltipComponent,
|
|
41
|
+
ChartXAxisComponent,
|
|
42
|
+
ChartYAxisComponent,
|
|
43
|
+
LineSeriesComponent
|
|
44
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```html
|
|
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
|
+
<mona-chart-tooltip [shared]="true" />
|
|
55
|
+
</mona-chart>
|
|
56
|
+
```
|
|
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
|
+
|
|
60
|
+
## Anatomy
|
|
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
|
+
|
|
76
|
+
### Template Directives
|
|
77
|
+
|
|
78
|
+
- `ng-template[monaChartTitleTemplate]`: Customizes the title with `{ $implicit, title }`.
|
|
79
|
+
- `ng-template[monaChartSubtitleTemplate]`: Customizes the subtitle with `{ $implicit, subtitle }`.
|
|
80
|
+
- `ng-template[monaChartTooltipTemplate]`: Customizes hover and keyboard tooltip contents with `{ $implicit, point, points, series, shared }`.
|
|
81
|
+
- `ng-template[monaChartAxisLabelTemplate]`: Customizes tick label markup with `{ $implicit, axis, axisId, index, position, scaleType, value }`.
|
|
82
|
+
- `ng-template[monaChartLegendItemTemplate]`: Customizes legend items with `{ $implicit, color, dataIndex, datum, interactive, itemId, kind, name, percentage, secondaryColor, series, seriesId, seriesType, value, visible }`.
|
|
83
|
+
- `ng-template[monaChartNoDataTemplate]`: Customizes the empty state when no renderable data is present.
|
|
84
|
+
- `ng-template[monaChartCrosshairLabelTemplate]` (or `[monaChartCrosshairLabel]`): Customizes DOM crosshair coordinate badges with `{ $implicit, axis, axisId, coordinate, formattedValue, snapped, source, value }`.
|
|
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 }`.
|
|
86
|
+
- `ng-template[monaChartAnnotationLabelTemplate]` (or `[monaChartAnnotationLabel]`): Customizes DOM point annotation callout badges with `{ $implicit, data, formattedX, formattedY, point, x, xAxisId, y, yAxisId }`.
|
|
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.
|
|
96
|
+
|
|
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.
|
|
98
|
+
|
|
99
|
+
## Examples
|
|
100
|
+
|
|
101
|
+
### Custom tooltip
|
|
102
|
+
|
|
103
|
+
A shared tooltip shows every visible series at the active category. `ng-template[monaChartTooltipTemplate]` replaces its content.
|
|
104
|
+
|
|
105
|
+
`tooltip-example.component.ts`
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
import { Component } from "@angular/core";
|
|
109
|
+
import {
|
|
110
|
+
AreaSeriesComponent,
|
|
111
|
+
ChartComponent,
|
|
112
|
+
ChartTooltipComponent,
|
|
113
|
+
ChartTooltipTemplateDirective,
|
|
114
|
+
ChartXAxisComponent,
|
|
115
|
+
ChartYAxisComponent
|
|
116
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
117
|
+
|
|
118
|
+
@Component({
|
|
119
|
+
selector: "app-chart-tooltip-example",
|
|
120
|
+
imports: [
|
|
121
|
+
AreaSeriesComponent,
|
|
122
|
+
ChartComponent,
|
|
123
|
+
ChartTooltipComponent,
|
|
124
|
+
ChartTooltipTemplateDirective,
|
|
125
|
+
ChartXAxisComponent,
|
|
126
|
+
ChartYAxisComponent
|
|
127
|
+
],
|
|
128
|
+
templateUrl: "./tooltip-example.component.html"
|
|
129
|
+
})
|
|
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 }
|
|
139
|
+
];
|
|
140
|
+
|
|
141
|
+
protected gigabytes = (value: unknown): string => `${String(value)} GB`;
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
`tooltip-example.component.html`
|
|
146
|
+
|
|
147
|
+
```html
|
|
148
|
+
<mona-chart aria-label="Daily data transfer" class="h-72 w-full" xField="day" [data]="usage">
|
|
149
|
+
<mona-chart-x-axis />
|
|
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>
|
|
171
|
+
</mona-chart>
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Reference lines, bands and annotations
|
|
175
|
+
|
|
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.
|
|
177
|
+
|
|
178
|
+
`overlays-example.component.ts`
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import { Component } from "@angular/core";
|
|
182
|
+
import {
|
|
183
|
+
ChartAnnotationComponent,
|
|
184
|
+
ChartComponent,
|
|
185
|
+
ChartCrosshairComponent,
|
|
186
|
+
ChartReferenceBandComponent,
|
|
187
|
+
ChartReferenceLineComponent,
|
|
188
|
+
ChartXAxisComponent,
|
|
189
|
+
ChartYAxisComponent,
|
|
190
|
+
LineSeriesComponent
|
|
191
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
192
|
+
|
|
193
|
+
@Component({
|
|
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"
|
|
206
|
+
})
|
|
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 }
|
|
215
|
+
];
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
`overlays-example.component.html`
|
|
220
|
+
|
|
221
|
+
```html
|
|
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" />
|
|
230
|
+
</mona-chart>
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Selection and brushing
|
|
234
|
+
|
|
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.
|
|
236
|
+
|
|
237
|
+
`selection-example.component.ts`
|
|
238
|
+
|
|
239
|
+
```typescript
|
|
240
|
+
import { Component, signal } from "@angular/core";
|
|
241
|
+
import {
|
|
242
|
+
BarSeriesComponent,
|
|
243
|
+
ChartBrushComponent,
|
|
244
|
+
ChartComponent,
|
|
245
|
+
ChartSelectionComponent,
|
|
246
|
+
ChartXAxisComponent,
|
|
247
|
+
ChartYAxisComponent
|
|
248
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
249
|
+
|
|
250
|
+
@Component({
|
|
251
|
+
selector: "app-chart-selection-example",
|
|
252
|
+
imports: [
|
|
253
|
+
BarSeriesComponent,
|
|
254
|
+
ChartBrushComponent,
|
|
255
|
+
ChartComponent,
|
|
256
|
+
ChartSelectionComponent,
|
|
257
|
+
ChartXAxisComponent,
|
|
258
|
+
ChartYAxisComponent
|
|
259
|
+
],
|
|
260
|
+
templateUrl: "./selection-example.component.html"
|
|
261
|
+
})
|
|
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 }
|
|
270
|
+
];
|
|
271
|
+
}
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
`selection-example.component.html`
|
|
275
|
+
|
|
276
|
+
```html
|
|
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>
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
## Behavior
|
|
290
|
+
|
|
291
|
+
### Cross-chart synchronization
|
|
292
|
+
|
|
293
|
+
Independent `mona-chart` instances can join a named synchronization group to coordinate viewports and crosshair position. Charts synchronize **semantic state** (axis windows, axis values) — never pixels, DOM events, or renderer transforms.
|
|
294
|
+
|
|
295
|
+
#### Basic group
|
|
296
|
+
|
|
297
|
+
```html
|
|
298
|
+
<mona-chart synchronization="dashboard" [navigation]="true">…</mona-chart>
|
|
299
|
+
<mona-chart synchronization="dashboard" [navigation]="true">…</mona-chart>
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
The string shorthand enables both viewport and crosshair channels with default options.
|
|
303
|
+
|
|
304
|
+
#### Full configuration
|
|
305
|
+
|
|
306
|
+
```ts
|
|
307
|
+
type ChartSynchronizationInput =
|
|
308
|
+
| false
|
|
309
|
+
| string
|
|
310
|
+
| {
|
|
311
|
+
group: string;
|
|
312
|
+
viewport?:
|
|
313
|
+
| boolean
|
|
314
|
+
| {
|
|
315
|
+
enabled?: boolean; // default true
|
|
316
|
+
mode?: "domain" | "relative"; // default "domain"
|
|
317
|
+
axes?: ChartNavigationAxisTarget; // default "auto"
|
|
318
|
+
phase?: "continuous" | "end"; // default "continuous"
|
|
319
|
+
};
|
|
320
|
+
crosshair?:
|
|
321
|
+
| boolean
|
|
322
|
+
| {
|
|
323
|
+
enabled?: boolean; // default true
|
|
324
|
+
mode?: "domain" | "relative";
|
|
325
|
+
axes?: "auto" | "x" | "xy" | "y";
|
|
326
|
+
match?: "axis-value" | "nearest-point"; // default "axis-value"
|
|
327
|
+
showTooltip?: boolean; // default false (opt-in)
|
|
328
|
+
clearOnLeave?: boolean; // default true
|
|
329
|
+
};
|
|
330
|
+
axisMappings?: { source: ChartViewportAxisRef; target: ChartViewportAxisRef }[];
|
|
331
|
+
};
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
- **`viewport.phase: "end"`** keeps the source fully interactive locally and synchronizes only the final committed state of an operation — useful for expensive dashboards.
|
|
335
|
+
- **Domain mode** preserves the source's semantic window when the target axis type is compatible (`numeric → numeric`, `time/utc → time/utc`, identical category keys). Incompatible axes are ignored with one development warning.
|
|
336
|
+
- **Relative mode** maps normalized base-scale positions through each chart's own authority, supporting different ranges, nonlinear scales (log/symlog/pow/sqrt), and overview/detail dashboards. The base extent maps to `[0,1]`; valid radius halos and panned windows may extend beyond that interval and are not clipped by the density index.
|
|
337
|
+
- **Axis identity** is always `{ axis: "x" | "y", axisId }`; explicit `axisMappings` remap differently-named axes.
|
|
338
|
+
|
|
339
|
+
#### Controlled charts
|
|
340
|
+
|
|
341
|
+
Controlled charts publish to peers **only after** their parent accepts a viewport proposal via `[viewport]`. A rejected proposal never moves peers. A controlled recipient treats inbound synchronization as a proposal (`viewportChangeDetails` with `source="sync"`); hidden state is never mutated. The accepted controlled echo is consumed by the committed-viewport path and is not rebroadcast, so groups cannot ping-pong.
|
|
342
|
+
|
|
343
|
+
#### Crosshair synchronization
|
|
344
|
+
|
|
345
|
+
Crosshair messages carry semantic axis values (numbers, instants, category keys). Recipients map values into their own coordinate space:
|
|
346
|
+
|
|
347
|
+
- Values outside the recipient's visible viewport hide the crosshair rather than clamping.
|
|
348
|
+
- `match: "nearest-point"` snaps to the nearest local datum — including raw unsampled datums on dense series. Distance is calculated authoritatively against exact geometry: point coordinates for line/scatter, vertical segments for range area and stacked area, and rectangle bounds for bars.
|
|
349
|
+
- Local pointer/keyboard interaction always outranks remote presentation; on local leave the latest remote state is restored.
|
|
350
|
+
- Remote crosshairs never move focus, emit `pointFocusChange`, or announce to live regions.
|
|
351
|
+
- `showTooltip: true` resolves tooltips from the **recipient's own data and formatters** — source tooltip content is never forwarded. When shared tooltip is enabled, recipient tooltips aggregate only matching marks sharing the single semantic interaction bucket of the globally nearest primary hit, including matching raw marks queried from active dense interaction providers.
|
|
352
|
+
|
|
353
|
+
#### What synchronization does not cover
|
|
354
|
+
|
|
355
|
+
Selection, brush rectangles, legend visibility, ticks/layout chrome, and renderer choice are intentionally not synchronized. `navigation.linkGroups` links axes _inside_ one chart; `synchronization` links _independent chart instances_.
|
|
356
|
+
|
|
357
|
+
### High-density downsampling
|
|
358
|
+
|
|
359
|
+
Dense Cartesian series reduce **rendered geometry** while preserving full-data semantics. Base domains, stack totals, bubble size domains, datum identity, and mark IDs always derive from complete source data.
|
|
360
|
+
|
|
361
|
+
```html
|
|
362
|
+
<mona-chart [downsampling]="true">…</mona-chart>
|
|
363
|
+
<mona-chart [downsampling]="false">…</mona-chart>
|
|
364
|
+
<mona-line-series field="y" [downsampling]="{ algorithm: 'lttb' }" />
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
```ts
|
|
368
|
+
interface ChartDownsamplingOptions {
|
|
369
|
+
algorithm?: "auto" | "minmax" | "lttb" | "pixel";
|
|
370
|
+
enabled?: boolean; // default true
|
|
371
|
+
maxPoints?: number; // explicit hard cap, triggers reduction even below threshold
|
|
372
|
+
samplesPerPixel?: number; // default 1
|
|
373
|
+
threshold?: number; // default max(2000, plotSpanPx × 4)
|
|
374
|
+
}
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
#### Eligible families
|
|
378
|
+
|
|
379
|
+
| Series | Strategy |
|
|
380
|
+
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
381
|
+
| line / unstacked area | indexed min/max envelope (auto), segment-aware LTTB (explicit); `step` and `step-after` use protected adjacency groups |
|
|
382
|
+
| rangeArea | range envelope (first/last/lowest/highest per bucket, preserving same-segment clipping neighbors and null island endpoints when `connectNulls=true`) |
|
|
383
|
+
| stacked area | coordinated shared-X selection across the whole group, strictly bounded by `maxPoints` and preserving sparse member data; any step member enables protected shared selection |
|
|
384
|
+
| scatter / bubble | normalized spatial hierarchy with adaptive quadtree subdivision and bounded representatives |
|
|
385
|
+
|
|
386
|
+
Category-X connected paths use discrete membership and viewport culling, so automatic point reduction is intentionally ineligible. A future aggregation or virtualization treatment for category data would be a separate product feature rather than an implicit density fallback.
|
|
387
|
+
|
|
388
|
+
Bar and range-bar series keep discrete rectangle and interval geometry and do not use automatic point dropping. Candlestick and OHLC series keep financial marks; semantic aggregation would need to preserve open-first, high-maximum, low-minimum, and close-last values, so it is not implicit in density reduction. Heatmap series use matrix-cell semantics outside this point-density subsystem. Funnel, pie/donut, polar/radar, and treemap series retain their family-specific layout policies. Step and step-after curves on eligible continuous-X line, area, range-area, and stacked-area series use protected adjacency selection.
|
|
389
|
+
|
|
390
|
+
#### Semantics preserved
|
|
391
|
+
|
|
392
|
+
- Every rendered point is a **real source point** with its original datum, index, and full-source mark ID — duplicate explicit keys and natural keys receive stable full-source occurrence ranks, ensuring sample/bucket IDs never leak into events.
|
|
393
|
+
- X search is enabled only when the complete raw X sequence is finite and monotonic, including transitions across Y gaps. Unsorted, cross-gap-reordered, or non-finite X falls back safely to the ordinary full layout with one development warning; source path order is never silently changed.
|
|
394
|
+
- Null/gap topology is preserved (`connectNulls` respected); long invalid runs become minimal gap markers instead of thousands of invalid points, with defined bracketing points retained across long null islands.
|
|
395
|
+
- When `connectNulls = false`, LTTB allocates its budget across visible defined segments, reserves coverage for small segments, and retains same-segment clipping anchors without bridging across null gaps.
|
|
396
|
+
- Sparse family-valid-empty marker sources retain their compact spatial authority even when no positive bubble size survives validation; this keeps their downstream hit and interaction policy stable.
|
|
397
|
+
- `threshold` is wired through Stage C for every eligible line, area, rangeArea, stacked-area, scatter, and bubble family; it controls reduction activation without changing source-data authority.
|
|
398
|
+
- For eligible line/area/range series, `maxPoints` caps selected defined source data marks. Minimal invalid gap sentinels may additionally appear in the internal scene solely to preserve disconnected-path topology. For scatter/bubble it caps selected marker candidates; for stacked area it caps shared timeline X keys for the group.
|
|
399
|
+
- Step and step-after series reserve mandatory visible and crossing anchors before adjacency detail. The hard cap still wins, so any transition detail that cannot fit degrades deterministically within the configured budget.
|
|
400
|
+
- Bucket-first extrema queries preserve rare scalar spikes/troughs and range low/high envelope extremes across fragmented null-separated data; bubble radius scales still derive from all valid bubbles, including unsampled outliers.
|
|
401
|
+
|
|
402
|
+
#### Interaction under downsampling
|
|
403
|
+
|
|
404
|
+
Pointer hover, crosshair nearest-point, click, and brush resolve **exact raw datums** through compact typed-array indexes — including points absent from the visual sample. Globally exact geometric indexes guarantee precision across point, segment, and box bounds without fixed bucket neighborhood approximations. Numeric semantic buckets use binary timeline lookup with shared relative equality; unsearchable raw X falls back to the ordinary interaction path. Brush discovery may use a compact normalized candidate window, but every returned match is accepted against the current pixel geometry, so brush results remain exact and never truncated (a brush covering 500k points returns 500k matches). Keyboard navigation traverses bounded rendered samples for accessibility; data labels project from reduced geometry.
|
|
405
|
+
|
|
406
|
+
Marker direct hits use the current visual marker geometry and source/painter order. Identical-coordinate bubble leaves answer the topmost qualifying visual (then forgiving) radius threshold without scanning the full raw cluster; dense nearest ties use the same painter-order authority. Nearest-point synchronization remains semantic and local to the recipient.
|
|
407
|
+
|
|
408
|
+
#### Performance contract
|
|
409
|
+
|
|
410
|
+
For eligible finite-X monotonic sources that retain a density runtime, viewport projection uses indexed source-range/extrema queries and pixel-derived bounded candidate work rather than rescanning the complete source. There are no Stage A/B re-runs or per-frame density rebuilds, and scene/hit volume scales with the pixel budget instead of source size. Unsorted or non-finite X deliberately falls back to ordinary source-order layout. Marker activation and exact collection use the radius-aware render-candidate count; pointer leaves remain bounded even for tight clusters beside distant outliers, and if exact collection exceeds the target budget it transitions directly to the truthful sampled path. Viewport projections animate immediately (no morph lag). Export snapshots the exact committed sampled scene at its live resolution; changing output dimensions or pixel ratio changes rasterization only and never selects a different semantic sample.
|
|
411
|
+
|
|
412
|
+
### Shared Options
|
|
413
|
+
|
|
414
|
+
#### Data labels
|
|
415
|
+
|
|
416
|
+
`dataLabels` on Cartesian series takes `true`, `false` or `ChartDataLabelOptions`.
|
|
417
|
+
|
|
418
|
+
| Option | Type | Default | Meaning |
|
|
419
|
+
| :--- | :--- | :--- | :--- |
|
|
420
|
+
| `allowOverlap` | `boolean` | `false` | Whether labels may overlap each other. |
|
|
421
|
+
| `collisionPadding` | `number` | `2` | Padding around a label when checking collisions. |
|
|
422
|
+
| `color` | `string` | `undefined` | Text color. |
|
|
423
|
+
| `formatter` | `ChartDataLabelFormatter` | `undefined` | Returns the label text; `null`, `undefined` or `""` hides that label. |
|
|
424
|
+
| `maxLabels` | `number` | `200` | Most labels the series shows. |
|
|
425
|
+
| `offset` | `number` | `6` | Distance in pixels from the mark. |
|
|
426
|
+
| `overflow` | `"clip" \| "hide"` | `"hide"` | What happens to a label at the plot edge. |
|
|
427
|
+
| `position` | `ChartDataLabelPosition` | `"auto"` | Placement. `"auto"` picks a free candidate and follows the direction. |
|
|
428
|
+
|
|
429
|
+
#### Viewport and navigation
|
|
430
|
+
|
|
431
|
+
`navigation` takes `true`, `false` or `ChartNavigationOptions`. All are on when `navigation` is `true`.
|
|
432
|
+
|
|
433
|
+
| Option | Type | Default | Meaning |
|
|
434
|
+
| :--- | :--- | :--- | :--- |
|
|
435
|
+
| `clampToData` | `boolean` | `true` | Keeps the viewport inside the data. |
|
|
436
|
+
| `constraints` | `readonly ChartViewportConstraint[]` | `[]` | Per-axis limits on span, zoom and visible categories. |
|
|
437
|
+
| `dragPan` | `boolean` | `true` | Drag to pan. |
|
|
438
|
+
| `keyboard` | `boolean` | `true` | `Shift` + arrows pan, `+` and `-` zoom, `0` resets. |
|
|
439
|
+
| `keyboardPanRatio` | `number` | `0.1` | Share of the plot one key press pans. |
|
|
440
|
+
| `keyboardZoomFactor` | `number` | `1.2` | Zoom factor of one key press. |
|
|
441
|
+
| `linkGroups` | `readonly ChartViewportLinkGroup[]` | `[]` | Axes in this chart that move together. |
|
|
442
|
+
| `minVisibleCategories` | `number` | `1` | Fewest categories a zoom can leave visible. |
|
|
443
|
+
| `pan` | `boolean` | `true` | Allows panning at all. |
|
|
444
|
+
| `panAxes` | `ChartNavigationAxisTarget` | `"auto"` | Axes that pan. |
|
|
445
|
+
| `pinchZoom` | `boolean` | `true` | Pinch to zoom. |
|
|
446
|
+
| `wheelSensitivity` | `number` | `0.002` | Zoom per wheel unit. |
|
|
447
|
+
| `wheelZoom` | `boolean` | `true` | Wheel to zoom. |
|
|
448
|
+
| `zoom` | `boolean` | `true` | Allows zooming at all. |
|
|
449
|
+
| `zoomAxes` | `ChartNavigationAxisTarget` | `"auto"` | Axes that zoom. |
|
|
450
|
+
|
|
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
|
+
```
|
|
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"`).
|
|
468
|
+
|
|
469
|
+
#### Synchronization options
|
|
470
|
+
|
|
471
|
+
`synchronization` takes a group name or `ChartSynchronizationOptions`: `group`, `viewport` (`boolean` or `{ axes, enabled, mode, phase }`), `crosshair` (`boolean` or `{ axes, clearOnLeave, enabled, match, mode, showTooltip }`) and `axisMappings`. See "Cross-chart synchronization" above for what is shared.
|
|
472
|
+
|
|
473
|
+
#### Animation
|
|
474
|
+
|
|
475
|
+
`animation` takes `true`, `false` or `ChartAnimationOptions`. Animation is skipped when the user prefers reduced motion.
|
|
476
|
+
|
|
477
|
+
| Option | Type | Default | Meaning |
|
|
478
|
+
| :--- | :--- | :--- | :--- |
|
|
479
|
+
| `data` | `boolean` | `true` | Animate data changes. |
|
|
480
|
+
| `duration` | `number` | `300` | Duration in milliseconds. |
|
|
481
|
+
| `easing` | `ChartAnimationEasing` | `"ease-out"` | `"linear"`, `"ease-in"`, `"ease-out"` or `"ease-in-out"`. |
|
|
482
|
+
| `enabled` | `boolean` | `true` | Animate at all. |
|
|
483
|
+
| `initial` | `boolean` | `true` | Animate the first render. |
|
|
484
|
+
| `visibility` | `boolean` | `true` | Animate visibility toggles. |
|
|
485
|
+
|
|
486
|
+
#### Downsampling options
|
|
487
|
+
|
|
488
|
+
`downsampling` accepts `boolean | ChartDownsamplingOptions` at the chart and eligible Cartesian-series levels. The chart policy is inherited unless a series supplies its own value. The requested `algorithm` is a preference; the family-safe strategy resolves the actual reducer, so step curves, range areas, stacked areas, and marker families keep their required geometry. Category-X data and intentionally excluded families do not become eligible through this input.
|
|
489
|
+
|
|
490
|
+
| Option | Type | Meaning |
|
|
491
|
+
| :--- | :--- | :--- |
|
|
492
|
+
| `enabled` | `boolean` | Enables or disables reduction at the current chart or series scope. A chart-level disable wins over series settings. |
|
|
493
|
+
| `algorithm` | `"auto" \| "minmax" \| "lttb" \| "pixel"` | Requested reduction preference, constrained by family semantics. |
|
|
494
|
+
| `maxPoints` | `number` | Render-sample budget with family-specific meaning; it does not limit raw pointer, brush, selection, tooltip, or source-data interaction. |
|
|
495
|
+
| `samplesPerPixel` | `number` | Pixel-density multiplier used when deriving the render-sample budget. |
|
|
496
|
+
| `threshold` | `number` | Activation threshold for an eligible family; it does not make an otherwise ineligible axis or series family eligible. |
|
|
497
|
+
|
|
498
|
+
Resolution precedence is chart disable, series disable, series preference, then the family-safe strategy. A source below the threshold uses ordinary full rendering, while an explicit `maxPoints` may activate reduction below the threshold for an eligible continuous-X family.
|
|
499
|
+
|
|
500
|
+
### Two-Way Binding
|
|
501
|
+
|
|
502
|
+
| Binding | On | Holds |
|
|
503
|
+
| :--- | :--- | :--- |
|
|
504
|
+
| `[(viewport)]` | `<mona-chart>` | The viewport state. |
|
|
505
|
+
| `[(selectedMarkIds)]` | `<mona-chart-selection>` | The selected mark IDs. |
|
|
506
|
+
| `[(visible)]` | Every series | Whether the series is visible. |
|
|
507
|
+
| `[(hiddenIndices)]` | `<mona-pie-series>`, `<mona-donut-series>` | The hidden data indices. They refer to positions, so they follow the position, not the item, when rows are reordered. |
|
|
508
|
+
| `[(hiddenItemIds)]` | `<mona-radial-bar-series>`, `<mona-rose-series>` | The hidden item IDs. |
|
|
509
|
+
| `[(hiddenNodeIds)]` | `<mona-treemap-series>` | The hidden top-level node IDs. |
|
|
510
|
+
| `[(hiddenStageIds)]` | `<mona-funnel-series>` | The hidden stage IDs. |
|
|
511
|
+
|
|
512
|
+
Hidden items the data no longer has are dropped from the binding when the data changes. A chart with no data keeps them, so a value set before the data loads still applies.
|
|
513
|
+
|
|
514
|
+
### Locale
|
|
515
|
+
|
|
516
|
+
Axis ticks, data labels, tooltips and announcements format numbers, percentages and dates for the library locale (`MonaI18nService.localeId()`), and a locale change reformats the chart in place. A series `valueFormatter` or axis `formatter` takes precedence. Built-in text comes from the `chart` messages.
|
|
517
|
+
|
|
518
|
+
### Right-to-left
|
|
519
|
+
|
|
520
|
+
The chart follows the direction of its host (`dir`, inherited, or CDK `Directionality`) and lays out again when it changes.
|
|
521
|
+
|
|
522
|
+
| Part | In RTL |
|
|
523
|
+
| :--- | :--- |
|
|
524
|
+
| Y axis | The default `position="start"` is on the right. `"end"` is on the left. `"left"` and `"right"` stay on that side. |
|
|
525
|
+
| Legend | Items run right to left. `position="start"` is on the right, `"end"` on the left; `"left"` and `"right"` stay on that side. |
|
|
526
|
+
| Title | The default `titleAlign="start"` is on the right. |
|
|
527
|
+
| Automatic data labels | A label beside a point prefers the left. Explicit positions stay as set. |
|
|
528
|
+
| X axis | Stays left to right, so categories and time read the same in both directions. |
|
|
529
|
+
|
|
530
|
+
## Accessibility
|
|
531
|
+
|
|
532
|
+
The host is `role="application"` with `aria-roledescription="chart"`, so screen readers switch to focus mode and pass the arrow keys to the chart. Its description summarizes the series, the category range of a Cartesian chart and each series' lowest and highest value, then lists the keys. Announcements give the point's position ("2 of 12"), read the point again when a key doesn't move it, and report legend toggles. With `dataTable`, the table sits in a `role="document"` region that screen readers can browse.
|
|
533
|
+
|
|
534
|
+
Set `landmark` to make the host a `role="region"` landmark instead. Screen readers then stay in browse mode and read the arrow keys themselves, and the data table loses its `role="document"` wrapper.
|
|
535
|
+
|
|
536
|
+
| Attribute | Where | Value |
|
|
537
|
+
| :--- | :--- | :--- |
|
|
538
|
+
| `role` | Host | `"application"`, or `"region"` with `landmark` |
|
|
539
|
+
| `aria-roledescription` | Host | The `chartRoleDescription` message, absent with `landmark` |
|
|
540
|
+
| `aria-label` | Host | The `aria-label` input, else `title`, else the `chart` message |
|
|
541
|
+
| `aria-describedby` | Host | A hidden description: the `aria-description` input, or else the subtitle and a summary of the data, followed by the keys |
|
|
542
|
+
| `tabindex` | Host | `0` |
|
|
543
|
+
| `aria-live` | A hidden announcer inside the chart | `"polite"`, with `aria-atomic="true"` |
|
|
544
|
+
|
|
545
|
+
Axis labels, axis titles and the label overlays (slices, treemap, funnel, waterfall, reference lines, annotations, data labels and crosshair badges) are `aria-hidden`. Content from `monaChartCenterTemplate` and `monaChartGaugeCenterTemplate` is not hidden, so screen readers can reach it.
|
|
546
|
+
|
|
547
|
+
**Consumer responsibilities**
|
|
548
|
+
|
|
549
|
+
- Give each chart a name with `title` or `aria-label`. Without one, every chart is announced with the same generic name.
|
|
550
|
+
- Give each `landmark` chart a unique name.
|
|
551
|
+
|
|
552
|
+
### Keyboard Navigation
|
|
553
|
+
|
|
554
|
+
| Key | Action |
|
|
555
|
+
| :--- | :--- |
|
|
556
|
+
| `ArrowRight` / `ArrowLeft` | Navigate sequentially between angular spokes, buckets, or slices. |
|
|
557
|
+
| `ArrowUp` / `ArrowDown` | Switch between series at the currently focused spoke/coordinate. |
|
|
558
|
+
| `Home` / `End` | Jump to the first or last available spoke, bucket, or slice. |
|
|
559
|
+
| `Enter` | Emit `pointClick` for the focused point (and toggle its selection with `mona-chart-selection`). |
|
|
560
|
+
| `Space` | Toggle the focused point's selection with `mona-chart-selection`; otherwise emit `pointClick`. |
|
|
561
|
+
| `Escape` | Dismiss the crosshair, marker highlight and tooltip. With nothing to dismiss the key reaches the page. Escape anywhere hides a tooltip the pointer opened. |
|
|
562
|
+
| `Shift` + arrows | With `navigation`: pan along the arrow's direction (`+`/`-` zoom, `0` resets). With `mona-chart-brush` and a focused point: extend a brush from it; `Enter` commits, `Escape` cancels. |
|
|
563
|
+
|
|
564
|
+
Keys pressed inside the legend or other projected content are left to that content.
|
|
565
|
+
|
|
566
|
+
## API
|
|
567
|
+
|
|
568
|
+
Everything below is imported from `@nanahoshi/mona-ui/chart`.
|
|
569
|
+
|
|
570
|
+
### `ChartComponent`
|
|
571
|
+
|
|
572
|
+
Root visualization container coordinating coordinate layouts, canvas rendering, theme styles, and interactions.
|
|
573
|
+
|
|
574
|
+
**Selector:** `mona-chart`
|
|
575
|
+
|
|
576
|
+
#### Inputs
|
|
577
|
+
|
|
578
|
+
| Name | Type | Default | Description |
|
|
579
|
+
| --- | --- | --- | --- |
|
|
580
|
+
| `animation` | `ChartAnimationInput` | `true` | Animation settings for initial render and subsequent data or visibility transitions. |
|
|
581
|
+
| `aria-description` | `string` | `""` | Detailed accessible description explaining the chart's purpose and trends. |
|
|
582
|
+
| `aria-label` | `string` | `""` | Accessible name for the chart container. |
|
|
583
|
+
| `class` | `string` | `""` | Additional CSS classes applied to chart root container. |
|
|
584
|
+
| `data` | `readonly unknown[]` | `[]` | Primary dataset shared across all child series. |
|
|
585
|
+
| `dataTable` | `boolean` | `false` | Renders a visually hidden table of the chart's data (its first 100 rows) for screen readers. |
|
|
586
|
+
| `defaultViewport` | `ChartViewportState \| undefined` | `undefined` | Initial default viewport window state for chart axes. |
|
|
587
|
+
| `downsampling` | `ChartDownsamplingInput` | `true` | High-density downsampling policy for eligible dense series. |
|
|
588
|
+
| `landmark` | `boolean` | `false` | Makes the chart a `region` landmark instead of an `application`. A landmark keeps screen readers in browse mode, so they read the arrow keys themselves; give each landmark chart a unique name. |
|
|
589
|
+
| `navigation` | `ChartNavigationInput` | `false` | Navigation, panning, and zooming options for the chart. |
|
|
590
|
+
| `renderer` | `ChartRendererMode` | `"canvas"` | The rendering engine used to draw the chart surface ("canvas" \| "svg"). |
|
|
591
|
+
| `subtitle` | `string` | `""` | Subtitle text rendered beneath the title. |
|
|
592
|
+
| `synchronization` | `ChartSynchronizationInput` | `false` | Cross-chart synchronization configuration. Accepts `false`, a group name shorthand, or full options. |
|
|
593
|
+
| `title` | `string` | `""` | Title text rendered above the plot area. |
|
|
594
|
+
| `titleAlign` | `ChartHeaderAlignment` | `"start"` | Horizontal alignment of the title and subtitle ('center', 'left', or 'right'). |
|
|
595
|
+
| `viewport` | `ChartViewportState \| undefined` | `undefined` | Active viewport window state for chart axes. Bind `[(viewport)]` for two-way binding. While it is defined the parent owns the viewport: a change applies once the parent writes it back. |
|
|
596
|
+
| `xField` | `ChartField` | `""` | Property key or accessor extracting the X-axis coordinate for each data item. |
|
|
597
|
+
|
|
598
|
+
#### Outputs
|
|
599
|
+
|
|
600
|
+
| Name | Type | Description |
|
|
601
|
+
| --- | --- | --- |
|
|
602
|
+
| `pointClick` | `ChartPointEvent<unknown>` | Emits when a data point, vertex, or bar in the chart is clicked. |
|
|
603
|
+
| `pointFocusChange` | `ChartPointFocusEvent<unknown>` | Emits when the keyboard focus moves to a new data point, spoke, or series. |
|
|
604
|
+
| `seriesVisibilityChange` | `ChartSeriesVisibilityEvent` | Emits when a series visibility state is toggled via legend interaction. |
|
|
605
|
+
| `viewportChange` | `ChartViewportState` | Emits the new viewport state when it changes via pan, zoom, fit, reset, or keyboard navigation. |
|
|
606
|
+
| `viewportChangeDetails` | `ChartViewportChangeEvent` | Emits with each viewport change, along with the previous state, source, gesture phase and changed axes. |
|
|
607
|
+
|
|
608
|
+
#### Methods
|
|
609
|
+
|
|
610
|
+
| Signature | Description |
|
|
611
|
+
| --- | --- |
|
|
612
|
+
| `downloadChart(options: ChartDownloadOptions): Promise<ChartExportResult>` | Exports and triggers a browser file download of the chart in PNG, SVG, or PDF format. |
|
|
613
|
+
| `exportChart(options: ChartExportOptions): Promise<ChartExportResult>` | Exports the chart as a binary Blob in PNG, SVG, or PDF format. |
|
|
614
|
+
| `fit(window: ChartViewportWindow \| readonly ChartViewportWindow[]): void` | **Deprecated.** Use 'setViewportWindow' instead. Fits the viewport window to a specified continuous range or category indices. |
|
|
615
|
+
| `fitViewport(target?: ChartNavigationAxisTarget): void` | Fits target axes (or all axes) to full canonical base domain. |
|
|
616
|
+
| `getViewport(): ChartViewportState \| null` | Returns the current active viewport window state, or null if chart is not Cartesian XY. |
|
|
617
|
+
| `invalidate(): void` | Schedules a new layout and paint, for changes the chart can't see, such as a mutated data array. |
|
|
618
|
+
| `pan(delta: { x: number; y: number }, target?: ChartNavigationAxisTarget): void` | Pans the viewport by pixel delta vector { x, y }. |
|
|
619
|
+
| `resetViewport(target?: ChartNavigationAxisTarget): void` | Resets the viewport window back to the default viewport (or base domain) for target axes. |
|
|
620
|
+
| `setViewport(viewport: ChartViewportState): void` | Sets the active viewport window state (full replacement). |
|
|
621
|
+
| `setViewportWindow(window: ChartViewportWindow \| readonly ChartViewportWindow[]): void` | Sets the viewport window for specific axis/axes (partial mutation). |
|
|
622
|
+
| `toggleSeriesVisibility(seriesId: string): void` | Toggles the visibility of a series. |
|
|
623
|
+
| `zoom(factor: number, anchor?: ChartPoint, target?: ChartNavigationAxisTarget): void` | Zooms the viewport by a scale factor around an optional pixel anchor point. |
|
|
624
|
+
|
|
625
|
+
### `ChartXAxisComponent`
|
|
626
|
+
|
|
627
|
+
Configures an X axis in Cartesian charts. Add more than one with distinct `axisId` values for multiple axes.
|
|
628
|
+
|
|
629
|
+
**Selector:** `mona-chart-x-axis`
|
|
630
|
+
|
|
631
|
+
#### Inputs
|
|
632
|
+
|
|
633
|
+
| Name | Type | Default | Description |
|
|
634
|
+
| --- | --- | --- | --- |
|
|
635
|
+
| `axisId` | `string \| undefined` | `undefined` | Optional semantic identifier for the X axis, referenced by series `xAxisId`. |
|
|
636
|
+
| `axisLine` | `boolean` | `true` | Whether the solid baseline axis border line is rendered. |
|
|
637
|
+
| `exponent` | `number` | `1` | Exponent for power scale (`type="pow"`). Must be a positive finite number. |
|
|
638
|
+
| `field` | `ChartField \| undefined` | `undefined` | Optional data field name for the X axis categories or values. |
|
|
639
|
+
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for axis tick labels. |
|
|
640
|
+
| `gridLines` | `boolean \| undefined` | `undefined` | Whether vertical grid lines aligned with X-axis ticks are visible. Defaults to false in standard Cartesian and true for horizontal value axes. |
|
|
641
|
+
| `labelMaxWidth` | `number \| undefined` | `undefined` | Maximum unrotated width in pixels for tick labels before truncation. |
|
|
642
|
+
| `labelPadding` | `number \| undefined` | `undefined` | Spacing in pixels between the axis baseline / tick marks and tick labels. |
|
|
643
|
+
| `labelRotation` | `ChartAxisLabelRotation` | `0` | Explicit rotation angle in degrees for tick labels (-90 to 90), or 'auto' for responsive automatic angling. |
|
|
644
|
+
| `labels` | `boolean` | `true` | Whether the axis tick labels are rendered in the DOM. |
|
|
645
|
+
| `logBase` | `number` | `10` | Base logarithm for log scale (`type="log"`). Must be a positive finite number not equal to 1. |
|
|
646
|
+
| `max` | `number \| Date \| undefined` | `undefined` | Explicit upper bound for the axis range. |
|
|
647
|
+
| `min` | `number \| Date \| undefined` | `undefined` | Explicit lower bound for the axis range. |
|
|
648
|
+
| `nice` | `boolean` | `true` | Automatically extends the axis domain to round, pleasant values. |
|
|
649
|
+
| `position` | `ChartXAxisPosition` | `"bottom"` | Position of the X axis relative to the plot area. |
|
|
650
|
+
| `symlogConstant` | `number` | `1` | Constant for symlog scale (`type="symlog"`). Must be a positive finite number. |
|
|
651
|
+
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of ticks to display along the axis (acts as preferred label count for category axes). |
|
|
652
|
+
| `tickMarks` | `boolean` | `false` | Whether tick mark lines extending outward from the baseline are drawn. |
|
|
653
|
+
| `tickSize` | `number \| undefined` | `undefined` | Length in pixels of outward tick mark lines. |
|
|
654
|
+
| `title` | `string` | `""` | Title text rendered alongside the axis. |
|
|
655
|
+
| `titlePadding` | `number \| undefined` | `undefined` | Spacing in pixels between the outward extent of tick labels and the axis title. |
|
|
656
|
+
| `type` | `ChartXAxisType` | `"auto"` | Scale type for the X axis (`"auto"`, `"category"`, `"linear"`, `"log"`, `"symlog"`, `"pow"`, `"sqrt"`, `"time"`, or `"utc"`). |
|
|
657
|
+
| `visible` | `boolean` | `true` | Whether the axis and its labels are visible. |
|
|
658
|
+
|
|
659
|
+
### `ChartYAxisComponent`
|
|
660
|
+
|
|
661
|
+
Configures a Y axis in Cartesian charts. Add more than one with distinct `axisId` values for multiple axes.
|
|
662
|
+
|
|
663
|
+
**Selector:** `mona-chart-y-axis`
|
|
664
|
+
|
|
665
|
+
#### Inputs
|
|
666
|
+
|
|
667
|
+
| Name | Type | Default | Description |
|
|
668
|
+
| --- | --- | --- | --- |
|
|
669
|
+
| `axisId` | `string \| undefined` | `undefined` | Optional semantic identifier for the Y axis, referenced by series `yAxisId`. |
|
|
670
|
+
| `axisLine` | `boolean` | `true` | Whether the solid baseline axis border line is rendered. |
|
|
671
|
+
| `exponent` | `number` | `1` | Exponent for power scale (`type="pow"`). Must be a positive finite number. |
|
|
672
|
+
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for axis tick labels. |
|
|
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. |
|
|
674
|
+
| `labelMaxWidth` | `number \| undefined` | `undefined` | Maximum unrotated width in pixels for tick labels before truncation. |
|
|
675
|
+
| `labelPadding` | `number \| undefined` | `undefined` | Spacing in pixels between the axis baseline / tick marks and tick labels. |
|
|
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. |
|
|
691
|
+
|
|
692
|
+
### `ChartAnnotationComponent`
|
|
693
|
+
|
|
694
|
+
Renders callouts, milestone badges, and outlier markers anchored to specific (X, Y) coordinates.
|
|
695
|
+
|
|
696
|
+
**Selector:** `mona-chart-annotation`
|
|
697
|
+
|
|
698
|
+
#### Inputs
|
|
699
|
+
|
|
700
|
+
| Name | Type | Default | Description |
|
|
701
|
+
| --- | --- | --- | --- |
|
|
702
|
+
| `class` | `string` | `""` | Custom CSS class name applied to the annotation host. |
|
|
703
|
+
| `color` | `string \| undefined` | `undefined` | Stroke and marker color for the annotation. |
|
|
704
|
+
| `connector` | `boolean` | `true` | Sets whether a connector line is drawn between the anchor point and the label. |
|
|
705
|
+
| `connectorWidth` | `number` | `1` | Connector stroke width in pixels. |
|
|
706
|
+
| `data` | `unknown` | `undefined` | Custom data object provided to template context. |
|
|
707
|
+
| `label` | `string` | `""` | Text label displayed for the annotation. |
|
|
708
|
+
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
709
|
+
| `labelPlacement` | `ChartAnnotationLabelPlacement` | `"top"` | Relative placement of the label from the anchor point: 'top', 'bottom', 'left', or 'right'. |
|
|
710
|
+
| `marker` | `ChartAnnotationMarker` | `"circle"` | Marker shape drawn at the anchor point: 'circle', 'diamond', or 'none'. |
|
|
711
|
+
| `markerRadius` | `number` | `4` | Marker radius in pixels. |
|
|
712
|
+
| `markerStrokeWidth` | `number` | `1.5` | Marker stroke width in pixels. |
|
|
713
|
+
| `offsetX` | `number` | `0` | Additional horizontal pixel offset for label positioning. |
|
|
714
|
+
| `offsetY` | `number` | `0` | Additional vertical pixel offset for label positioning. |
|
|
715
|
+
| `visible` | `boolean` | `true` | Sets whether the annotation is visible. |
|
|
716
|
+
| `x` (required) | `ChartAnnotationAxisValue` | — | X coordinate value or category key for the annotation anchor. |
|
|
717
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Explicit target X axis identifier. Defaults to primary X axis. |
|
|
718
|
+
| `y` (required) | `ChartAnnotationAxisValue` | — | Y coordinate value or category key for the annotation anchor. |
|
|
719
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Explicit target Y axis identifier. Defaults to primary Y axis. |
|
|
720
|
+
|
|
721
|
+
### `ChartCrosshairComponent`
|
|
722
|
+
|
|
723
|
+
Renders dynamic crosshair guide lines and axis label badges for pointer and keyboard navigation in Cartesian XY
|
|
724
|
+
charts.
|
|
725
|
+
|
|
726
|
+
**Selector:** `mona-chart-crosshair`
|
|
727
|
+
|
|
728
|
+
#### Inputs
|
|
729
|
+
|
|
730
|
+
| Name | Type | Default | Description |
|
|
731
|
+
| --- | --- | --- | --- |
|
|
732
|
+
| `class` | `string` | `""` | Custom CSS class name applied to the crosshair. |
|
|
733
|
+
| `color` | `string \| undefined` | `undefined` | Stroke color for the crosshair line. |
|
|
734
|
+
| `enabled` | `boolean` | `true` | Sets whether crosshair interaction is enabled. |
|
|
735
|
+
| `labelOffset` | `number` | `4` | Pixel offset between axis line and crosshair label badge. |
|
|
736
|
+
| `lineStyle` | `ChartCrosshairLineStyle` | `"dashed"` | Line dash style for the crosshair. |
|
|
737
|
+
| `lineWidth` | `number \| undefined` | `undefined` | Line stroke width in pixels. |
|
|
738
|
+
| `maxSnapDistance` | `number` | `32` | Maximum pixel distance for nearest mark snapping. |
|
|
739
|
+
| `mode` | `ChartCrosshairMode` | `"auto"` | Crosshair display mode: auto (follows interaction axis), x, y, or xy. |
|
|
740
|
+
| `opacity` | `number \| undefined` | `undefined` | Stroke opacity for the crosshair line (0 to 1). |
|
|
741
|
+
| `showAxisLabels` | `boolean` | `true` | Sets whether axis value badges are displayed. |
|
|
742
|
+
| `showXLabel` | `boolean \| undefined` | `undefined` | Sets whether the X axis label badge is displayed. |
|
|
743
|
+
| `showYLabel` | `boolean \| undefined` | `undefined` | Sets whether the Y axis label badge is displayed. |
|
|
744
|
+
| `snap` | `ChartCrosshairSnapMode` | `"nearest"` | Snapping mode: nearest semantic mark or raw pointer position. |
|
|
745
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Explicit target X axis identifier. |
|
|
746
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Explicit target Y axis identifier. |
|
|
747
|
+
|
|
748
|
+
### `ChartReferenceBandComponent`
|
|
749
|
+
|
|
750
|
+
Renders highlighted threshold intervals and target regions in Cartesian XY charts.
|
|
751
|
+
|
|
752
|
+
**Selector:** `mona-chart-reference-band`
|
|
753
|
+
|
|
754
|
+
#### Inputs
|
|
755
|
+
|
|
756
|
+
| Name | Type | Default | Description |
|
|
757
|
+
| --- | --- | --- | --- |
|
|
758
|
+
| `axis` (required) | `"x" \| "y"` | — | Target Cartesian axis dimension: 'x' or 'y'. |
|
|
759
|
+
| `axisId` | `string \| undefined` | `undefined` | Explicit identifier of the target axis. Defaults to primary axis for the dimension. |
|
|
760
|
+
| `borderColor` | `string \| undefined` | `undefined` | Border stroke color of the reference band. |
|
|
761
|
+
| `borderWidth` | `number \| undefined` | `undefined` | Border stroke width of the reference band in pixels. |
|
|
762
|
+
| `class` | `string` | `""` | Custom CSS class name applied to the reference band host. |
|
|
763
|
+
| `fillColor` | `string \| undefined` | `undefined` | Fill color of the reference band. |
|
|
764
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity of the reference band (0 to 1). |
|
|
765
|
+
| `from` (required) | `ChartAnnotationAxisValue` | — | Starting coordinate value or category key for the reference band. |
|
|
766
|
+
| `label` | `string` | `""` | Text label displayed inside or alongside the reference band. |
|
|
767
|
+
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
768
|
+
| `labelOffset` | `number` | `6` | Pixel offset between the band boundary and the label. |
|
|
769
|
+
| `labelPosition` | `ChartReferenceLabelPosition` | `"center"` | Alignment position for the label: 'start', 'center', or 'end'. |
|
|
770
|
+
| `layer` | `ChartOverlayLayer` | `"underlay"` | Render layer: 'underlay' (behind series) or 'overlay' (in front of series). |
|
|
771
|
+
| `to` (required) | `ChartAnnotationAxisValue` | — | Ending coordinate value or category key for the reference band. |
|
|
772
|
+
| `visible` | `boolean` | `true` | Sets whether the reference band is visible. |
|
|
773
|
+
|
|
774
|
+
### `ChartBrushComponent`
|
|
775
|
+
|
|
776
|
+
Selects a region of a Cartesian plot by dragging, or from the keyboard with `Shift` + arrows from a focused point.
|
|
777
|
+
|
|
778
|
+
**Selector:** `mona-chart-brush`
|
|
779
|
+
|
|
780
|
+
#### Inputs
|
|
781
|
+
|
|
782
|
+
| Name | Type | Default | Description |
|
|
783
|
+
| --- | --- | --- | --- |
|
|
784
|
+
| `activation` | `ChartBrushActivation` | `"shift-drag"` | Activation trigger gesture ('drag' or 'shift-drag'). |
|
|
785
|
+
| `borderColor` | `string \| undefined` | `undefined` | Border color of the brush rectangle. |
|
|
786
|
+
| `borderWidth` | `number \| undefined` | `undefined` | Border width in pixels of the brush rectangle. |
|
|
787
|
+
| `enabled` | `boolean` | `true` | Whether brush gesture interaction is enabled. |
|
|
788
|
+
| `fillColor` | `string \| undefined` | `undefined` | Background fill color of the brush rectangle. |
|
|
789
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity of the brush rectangle. |
|
|
790
|
+
| `hitPolicy` | `ChartBrushHitPolicy` | `"intersect"` | Mark spatial hit policy ('center' or 'intersect'). |
|
|
791
|
+
| `lineStyle` | `ChartBrushLineStyle \| undefined` | `undefined` | Stroke dash style of the brush rectangle border ('solid', 'dashed', or 'dotted'). |
|
|
792
|
+
| `minDragDistance` | `number` | `4` | Minimum drag distance in pixels before brush gesture activates. |
|
|
793
|
+
| `mode` | `ChartBrushMode` | `"xy"` | Brush dimension constraint mode ('x', 'y', or 'xy'). |
|
|
794
|
+
| `selectionBehavior` | `ChartBrushSelectionBehavior` | `"none"` | Selection interaction behavior when brushing over marks. |
|
|
795
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional Cartesian X axis ID to target. |
|
|
796
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional Cartesian Y axis ID to target. |
|
|
797
|
+
|
|
798
|
+
#### Outputs
|
|
799
|
+
|
|
800
|
+
| Name | Type | Description |
|
|
801
|
+
| --- | --- | --- |
|
|
802
|
+
| `brushChange` | `ChartBrushChangeEvent<unknown>` | Emitted during brush lifecycle phases ('start', 'update', 'end', 'cancel'). |
|
|
803
|
+
|
|
804
|
+
### `ChartReferenceLineComponent`
|
|
805
|
+
|
|
806
|
+
Renders static horizontal or vertical benchmark lines in Cartesian XY charts.
|
|
807
|
+
|
|
808
|
+
**Selector:** `mona-chart-reference-line`
|
|
809
|
+
|
|
810
|
+
#### Inputs
|
|
811
|
+
|
|
812
|
+
| Name | Type | Default | Description |
|
|
813
|
+
| --- | --- | --- | --- |
|
|
814
|
+
| `axis` (required) | `"x" \| "y"` | — | Target Cartesian axis dimension: 'x' or 'y'. |
|
|
815
|
+
| `axisId` | `string \| undefined` | `undefined` | Explicit identifier of the target axis. Defaults to primary axis for the dimension. |
|
|
816
|
+
| `class` | `string` | `""` | Custom CSS class name applied to the reference line host. |
|
|
817
|
+
| `color` | `string \| undefined` | `undefined` | Stroke color of the reference line. |
|
|
818
|
+
| `label` | `string` | `""` | Text label displayed alongside the reference line. |
|
|
819
|
+
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
820
|
+
| `labelOffset` | `number` | `6` | Pixel offset between the reference line and the label. |
|
|
821
|
+
| `labelPosition` | `ChartReferenceLabelPosition` | `"end"` | Alignment position for the label: 'start', 'center', or 'end'. |
|
|
822
|
+
| `layer` | `ChartOverlayLayer` | `"overlay"` | Render layer: 'underlay' (behind series) or 'overlay' (in front of series). |
|
|
823
|
+
| `lineStyle` | `ChartReferenceLineStyle` | `"dashed"` | Line dash style: 'dashed', 'dotted', or 'solid'. |
|
|
824
|
+
| `opacity` | `number \| undefined` | `undefined` | Stroke opacity of the reference line (0 to 1). |
|
|
825
|
+
| `value` (required) | `ChartAnnotationAxisValue` | — | Semantic coordinate value or category key for the reference line. |
|
|
826
|
+
| `visible` | `boolean` | `true` | Sets whether the reference line is visible. |
|
|
827
|
+
| `width` | `number \| undefined` | `undefined` | Stroke width of the reference line in pixels. |
|
|
828
|
+
|
|
829
|
+
### `ChartSelectionComponent`
|
|
830
|
+
|
|
831
|
+
Lets users select marks with the pointer and keyboard, and holds the selected mark IDs.
|
|
832
|
+
|
|
833
|
+
**Selector:** `mona-chart-selection`
|
|
834
|
+
|
|
835
|
+
#### Inputs
|
|
836
|
+
|
|
837
|
+
| Name | Type | Default | Description |
|
|
838
|
+
| --- | --- | --- | --- |
|
|
839
|
+
| `clearOnBackgroundClick` | `boolean` | `true` | Whether clicking plot background clears active selection. |
|
|
840
|
+
| `clickSelection` | `boolean` | `true` | Whether clicking marks selects/toggles them. |
|
|
841
|
+
| `color` | `string \| undefined` | `undefined` | Selection highlight stroke color override. |
|
|
842
|
+
| `defaultSelectedMarkIds` | `readonly string[]` | `[]` | Default selected mark IDs to seed initial uncontrolled selection. |
|
|
843
|
+
| `enabled` | `boolean` | `true` | Whether selection interaction is enabled. |
|
|
844
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Selection highlight fill opacity override. |
|
|
845
|
+
| `keyboardSelection` | `boolean` | `true` | Whether keyboard Enter / Space on focused marks selects/toggles them. |
|
|
846
|
+
| `mode` | `ChartSelectionMode` | `"single"` | Selection mode ('single' or 'multiple'). |
|
|
847
|
+
| `retainOnDataChange` | `boolean` | `true` | Whether selected mark IDs are retained across dataset changes. |
|
|
848
|
+
| `selectedMarkIds` | `readonly string[] \| undefined` | `undefined` | Controlled selected mark IDs. When defined, component acts as controlled state. Bind `[(selectedMarkIds)]` for two-way binding. |
|
|
849
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Selection highlight stroke width override. |
|
|
850
|
+
|
|
851
|
+
#### Outputs
|
|
852
|
+
|
|
853
|
+
| Name | Type | Description |
|
|
854
|
+
| --- | --- | --- |
|
|
855
|
+
| `selectedMarkIdsChange` | `readonly string[]` | Emits the proposed selected mark IDs. |
|
|
856
|
+
| `selectionChange` | `ChartSelectionChangeEvent<unknown>` | Emitted when mark selection is proposed or changed. |
|
|
857
|
+
|
|
858
|
+
### `ChartLegendComponent`
|
|
859
|
+
|
|
860
|
+
Adds a legend. Items toggle what they represent unless `interactive` is off.
|
|
861
|
+
|
|
862
|
+
**Selector:** `mona-chart-legend`
|
|
863
|
+
|
|
864
|
+
#### Inputs
|
|
865
|
+
|
|
866
|
+
| Name | Type | Default | Description |
|
|
867
|
+
| --- | --- | --- | --- |
|
|
868
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the legend container. |
|
|
869
|
+
| `interactive` | `boolean` | `true` | Whether clicking or pressing Enter/Space on legend items toggles series visibility. |
|
|
870
|
+
| `mode` | `ChartLegendMode` | `"auto"` | Legend display mode: 'auto' (series items for standard charts, color scale for heatmap), 'series' (always series items), or 'color' (color gradient scale). |
|
|
871
|
+
| `position` | `ChartLegendPosition` | `"bottom"` | Layout position of the legend (`"top"`, `"bottom"`, `"start"`, `"end"`, `"left"`, or `"right"`). `start` and `end` follow the direction; `left` and `right` stay on that side. |
|
|
872
|
+
|
|
873
|
+
### `ChartTooltipComponent`
|
|
874
|
+
|
|
875
|
+
Adds a tooltip for pointer and keyboard interaction. Use `ng-template[monaChartTooltipTemplate]` for custom content.
|
|
876
|
+
|
|
877
|
+
**Selector:** `mona-chart-tooltip`
|
|
878
|
+
|
|
879
|
+
#### Inputs
|
|
880
|
+
|
|
881
|
+
| Name | Type | Default | Description |
|
|
882
|
+
| --- | --- | --- | --- |
|
|
883
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the tooltip popup container. |
|
|
884
|
+
| `enabled` | `boolean` | `true` | Whether the tooltip is enabled and will appear during interaction. |
|
|
885
|
+
| `shared` | `boolean` | `false` | In shared mode, displays values for all visible series matching the active X coordinate. |
|
|
886
|
+
|
|
887
|
+
### `ChartAnnotationLabelTemplateDirective`
|
|
888
|
+
|
|
889
|
+
**Selector:** `ng-template[monaChartAnnotationLabelTemplate], ng-template[monaChartAnnotationLabel]`
|
|
890
|
+
|
|
891
|
+
#### Template context
|
|
892
|
+
|
|
893
|
+
| Name | Type |
|
|
894
|
+
| --- | --- |
|
|
895
|
+
| `$implicit` | `unknown` |
|
|
896
|
+
| `data` | `unknown` |
|
|
897
|
+
| `formattedX` | `string` |
|
|
898
|
+
| `formattedY` | `string` |
|
|
899
|
+
| `point` | `ChartPoint` |
|
|
900
|
+
| `x` | `ChartAnnotationAxisValue` |
|
|
901
|
+
| `xAxisId` | `string` |
|
|
902
|
+
| `y` | `ChartAnnotationAxisValue` |
|
|
903
|
+
| `yAxisId` | `string` |
|
|
904
|
+
|
|
905
|
+
### `ChartAxisLabelTemplateDirective`
|
|
906
|
+
|
|
907
|
+
**Selector:** `ng-template[monaChartAxisLabelTemplate]`
|
|
908
|
+
|
|
909
|
+
#### Template context
|
|
910
|
+
|
|
911
|
+
| Name | Type |
|
|
912
|
+
| --- | --- |
|
|
913
|
+
| `$implicit` | `unknown` |
|
|
914
|
+
| `axis` | `"angular" \| "radial" \| "x" \| "y"` |
|
|
915
|
+
| `axisId?` | `string \| undefined` |
|
|
916
|
+
| `index` | `number` |
|
|
917
|
+
| `position?` | `ChartAxisPosition \| undefined` |
|
|
918
|
+
| `scaleType?` | `string \| undefined` |
|
|
919
|
+
| `value` | `unknown` |
|
|
920
|
+
|
|
921
|
+
### `ChartCrosshairLabelTemplateDirective`
|
|
922
|
+
|
|
923
|
+
**Selector:** `ng-template[monaChartCrosshairLabelTemplate], ng-template[monaChartCrosshairLabel]`
|
|
924
|
+
|
|
925
|
+
#### Template context
|
|
926
|
+
|
|
927
|
+
| Name | Type |
|
|
928
|
+
| --- | --- |
|
|
929
|
+
| `$implicit` | `unknown` |
|
|
930
|
+
| `axis` | `"x" \| "y"` |
|
|
931
|
+
| `axisId` | `string` |
|
|
932
|
+
| `coordinate` | `number` |
|
|
933
|
+
| `formattedValue` | `string` |
|
|
934
|
+
| `snapped` | `boolean` |
|
|
935
|
+
| `source` | `"keyboard" \| "pointer" \| "sync"` |
|
|
936
|
+
| `value` | `unknown` |
|
|
937
|
+
|
|
938
|
+
### `ChartDataLabelTemplateDirective`
|
|
939
|
+
|
|
940
|
+
**Selector:** `ng-template[monaChartDataLabelTemplate], ng-template[monaChartDataLabel]`
|
|
941
|
+
**Type parameters:** `T = unknown`
|
|
942
|
+
|
|
943
|
+
#### Template context
|
|
944
|
+
|
|
945
|
+
| Name | Type | Description |
|
|
946
|
+
| --- | --- | --- |
|
|
947
|
+
| `$implicit` | `ChartDataLabelContext<T>` | The same context object, so `let-context` in the template receives every field below. |
|
|
948
|
+
| `close?` | `number \| undefined` | The closing price of a candlestick or OHLC mark. |
|
|
949
|
+
| `color` | `string` | The color of the mark the label belongs to. Falls back to the series color, then to black. |
|
|
950
|
+
| `dataIndex` | `number` | The index of the data item in the series data. |
|
|
951
|
+
| `datum` | `T` | The data item the mark was drawn from. |
|
|
952
|
+
| `formattedClose?` | `string \| undefined` | The closing price of a candlestick or OHLC mark, formatted for display. |
|
|
953
|
+
| `formattedFrom?` | `string \| undefined` | The start value of a range bar or range area mark, formatted for display. |
|
|
954
|
+
| `formattedHigh?` | `string \| undefined` | The high price of a candlestick or OHLC mark, formatted for display. |
|
|
955
|
+
| `formattedLow?` | `string \| undefined` | The low price of a candlestick or OHLC mark, formatted for display. |
|
|
956
|
+
| `formattedOpen?` | `string \| undefined` | The opening price of a candlestick or OHLC mark, formatted for display. |
|
|
957
|
+
| `formattedSize?` | `string \| undefined` | The size value of a bubble mark, formatted for display. |
|
|
958
|
+
| `formattedStackPercentage?` | `string \| undefined` | The mark's share of its stack total, formatted for display. The default label text for percent-stacked bar and area series. |
|
|
959
|
+
| `formattedStackTotal?` | `string \| undefined` | The total of the stack the mark belongs to, formatted for display. |
|
|
960
|
+
| `formattedTo?` | `string \| undefined` | The end value of a range bar or range area mark, formatted for display. |
|
|
961
|
+
| `formattedValue` | `string` | The value text the chart shows for the mark. For range marks it joins the start and end values; for horizontal bars it is the formatted x value. |
|
|
962
|
+
| `formattedX` | `string` | The x value of the mark, formatted for display. Empty when the mark has no x value. |
|
|
963
|
+
| `formattedY` | `string` | The y value of the mark, formatted for display. Empty when the mark has no y value. |
|
|
964
|
+
| `fromValue?` | `number \| undefined` | The start value of a range bar or range area mark. |
|
|
965
|
+
| `high?` | `number \| undefined` | The high price of a candlestick or OHLC mark. |
|
|
966
|
+
| `low?` | `number \| undefined` | The low price of a candlestick or OHLC mark. |
|
|
967
|
+
| `markId` | `string` | A stable identifier of the mark within the chart, the same one selection events report. |
|
|
968
|
+
| `open?` | `number \| undefined` | The opening price of a candlestick or OHLC mark. |
|
|
969
|
+
| `rawValue?` | `unknown` | The value read from the data item before stacking or other processing, when the series provides one. |
|
|
970
|
+
| `selected` | `boolean` | Persistent selection state for this mark. |
|
|
971
|
+
| `seriesId` | `string` | The identifier of the series the mark belongs to. |
|
|
972
|
+
| `seriesName` | `string` | The display name of the series the mark belongs to. |
|
|
973
|
+
| `seriesType` | `ChartSeriesType` | The type of the series the mark belongs to, such as `"bar"` or `"line"`. |
|
|
974
|
+
| `sizeValue?` | `number \| undefined` | The size value of a bubble mark. |
|
|
975
|
+
| `stackEnd?` | `number \| undefined` | The value where the mark ends on its stack. |
|
|
976
|
+
| `stackMode?` | `ChartStackMode \| undefined` | The stacking mode of the series, when the series is stacked. |
|
|
977
|
+
| `stackPercentage?` | `number \| undefined` | The mark's share of its stack total, as a percentage. |
|
|
978
|
+
| `stackStart?` | `number \| undefined` | The value where the mark starts on its stack. |
|
|
979
|
+
| `stackTotal?` | `number \| undefined` | The total of the stack the mark belongs to. |
|
|
980
|
+
| `toValue?` | `number \| undefined` | The end value of a range bar or range area mark. |
|
|
981
|
+
| `value?` | `unknown` | The value of the mark. A `[from, to]` pair for range marks, the aggregate value for hierarchical marks, and the y value otherwise. |
|
|
982
|
+
| `xValue?` | `unknown` | The x value of the mark. |
|
|
983
|
+
| `yValue?` | `unknown` | The y value of the mark. |
|
|
984
|
+
|
|
985
|
+
### `ChartLegendItemTemplateDirective`
|
|
986
|
+
|
|
987
|
+
**Selector:** `ng-template[monaChartLegendItemTemplate]`
|
|
988
|
+
|
|
989
|
+
#### Template context
|
|
990
|
+
|
|
991
|
+
| Name | Type |
|
|
992
|
+
| --- | --- |
|
|
993
|
+
| `$implicit` | `ChartLegendItem` |
|
|
994
|
+
| `color` | `string` |
|
|
995
|
+
| `dataIndex?` | `number \| undefined` |
|
|
996
|
+
| `datum?` | `unknown` |
|
|
997
|
+
| `interactive?` | `boolean \| undefined` |
|
|
998
|
+
| `itemId` | `string` |
|
|
999
|
+
| `kind?` | `ChartLegendItemKind \| undefined` |
|
|
1000
|
+
| `name` | `string` |
|
|
1001
|
+
| `percentage?` | `number \| undefined` |
|
|
1002
|
+
| `secondaryColor?` | `string \| undefined` |
|
|
1003
|
+
| `series` | `ChartLegendItem` |
|
|
1004
|
+
| `seriesId` | `string` |
|
|
1005
|
+
| `seriesType` | `ChartSeriesType` |
|
|
1006
|
+
| `value?` | `number \| undefined` |
|
|
1007
|
+
| `visible` | `boolean` |
|
|
1008
|
+
|
|
1009
|
+
### `ChartNoDataTemplateDirective`
|
|
1010
|
+
|
|
1011
|
+
**Selector:** `ng-template[monaChartNoDataTemplate]`
|
|
1012
|
+
|
|
1013
|
+
### `ChartReferenceLabelTemplateDirective`
|
|
1014
|
+
|
|
1015
|
+
**Selector:** `ng-template[monaChartReferenceLabelTemplate], ng-template[monaChartReferenceLabel]`
|
|
1016
|
+
|
|
1017
|
+
#### Template context
|
|
1018
|
+
|
|
1019
|
+
| Name | Type |
|
|
1020
|
+
| --- | --- |
|
|
1021
|
+
| `$implicit` | `ChartAnnotationAxisValue \| { readonly from: ChartAnnotationAxisValue; readonly to: ChartAnnotationAxisValue; }` |
|
|
1022
|
+
| `axis` | `"x" \| "y"` |
|
|
1023
|
+
| `axisId` | `string` |
|
|
1024
|
+
| `bounds?` | `ChartRect \| undefined` |
|
|
1025
|
+
| `coordinate?` | `number \| undefined` |
|
|
1026
|
+
| `formattedFrom?` | `string \| undefined` |
|
|
1027
|
+
| `formattedTo?` | `string \| undefined` |
|
|
1028
|
+
| `formattedValue?` | `string \| undefined` |
|
|
1029
|
+
| `from?` | `ChartAnnotationAxisValue \| undefined` |
|
|
1030
|
+
| `kind` | `"line" \| "band"` |
|
|
1031
|
+
| `to?` | `ChartAnnotationAxisValue \| undefined` |
|
|
1032
|
+
| `value?` | `ChartAnnotationAxisValue \| undefined` |
|
|
1033
|
+
|
|
1034
|
+
### `ChartSubtitleTemplateDirective`
|
|
1035
|
+
|
|
1036
|
+
**Selector:** `ng-template[monaChartSubtitleTemplate]`
|
|
1037
|
+
|
|
1038
|
+
#### Template context
|
|
1039
|
+
|
|
1040
|
+
| Name | Type |
|
|
1041
|
+
| --- | --- |
|
|
1042
|
+
| `$implicit` | `string` |
|
|
1043
|
+
| `subtitle` | `string` |
|
|
1044
|
+
|
|
1045
|
+
### `ChartTitleTemplateDirective`
|
|
1046
|
+
|
|
1047
|
+
**Selector:** `ng-template[monaChartTitleTemplate]`
|
|
1048
|
+
|
|
1049
|
+
#### Template context
|
|
1050
|
+
|
|
1051
|
+
| Name | Type |
|
|
1052
|
+
| --- | --- |
|
|
1053
|
+
| `$implicit` | `string` |
|
|
1054
|
+
| `title` | `string` |
|
|
1055
|
+
|
|
1056
|
+
### `ChartTooltipTemplateDirective`
|
|
1057
|
+
|
|
1058
|
+
**Selector:** `ng-template[monaChartTooltipTemplate]`
|
|
1059
|
+
|
|
1060
|
+
#### Template context
|
|
1061
|
+
|
|
1062
|
+
| Name | Type |
|
|
1063
|
+
| --- | --- |
|
|
1064
|
+
| `$implicit` | `ChartTooltipPointContext<unknown>` |
|
|
1065
|
+
| `point` | `ChartTooltipPointContext<unknown>` |
|
|
1066
|
+
| `points` | `readonly ChartTooltipPointContext<unknown>[]` |
|
|
1067
|
+
| `series` | `readonly string[]` |
|
|
1068
|
+
| `shared` | `boolean` |
|
|
1069
|
+
|
|
1070
|
+
### `ChartExportError`
|
|
1071
|
+
|
|
1072
|
+
Error thrown when a chart export operation fails.
|
|
1073
|
+
|
|
1074
|
+
#### Properties
|
|
1075
|
+
|
|
1076
|
+
| Name | Type |
|
|
1077
|
+
| --- | --- |
|
|
1078
|
+
| `code` (read-only) | `ChartExportErrorCode` |
|
|
1079
|
+
|
|
1080
|
+
### `chartItemCategoryId`
|
|
1081
|
+
|
|
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.
|
|
1085
|
+
|
|
1086
|
+
```typescript
|
|
1087
|
+
function chartItemCategoryId(category: boolean | string): string;
|
|
1088
|
+
function chartItemCategoryId(category: ChartItemKey): string | undefined;
|
|
1089
|
+
```
|
|
1090
|
+
|
|
1091
|
+
### `chartItemIndexId`
|
|
1092
|
+
|
|
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.
|
|
1095
|
+
|
|
1096
|
+
```typescript
|
|
1097
|
+
function chartItemIndexId(index: number): string;
|
|
1098
|
+
```
|
|
1099
|
+
|
|
1100
|
+
### `chartItemKeyId`
|
|
1101
|
+
|
|
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
|
+
```
|
|
1110
|
+
|
|
1111
|
+
### `getChartSeriesFamily`
|
|
1112
|
+
|
|
1113
|
+
```typescript
|
|
1114
|
+
function getChartSeriesFamily(type: ChartSeriesType): ChartSeriesFamily;
|
|
1115
|
+
```
|
|
1116
|
+
|
|
1117
|
+
### `isCartesianCoordinateFamily`
|
|
1118
|
+
|
|
1119
|
+
```typescript
|
|
1120
|
+
function isCartesianCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
1121
|
+
```
|
|
1122
|
+
|
|
1123
|
+
### `isHierarchicalCoordinateFamily`
|
|
1124
|
+
|
|
1125
|
+
```typescript
|
|
1126
|
+
function isHierarchicalCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
1127
|
+
```
|
|
1128
|
+
|
|
1129
|
+
### `isPolarCoordinateFamily`
|
|
1130
|
+
|
|
1131
|
+
```typescript
|
|
1132
|
+
function isPolarCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
1133
|
+
```
|
|
1134
|
+
|
|
1135
|
+
### Types
|
|
1136
|
+
|
|
1137
|
+
#### `CHART_DEFAULT_MESSAGES`
|
|
1138
|
+
|
|
1139
|
+
```typescript
|
|
1140
|
+
const CHART_DEFAULT_MESSAGES: MonaChartMessages;
|
|
1141
|
+
```
|
|
1142
|
+
|
|
1143
|
+
#### `ChartAnimationOptions`
|
|
1144
|
+
|
|
1145
|
+
| Name | Type |
|
|
1146
|
+
| --- | --- |
|
|
1147
|
+
| `data?` (read-only) | `boolean` |
|
|
1148
|
+
| `duration?` (read-only) | `number` |
|
|
1149
|
+
| `easing?` (read-only) | `ChartAnimationEasing` |
|
|
1150
|
+
| `enabled?` (read-only) | `boolean` |
|
|
1151
|
+
| `initial?` (read-only) | `boolean` |
|
|
1152
|
+
| `visibility?` (read-only) | `boolean` |
|
|
1153
|
+
|
|
1154
|
+
#### `ChartAnnotationLabelTemplateContext`
|
|
1155
|
+
|
|
1156
|
+
**Type parameters:** `TData = unknown`
|
|
1157
|
+
|
|
1158
|
+
| Name | Type |
|
|
1159
|
+
| --- | --- |
|
|
1160
|
+
| `$implicit` (read-only) | `TData` |
|
|
1161
|
+
| `data` (read-only) | `TData` |
|
|
1162
|
+
| `formattedX` (read-only) | `string` |
|
|
1163
|
+
| `formattedY` (read-only) | `string` |
|
|
1164
|
+
| `point` (read-only) | `ChartPoint` |
|
|
1165
|
+
| `x` (read-only) | `ChartAnnotationAxisValue` |
|
|
1166
|
+
| `xAxisId` (read-only) | `string` |
|
|
1167
|
+
| `y` (read-only) | `ChartAnnotationAxisValue` |
|
|
1168
|
+
| `yAxisId` (read-only) | `string` |
|
|
1169
|
+
|
|
1170
|
+
#### `ChartAxisLabelTemplateContext`
|
|
1171
|
+
|
|
1172
|
+
**Type parameters:** `T = unknown`
|
|
1173
|
+
|
|
1174
|
+
| Name | Type |
|
|
1175
|
+
| --- | --- |
|
|
1176
|
+
| `$implicit` | `T` |
|
|
1177
|
+
| `axis` | `"angular" \| "radial" \| "x" \| "y"` |
|
|
1178
|
+
| `axisId?` | `string` |
|
|
1179
|
+
| `index` | `number` |
|
|
1180
|
+
| `position?` | `ChartAxisPosition` |
|
|
1181
|
+
| `scaleType?` | `ChartXAxisType \| string` |
|
|
1182
|
+
| `value` | `T` |
|
|
1183
|
+
|
|
1184
|
+
#### `ChartAxisTick`
|
|
1185
|
+
|
|
1186
|
+
**Type parameters:** `T = unknown`
|
|
1187
|
+
|
|
1188
|
+
| Name | Type |
|
|
1189
|
+
| --- | --- |
|
|
1190
|
+
| `coordinate` | `number` |
|
|
1191
|
+
| `formattedValue` | `string` |
|
|
1192
|
+
| `index` | `number` |
|
|
1193
|
+
| `value` | `T` |
|
|
1194
|
+
|
|
1195
|
+
#### `ChartBrushCategoryRange`
|
|
1196
|
+
|
|
1197
|
+
| Name | Type |
|
|
1198
|
+
| --- | --- |
|
|
1199
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
1200
|
+
| `axisId` (read-only) | `string` |
|
|
1201
|
+
| `fromIndex` (read-only) | `number` |
|
|
1202
|
+
| `fromValue` (read-only) | `unknown` |
|
|
1203
|
+
| `kind` (read-only) | `"category"` |
|
|
1204
|
+
| `toIndex` (read-only) | `number` |
|
|
1205
|
+
| `toValue` (read-only) | `unknown` |
|
|
1206
|
+
|
|
1207
|
+
#### `ChartBrushChangeEvent`
|
|
1208
|
+
|
|
1209
|
+
**Type parameters:** `T = unknown`
|
|
1210
|
+
|
|
1211
|
+
| Name | Type |
|
|
1212
|
+
| --- | --- |
|
|
1213
|
+
| `cancelReason?` (read-only) | `ChartBrushCancelReason` |
|
|
1214
|
+
| `matchedMarkIds?` (read-only) | `readonly string[]` |
|
|
1215
|
+
| `matchedPoints?` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
1216
|
+
| `mode` (read-only) | `ChartBrushMode` |
|
|
1217
|
+
| `phase` (read-only) | `ChartBrushPhase` |
|
|
1218
|
+
| `pixelBounds` (read-only) | `ChartRect \| null` |
|
|
1219
|
+
| `xRange?` (read-only) | `ChartBrushAxisRange` |
|
|
1220
|
+
| `yRange?` (read-only) | `ChartBrushAxisRange` |
|
|
1221
|
+
|
|
1222
|
+
#### `ChartBrushContinuousRange`
|
|
1223
|
+
|
|
1224
|
+
| Name | Type |
|
|
1225
|
+
| --- | --- |
|
|
1226
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
1227
|
+
| `axisId` (read-only) | `string` |
|
|
1228
|
+
| `from` (read-only) | `number \| Date` |
|
|
1229
|
+
| `kind` (read-only) | `"continuous"` |
|
|
1230
|
+
| `scaleType` (read-only) | `"linear" \| "log" \| "pow" \| "sqrt" \| "symlog" \| "time" \| "utc"` |
|
|
1231
|
+
| `to` (read-only) | `number \| Date` |
|
|
1232
|
+
|
|
1233
|
+
#### `ChartCategoryViewportWindow`
|
|
1234
|
+
|
|
1235
|
+
**Extends:** `ChartViewportAxisRef`
|
|
1236
|
+
|
|
1237
|
+
| Name | Type |
|
|
1238
|
+
| --- | --- |
|
|
1239
|
+
| `endIndexExclusive` (read-only) | `number` |
|
|
1240
|
+
| `kind` (read-only) | `"category"` |
|
|
1241
|
+
| `startIndex` (read-only) | `number` |
|
|
1242
|
+
|
|
1243
|
+
#### `ChartContinuousViewportWindow`
|
|
1244
|
+
|
|
1245
|
+
**Extends:** `ChartViewportAxisRef`
|
|
1246
|
+
|
|
1247
|
+
| Name | Type |
|
|
1248
|
+
| --- | --- |
|
|
1249
|
+
| `kind` (read-only) | `"continuous"` |
|
|
1250
|
+
| `max` (read-only) | `Date \| number` |
|
|
1251
|
+
| `min` (read-only) | `Date \| number` |
|
|
1252
|
+
|
|
1253
|
+
#### `ChartCrosshairAxisLabelContext`
|
|
1254
|
+
|
|
1255
|
+
**Type parameters:** `T = unknown`
|
|
1256
|
+
|
|
1257
|
+
| Name | Type |
|
|
1258
|
+
| --- | --- |
|
|
1259
|
+
| `$implicit` (read-only) | `T` |
|
|
1260
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
1261
|
+
| `axisId` (read-only) | `string` |
|
|
1262
|
+
| `coordinate` (read-only) | `number` |
|
|
1263
|
+
| `formattedValue` (read-only) | `string` |
|
|
1264
|
+
| `snapped` (read-only) | `boolean` |
|
|
1265
|
+
| `source` (read-only) | `"keyboard" \| "pointer" \| "sync"` |
|
|
1266
|
+
| `value` (read-only) | `T` |
|
|
1267
|
+
|
|
1268
|
+
#### `ChartCrosshairResolvedAxisValue`
|
|
1269
|
+
|
|
1270
|
+
**Type parameters:** `T = unknown`
|
|
1271
|
+
|
|
1272
|
+
| Name | Type |
|
|
1273
|
+
| --- | --- |
|
|
1274
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
1275
|
+
| `axisId` (read-only) | `string` |
|
|
1276
|
+
| `coordinate` (read-only) | `number` |
|
|
1277
|
+
| `formattedValue` (read-only) | `string` |
|
|
1278
|
+
| `value` (read-only) | `T` |
|
|
1279
|
+
|
|
1280
|
+
#### `ChartCrosshairSynchronizationOptions`
|
|
1281
|
+
|
|
1282
|
+
| Name | Type |
|
|
1283
|
+
| --- | --- |
|
|
1284
|
+
| `axes?` (read-only) | `"auto" \| "x" \| "xy" \| "y"` |
|
|
1285
|
+
| `clearOnLeave?` (read-only) | `boolean` |
|
|
1286
|
+
| `enabled?` (read-only) | `boolean` |
|
|
1287
|
+
| `match?` (read-only) | `"axis-value" \| "nearest-point"` |
|
|
1288
|
+
| `mode?` (read-only) | `ChartSynchronizationMode` |
|
|
1289
|
+
| `showTooltip?` (read-only) | `boolean` |
|
|
1290
|
+
|
|
1291
|
+
#### `ChartDataLabelContext`
|
|
1292
|
+
|
|
1293
|
+
**Type parameters:** `T = unknown`
|
|
1294
|
+
|
|
1295
|
+
| Name | Type | Description |
|
|
1296
|
+
| --- | --- | --- |
|
|
1297
|
+
| `$implicit` (read-only) | `ChartDataLabelContext<T>` | The same context object, so `let-context` in the template receives every field below. |
|
|
1298
|
+
| `close?` (read-only) | `number` | The closing price of a candlestick or OHLC mark. |
|
|
1299
|
+
| `color` (read-only) | `string` | The color of the mark the label belongs to. Falls back to the series color, then to black. |
|
|
1300
|
+
| `dataIndex` (read-only) | `number` | The index of the data item in the series data. |
|
|
1301
|
+
| `datum` (read-only) | `T` | The data item the mark was drawn from. |
|
|
1302
|
+
| `formattedClose?` (read-only) | `string` | The closing price of a candlestick or OHLC mark, formatted for display. |
|
|
1303
|
+
| `formattedFrom?` (read-only) | `string` | The start value of a range bar or range area mark, formatted for display. |
|
|
1304
|
+
| `formattedHigh?` (read-only) | `string` | The high price of a candlestick or OHLC mark, formatted for display. |
|
|
1305
|
+
| `formattedLow?` (read-only) | `string` | The low price of a candlestick or OHLC mark, formatted for display. |
|
|
1306
|
+
| `formattedOpen?` (read-only) | `string` | The opening price of a candlestick or OHLC mark, formatted for display. |
|
|
1307
|
+
| `formattedSize?` (read-only) | `string` | The size value of a bubble mark, formatted for display. |
|
|
1308
|
+
| `formattedStackPercentage?` (read-only) | `string` | The mark's share of its stack total, formatted for display. The default label text for percent-stacked bar and area series. |
|
|
1309
|
+
| `formattedStackTotal?` (read-only) | `string` | The total of the stack the mark belongs to, formatted for display. |
|
|
1310
|
+
| `formattedTo?` (read-only) | `string` | The end value of a range bar or range area mark, formatted for display. |
|
|
1311
|
+
| `formattedValue` (read-only) | `string` | The value text the chart shows for the mark. For range marks it joins the start and end values; for horizontal bars it is the formatted x value. |
|
|
1312
|
+
| `formattedX` (read-only) | `string` | The x value of the mark, formatted for display. Empty when the mark has no x value. |
|
|
1313
|
+
| `formattedY` (read-only) | `string` | The y value of the mark, formatted for display. Empty when the mark has no y value. |
|
|
1314
|
+
| `fromValue?` (read-only) | `number` | The start value of a range bar or range area mark. |
|
|
1315
|
+
| `high?` (read-only) | `number` | The high price of a candlestick or OHLC mark. |
|
|
1316
|
+
| `low?` (read-only) | `number` | The low price of a candlestick or OHLC mark. |
|
|
1317
|
+
| `markId` (read-only) | `string` | A stable identifier of the mark within the chart, the same one selection events report. |
|
|
1318
|
+
| `open?` (read-only) | `number` | The opening price of a candlestick or OHLC mark. |
|
|
1319
|
+
| `rawValue?` (read-only) | `unknown` | The value read from the data item before stacking or other processing, when the series provides one. |
|
|
1320
|
+
| `selected` (read-only) | `boolean` | Persistent selection state for this mark. |
|
|
1321
|
+
| `seriesId` (read-only) | `string` | The identifier of the series the mark belongs to. |
|
|
1322
|
+
| `seriesName` (read-only) | `string` | The display name of the series the mark belongs to. |
|
|
1323
|
+
| `seriesType` (read-only) | `ChartSeriesType` | The type of the series the mark belongs to, such as `"bar"` or `"line"`. |
|
|
1324
|
+
| `sizeValue?` (read-only) | `number` | The size value of a bubble mark. |
|
|
1325
|
+
| `stackEnd?` (read-only) | `number` | The value where the mark ends on its stack. |
|
|
1326
|
+
| `stackMode?` (read-only) | `ChartStackMode` | The stacking mode of the series, when the series is stacked. |
|
|
1327
|
+
| `stackPercentage?` (read-only) | `number` | The mark's share of its stack total, as a percentage. |
|
|
1328
|
+
| `stackStart?` (read-only) | `number` | The value where the mark starts on its stack. |
|
|
1329
|
+
| `stackTotal?` (read-only) | `number` | The total of the stack the mark belongs to. |
|
|
1330
|
+
| `toValue?` (read-only) | `number` | The end value of a range bar or range area mark. |
|
|
1331
|
+
| `value?` (read-only) | `unknown` | The value of the mark. A `[from, to]` pair for range marks, the aggregate value for hierarchical marks, and the y value otherwise. |
|
|
1332
|
+
| `xValue?` (read-only) | `unknown` | The x value of the mark. |
|
|
1333
|
+
| `yValue?` (read-only) | `unknown` | The y value of the mark. |
|
|
1334
|
+
|
|
1335
|
+
#### `ChartDataLabelOptions`
|
|
1336
|
+
|
|
1337
|
+
| Name | Type | Description |
|
|
1338
|
+
| --- | --- | --- |
|
|
1339
|
+
| `allowOverlap?` | `boolean` | Whether labels may overlap other generic data labels. Default: false |
|
|
1340
|
+
| `collisionPadding?` | `number` | Collision padding around the label bounds. Default: 2 |
|
|
1341
|
+
| `color?` | `string` | Optional text color override. |
|
|
1342
|
+
| `formatter?` | `ChartDataLabelFormatter` | Optional semantic formatter. Returning null/undefined/"" suppresses that label. |
|
|
1343
|
+
| `maxLabels?` | `number` | Maximum accepted labels for this series. Default: 200 |
|
|
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" |
|
|
1347
|
+
|
|
1348
|
+
#### `ChartDownsamplingOptions`
|
|
1349
|
+
|
|
1350
|
+
| Name | Type |
|
|
1351
|
+
| --- | --- |
|
|
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` |
|
|
1357
|
+
|
|
1358
|
+
#### `ChartExportBaseOptions`
|
|
1359
|
+
|
|
1360
|
+
Shared base options for all chart export formats.
|
|
1361
|
+
|
|
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. |
|
|
1369
|
+
|
|
1370
|
+
#### `ChartExportPresentationOptions`
|
|
1371
|
+
|
|
1372
|
+
Options controlling which interactive/presentation elements are included in the export.
|
|
1373
|
+
|
|
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. |
|
|
1379
|
+
|
|
1380
|
+
#### `ChartExportResult`
|
|
1381
|
+
|
|
1382
|
+
Result of a chart export operation.
|
|
1383
|
+
|
|
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. |
|
|
1391
|
+
|
|
1392
|
+
#### `ChartLabelMeasurement`
|
|
1393
|
+
|
|
1394
|
+
| Name | Type |
|
|
1395
|
+
| --- | --- |
|
|
1396
|
+
| `height` | `number` |
|
|
1397
|
+
| `width` | `number` |
|
|
1398
|
+
|
|
1399
|
+
#### `ChartLegendItem`
|
|
1400
|
+
|
|
1401
|
+
| Name | Type |
|
|
1402
|
+
| --- | --- |
|
|
1403
|
+
| `color` (read-only) | `string` |
|
|
1404
|
+
| `dataIndex?` (read-only) | `number` |
|
|
1405
|
+
| `datum?` (read-only) | `unknown` |
|
|
1406
|
+
| `interactive?` (read-only) | `boolean` |
|
|
1407
|
+
| `itemId` (read-only) | `string` |
|
|
1408
|
+
| `kind?` (read-only) | `ChartLegendItemKind` |
|
|
1409
|
+
| `name` (read-only) | `string` |
|
|
1410
|
+
| `percentage?` (read-only) | `number` |
|
|
1411
|
+
| `secondaryColor?` (read-only) | `string` |
|
|
1412
|
+
| `seriesId` (read-only) | `string` |
|
|
1413
|
+
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
1414
|
+
| `value?` (read-only) | `number` |
|
|
1415
|
+
| `visible` (read-only) | `boolean` |
|
|
1416
|
+
|
|
1417
|
+
#### `ChartLegendItemTemplateContext`
|
|
1418
|
+
|
|
1419
|
+
| Name | Type |
|
|
1420
|
+
| --- | --- |
|
|
1421
|
+
| `$implicit` | `ChartLegendItem` |
|
|
1422
|
+
| `color` | `string` |
|
|
1423
|
+
| `dataIndex?` | `number` |
|
|
1424
|
+
| `datum?` | `unknown` |
|
|
1425
|
+
| `interactive?` | `boolean` |
|
|
1426
|
+
| `itemId` | `string` |
|
|
1427
|
+
| `kind?` | `ChartLegendItemKind` |
|
|
1428
|
+
| `name` | `string` |
|
|
1429
|
+
| `percentage?` | `number` |
|
|
1430
|
+
| `secondaryColor?` | `string` |
|
|
1431
|
+
| `series` | `ChartLegendItem` |
|
|
1432
|
+
| `seriesId` | `string` |
|
|
1433
|
+
| `seriesType` | `ChartSeriesType` |
|
|
1434
|
+
| `value?` | `number` |
|
|
1435
|
+
| `visible` | `boolean` |
|
|
1436
|
+
|
|
1437
|
+
#### `ChartNavigationOptions`
|
|
1438
|
+
|
|
1439
|
+
| Name | Type |
|
|
1440
|
+
| --- | --- |
|
|
1441
|
+
| `clampToData?` (read-only) | `boolean` |
|
|
1442
|
+
| `constraints?` (read-only) | `readonly ChartViewportConstraint[]` |
|
|
1443
|
+
| `dragPan?` (read-only) | `boolean` |
|
|
1444
|
+
| `keyboard?` (read-only) | `boolean` |
|
|
1445
|
+
| `keyboardPanRatio?` (read-only) | `number` |
|
|
1446
|
+
| `keyboardZoomFactor?` (read-only) | `number` |
|
|
1447
|
+
| `linkGroups?` (read-only) | `readonly ChartViewportLinkGroup[]` |
|
|
1448
|
+
| `minVisibleCategories?` (read-only) | `number` |
|
|
1449
|
+
| `pan?` (read-only) | `boolean` |
|
|
1450
|
+
| `panAxes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
1451
|
+
| `pinchZoom?` (read-only) | `boolean` |
|
|
1452
|
+
| `wheelSensitivity?` (read-only) | `number` |
|
|
1453
|
+
| `wheelZoom?` (read-only) | `boolean` |
|
|
1454
|
+
| `zoom?` (read-only) | `boolean` |
|
|
1455
|
+
| `zoomAxes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
1456
|
+
|
|
1457
|
+
#### `ChartPadding`
|
|
1458
|
+
|
|
1459
|
+
| Name | Type |
|
|
1460
|
+
| --- | --- |
|
|
1461
|
+
| `bottom` | `number` |
|
|
1462
|
+
| `left` | `number` |
|
|
1463
|
+
| `right` | `number` |
|
|
1464
|
+
| `top` | `number` |
|
|
1465
|
+
|
|
1466
|
+
#### `ChartPdfExportOptions`
|
|
1467
|
+
|
|
1468
|
+
Options for exporting a chart as a PDF document.
|
|
1469
|
+
|
|
1470
|
+
**Extends:** `ChartExportBaseOptions`
|
|
1471
|
+
|
|
1472
|
+
| Name | Type | Description |
|
|
1473
|
+
| --- | --- | --- |
|
|
1474
|
+
| `format` (read-only) | `"pdf"` | Selects export as a PDF document. |
|
|
1475
|
+
| `mode?` (read-only) | `ChartPdfRenderMode` | PDF rendering mode ("auto", "vector", or "raster"). Default: "auto". |
|
|
1476
|
+
| `page?` (read-only) | `ChartPdfPageOptions` | PDF page configuration. |
|
|
1477
|
+
|
|
1478
|
+
#### `ChartPdfMargins`
|
|
1479
|
+
|
|
1480
|
+
PDF page margins in PDF points (72 points = 1 inch).
|
|
1481
|
+
|
|
1482
|
+
| Name | Type |
|
|
1483
|
+
| --- | --- |
|
|
1484
|
+
| `bottom?` (read-only) | `number` |
|
|
1485
|
+
| `left?` (read-only) | `number` |
|
|
1486
|
+
| `right?` (read-only) | `number` |
|
|
1487
|
+
| `top?` (read-only) | `number` |
|
|
1488
|
+
|
|
1489
|
+
#### `ChartPdfPageOptions`
|
|
1490
|
+
|
|
1491
|
+
Page layout options for PDF export.
|
|
1492
|
+
|
|
1493
|
+
| Name | Type | Description |
|
|
1494
|
+
| --- | --- | --- |
|
|
1495
|
+
| `margin?` (read-only) | `number \| ChartPdfMargins` | Page margins in PDF points. Default: 0 for "chart" page size, 24 for standard pages if not specified. |
|
|
1496
|
+
| `orientation?` (read-only) | `"auto" \| "portrait" \| "landscape"` | Page orientation. Default: "auto" (derived from the chart aspect ratio). |
|
|
1497
|
+
| `size?` (read-only) | `ChartPdfPageSize` | Target page size. Default: "chart". |
|
|
1498
|
+
|
|
1499
|
+
#### `ChartPngExportOptions`
|
|
1500
|
+
|
|
1501
|
+
Options for exporting a chart as a PNG raster image.
|
|
1502
|
+
|
|
1503
|
+
**Extends:** `ChartExportBaseOptions`
|
|
1504
|
+
|
|
1505
|
+
| Name | Type | Description |
|
|
1506
|
+
| --- | --- | --- |
|
|
1507
|
+
| `format` (read-only) | `"png"` | Selects export as a PNG image. |
|
|
1508
|
+
| `pixelRatio?` (read-only) | `number` | Raster scaling ratio relative to logical CSS pixels. Default: 2. |
|
|
1509
|
+
|
|
1510
|
+
#### `ChartPoint`
|
|
1511
|
+
|
|
1512
|
+
| Name | Type |
|
|
1513
|
+
| --- | --- |
|
|
1514
|
+
| `x` | `number` |
|
|
1515
|
+
| `y` | `number` |
|
|
1516
|
+
|
|
1517
|
+
#### `ChartPointEvent`
|
|
1518
|
+
|
|
1519
|
+
**Type parameters:** `T = unknown`
|
|
1520
|
+
|
|
1521
|
+
| Name | Type |
|
|
1522
|
+
| --- | --- |
|
|
1523
|
+
| `category?` (read-only) | `unknown` |
|
|
1524
|
+
| `categoryX?` (read-only) | `string` |
|
|
1525
|
+
| `categoryY?` (read-only) | `string` |
|
|
1526
|
+
| `change?` (read-only) | `number` |
|
|
1527
|
+
| `changePercentage?` (read-only) | `number` |
|
|
1528
|
+
| `close?` (read-only) | `number` |
|
|
1529
|
+
| `dataIndex` (read-only) | `number` |
|
|
1530
|
+
| `datum` (read-only) | `T` |
|
|
1531
|
+
| `financial?` (read-only) | `ChartOhlcPointValue` |
|
|
1532
|
+
| `financialDirection?` (read-only) | `ChartFinancialDirection` |
|
|
1533
|
+
| `formattedChange?` (read-only) | `string` |
|
|
1534
|
+
| `formattedChangePercentage?` (read-only) | `string` |
|
|
1535
|
+
| `formattedClose?` (read-only) | `string` |
|
|
1536
|
+
| `formattedFrom?` (read-only) | `string` |
|
|
1537
|
+
| `formattedHigh?` (read-only) | `string` |
|
|
1538
|
+
| `formattedLow?` (read-only) | `string` |
|
|
1539
|
+
| `formattedOpen?` (read-only) | `string` |
|
|
1540
|
+
| `formattedTo?` (read-only) | `string` |
|
|
1541
|
+
| `formattedXValue?` (read-only) | `string` |
|
|
1542
|
+
| `formattedYCategory?` (read-only) | `string` |
|
|
1543
|
+
| `fromValue?` (read-only) | `number` |
|
|
1544
|
+
| `funnel?` (read-only) | `ChartFunnelPointMetadata` |
|
|
1545
|
+
| `hierarchy?` (read-only) | `ChartHierarchyPointMetadata` |
|
|
1546
|
+
| `high?` (read-only) | `number` |
|
|
1547
|
+
| `low?` (read-only) | `number` |
|
|
1548
|
+
| `markId?` (read-only) | `string` |
|
|
1549
|
+
| `open?` (read-only) | `number` |
|
|
1550
|
+
| `percentage?` (read-only) | `number` |
|
|
1551
|
+
| `rawValue?` (read-only) | `unknown` |
|
|
1552
|
+
| `seriesId` (read-only) | `string` |
|
|
1553
|
+
| `seriesName` (read-only) | `string` |
|
|
1554
|
+
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
1555
|
+
| `sizeValue?` (read-only) | `number` |
|
|
1556
|
+
| `sliceId?` (read-only) | `string` |
|
|
1557
|
+
| `stackEnd?` (read-only) | `number` |
|
|
1558
|
+
| `stackGroup?` (read-only) | `string` |
|
|
1559
|
+
| `stackMode?` (read-only) | `ChartStackMode` |
|
|
1560
|
+
| `stackPercentage?` (read-only) | `number` |
|
|
1561
|
+
| `stackPosition?` (read-only) | `"inner" \| "outer" \| "single"` |
|
|
1562
|
+
| `stackStart?` (read-only) | `number` |
|
|
1563
|
+
| `stackTotal?` (read-only) | `number` |
|
|
1564
|
+
| `toValue?` (read-only) | `number` |
|
|
1565
|
+
| `value?` (read-only) | `unknown` |
|
|
1566
|
+
| `valueKind?` (read-only) | `ChartPointValueKind` |
|
|
1567
|
+
| `waterfall?` (read-only) | `ChartWaterfallPointValue` |
|
|
1568
|
+
| `xAxisId?` (read-only) | `string` |
|
|
1569
|
+
| `xAxisTitle?` (read-only) | `string` |
|
|
1570
|
+
| `xValue` (read-only) | `unknown` |
|
|
1571
|
+
| `yAxisId?` (read-only) | `string` |
|
|
1572
|
+
| `yAxisTitle?` (read-only) | `string` |
|
|
1573
|
+
| `yCategory?` (read-only) | `unknown` |
|
|
1574
|
+
| `yValue?` (read-only) | `number` |
|
|
1575
|
+
|
|
1576
|
+
#### `ChartPointFocusEvent`
|
|
1577
|
+
|
|
1578
|
+
**Type parameters:** `T = unknown`
|
|
1579
|
+
|
|
1580
|
+
| Name | Type |
|
|
1581
|
+
| --- | --- |
|
|
1582
|
+
| `category?` (read-only) | `unknown` |
|
|
1583
|
+
| `categoryX?` (read-only) | `string` |
|
|
1584
|
+
| `categoryY?` (read-only) | `string` |
|
|
1585
|
+
| `change?` (read-only) | `number` |
|
|
1586
|
+
| `changePercentage?` (read-only) | `number` |
|
|
1587
|
+
| `close?` (read-only) | `number` |
|
|
1588
|
+
| `dataIndex` (read-only) | `number` |
|
|
1589
|
+
| `datum` (read-only) | `T` |
|
|
1590
|
+
| `financial?` (read-only) | `ChartOhlcPointValue` |
|
|
1591
|
+
| `financialDirection?` (read-only) | `ChartFinancialDirection` |
|
|
1592
|
+
| `formattedChange?` (read-only) | `string` |
|
|
1593
|
+
| `formattedChangePercentage?` (read-only) | `string` |
|
|
1594
|
+
| `formattedClose?` (read-only) | `string` |
|
|
1595
|
+
| `formattedFrom?` (read-only) | `string` |
|
|
1596
|
+
| `formattedHigh?` (read-only) | `string` |
|
|
1597
|
+
| `formattedLow?` (read-only) | `string` |
|
|
1598
|
+
| `formattedOpen?` (read-only) | `string` |
|
|
1599
|
+
| `formattedTo?` (read-only) | `string` |
|
|
1600
|
+
| `formattedXValue?` (read-only) | `string` |
|
|
1601
|
+
| `formattedYCategory?` (read-only) | `string` |
|
|
1602
|
+
| `fromValue?` (read-only) | `number` |
|
|
1603
|
+
| `funnel?` (read-only) | `ChartFunnelPointMetadata` |
|
|
1604
|
+
| `hierarchy?` (read-only) | `ChartHierarchyPointMetadata` |
|
|
1605
|
+
| `high?` (read-only) | `number` |
|
|
1606
|
+
| `low?` (read-only) | `number` |
|
|
1607
|
+
| `markId?` (read-only) | `string` |
|
|
1608
|
+
| `open?` (read-only) | `number` |
|
|
1609
|
+
| `percentage?` (read-only) | `number` |
|
|
1610
|
+
| `rawValue?` (read-only) | `unknown` |
|
|
1611
|
+
| `seriesId` (read-only) | `string` |
|
|
1612
|
+
| `seriesName` (read-only) | `string` |
|
|
1613
|
+
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
1614
|
+
| `sizeValue?` (read-only) | `number` |
|
|
1615
|
+
| `sliceId?` (read-only) | `string` |
|
|
1616
|
+
| `stackEnd?` (read-only) | `number` |
|
|
1617
|
+
| `stackGroup?` (read-only) | `string` |
|
|
1618
|
+
| `stackMode?` (read-only) | `ChartStackMode` |
|
|
1619
|
+
| `stackPercentage?` (read-only) | `number` |
|
|
1620
|
+
| `stackPosition?` (read-only) | `"inner" \| "outer" \| "single"` |
|
|
1621
|
+
| `stackStart?` (read-only) | `number` |
|
|
1622
|
+
| `stackTotal?` (read-only) | `number` |
|
|
1623
|
+
| `toValue?` (read-only) | `number` |
|
|
1624
|
+
| `value?` (read-only) | `unknown` |
|
|
1625
|
+
| `valueKind?` (read-only) | `ChartPointValueKind` |
|
|
1626
|
+
| `waterfall?` (read-only) | `ChartWaterfallPointValue` |
|
|
1627
|
+
| `xAxisId?` (read-only) | `string` |
|
|
1628
|
+
| `xAxisTitle?` (read-only) | `string` |
|
|
1629
|
+
| `xValue` (read-only) | `unknown` |
|
|
1630
|
+
| `yAxisId?` (read-only) | `string` |
|
|
1631
|
+
| `yAxisTitle?` (read-only) | `string` |
|
|
1632
|
+
| `yCategory?` (read-only) | `unknown` |
|
|
1633
|
+
| `yValue?` (read-only) | `number` |
|
|
1634
|
+
|
|
1635
|
+
#### `ChartRangePointValue`
|
|
1636
|
+
|
|
1637
|
+
| Name | Type |
|
|
1638
|
+
| --- | --- |
|
|
1639
|
+
| `formattedFrom` (read-only) | `string` |
|
|
1640
|
+
| `formattedTo` (read-only) | `string` |
|
|
1641
|
+
| `fromValue` (read-only) | `number` |
|
|
1642
|
+
| `toValue` (read-only) | `number` |
|
|
1643
|
+
| `valueKind` (read-only) | `"range"` |
|
|
1644
|
+
|
|
1645
|
+
#### `ChartRect`
|
|
1646
|
+
|
|
1647
|
+
| Name | Type |
|
|
1648
|
+
| --- | --- |
|
|
1649
|
+
| `height` | `number` |
|
|
1650
|
+
| `width` | `number` |
|
|
1651
|
+
| `x` | `number` |
|
|
1652
|
+
| `y` | `number` |
|
|
1653
|
+
|
|
1654
|
+
#### `ChartReferenceBandLabelContext`
|
|
1655
|
+
|
|
1656
|
+
**Type parameters:** `TFrom extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`, `TTo extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`
|
|
1657
|
+
|
|
1658
|
+
| Name | Type |
|
|
1659
|
+
| --- | --- |
|
|
1660
|
+
| `$implicit` (read-only) | `{ readonly from: TFrom; readonly to: TTo }` |
|
|
1661
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
1662
|
+
| `axisId` (read-only) | `string` |
|
|
1663
|
+
| `bounds` (read-only) | `ChartRect` |
|
|
1664
|
+
| `coordinate?` (read-only) | `undefined` |
|
|
1665
|
+
| `formattedFrom` (read-only) | `string` |
|
|
1666
|
+
| `formattedTo` (read-only) | `string` |
|
|
1667
|
+
| `formattedValue?` (read-only) | `undefined` |
|
|
1668
|
+
| `from` (read-only) | `TFrom` |
|
|
1669
|
+
| `kind` (read-only) | `"band"` |
|
|
1670
|
+
| `to` (read-only) | `TTo` |
|
|
1671
|
+
| `value?` (read-only) | `undefined` |
|
|
1672
|
+
|
|
1673
|
+
#### `ChartReferenceLineLabelContext`
|
|
1674
|
+
|
|
1675
|
+
**Type parameters:** `T extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`
|
|
1676
|
+
|
|
1677
|
+
| Name | Type |
|
|
1678
|
+
| --- | --- |
|
|
1679
|
+
| `$implicit` (read-only) | `T` |
|
|
1680
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
1681
|
+
| `axisId` (read-only) | `string` |
|
|
1682
|
+
| `bounds?` (read-only) | `undefined` |
|
|
1683
|
+
| `coordinate` (read-only) | `number` |
|
|
1684
|
+
| `formattedFrom?` (read-only) | `undefined` |
|
|
1685
|
+
| `formattedTo?` (read-only) | `undefined` |
|
|
1686
|
+
| `formattedValue` (read-only) | `string` |
|
|
1687
|
+
| `from?` (read-only) | `undefined` |
|
|
1688
|
+
| `kind` (read-only) | `"line"` |
|
|
1689
|
+
| `to?` (read-only) | `undefined` |
|
|
1690
|
+
| `value` (read-only) | `T` |
|
|
1691
|
+
|
|
1692
|
+
#### `ChartScalarPointValue`
|
|
1693
|
+
|
|
1694
|
+
| Name | Type |
|
|
1695
|
+
| --- | --- |
|
|
1696
|
+
| `valueKind` (read-only) | `"scalar"` |
|
|
1697
|
+
| `yValue` (read-only) | `number` |
|
|
1698
|
+
|
|
1699
|
+
#### `ChartSelectedPoint`
|
|
1700
|
+
|
|
1701
|
+
**Type parameters:** `T = unknown`
|
|
1702
|
+
|
|
1703
|
+
| Name | Type |
|
|
1704
|
+
| --- | --- |
|
|
1705
|
+
| `close?` (read-only) | `number` |
|
|
1706
|
+
| `dataIndex` (read-only) | `number` |
|
|
1707
|
+
| `datum` (read-only) | `T` |
|
|
1708
|
+
| `fromValue?` (read-only) | `number` |
|
|
1709
|
+
| `high?` (read-only) | `number` |
|
|
1710
|
+
| `low?` (read-only) | `number` |
|
|
1711
|
+
| `markId` (read-only) | `string` |
|
|
1712
|
+
| `open?` (read-only) | `number` |
|
|
1713
|
+
| `rawValue?` (read-only) | `unknown` |
|
|
1714
|
+
| `seriesId` (read-only) | `string` |
|
|
1715
|
+
| `seriesName` (read-only) | `string` |
|
|
1716
|
+
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
1717
|
+
| `stackEnd?` (read-only) | `number` |
|
|
1718
|
+
| `stackPercentage?` (read-only) | `number` |
|
|
1719
|
+
| `stackStart?` (read-only) | `number` |
|
|
1720
|
+
| `toValue?` (read-only) | `number` |
|
|
1721
|
+
| `value?` (read-only) | `unknown` |
|
|
1722
|
+
| `xValue?` (read-only) | `unknown` |
|
|
1723
|
+
| `yValue?` (read-only) | `unknown` |
|
|
1724
|
+
|
|
1725
|
+
#### `ChartSelectionChangeEvent`
|
|
1726
|
+
|
|
1727
|
+
**Type parameters:** `T = unknown`
|
|
1728
|
+
|
|
1729
|
+
| Name | Type |
|
|
1730
|
+
| --- | --- |
|
|
1731
|
+
| `addedMarkIds` (read-only) | `readonly string[]` |
|
|
1732
|
+
| `changedPoints` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
1733
|
+
| `previousSelectedMarkIds` (read-only) | `readonly string[]` |
|
|
1734
|
+
| `removedMarkIds` (read-only) | `readonly string[]` |
|
|
1735
|
+
| `selectedMarkIds` (read-only) | `readonly string[]` |
|
|
1736
|
+
| `source` (read-only) | `ChartSelectionChangeSource` |
|
|
1737
|
+
| `visibleSelectedPoints` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
1738
|
+
|
|
1739
|
+
#### `ChartSeriesStyle`
|
|
1740
|
+
|
|
1741
|
+
| Name | Type |
|
|
1742
|
+
| --- | --- |
|
|
1743
|
+
| `areaFillColor` | `string` |
|
|
1744
|
+
| `areaFillOpacity` | `number` |
|
|
1745
|
+
| `color` | `string` |
|
|
1746
|
+
| `fillOpacity` | `number` |
|
|
1747
|
+
| `lineStyle?` | `ChartLineStyle` |
|
|
1748
|
+
| `lineWidth` | `number` |
|
|
1749
|
+
| `opacity` | `number` |
|
|
1750
|
+
| `pointRadius` | `number` |
|
|
1751
|
+
|
|
1752
|
+
#### `ChartSeriesVisibilityEvent`
|
|
1753
|
+
|
|
1754
|
+
| Name | Type |
|
|
1755
|
+
| --- | --- |
|
|
1756
|
+
| `seriesId` (read-only) | `string` |
|
|
1757
|
+
| `seriesName` (read-only) | `string` |
|
|
1758
|
+
| `visible` (read-only) | `boolean` |
|
|
1759
|
+
|
|
1760
|
+
#### `ChartSize`
|
|
1761
|
+
|
|
1762
|
+
| Name | Type |
|
|
1763
|
+
| --- | --- |
|
|
1764
|
+
| `height` | `number` |
|
|
1765
|
+
| `width` | `number` |
|
|
1766
|
+
|
|
1767
|
+
#### `ChartSubtitleTemplateContext`
|
|
1768
|
+
|
|
1769
|
+
| Name | Type |
|
|
1770
|
+
| --- | --- |
|
|
1771
|
+
| `$implicit` (read-only) | `string` |
|
|
1772
|
+
| `subtitle` (read-only) | `string` |
|
|
1773
|
+
|
|
1774
|
+
#### `ChartSvgExportOptions`
|
|
1775
|
+
|
|
1776
|
+
Options for exporting a chart as a standalone SVG vector document.
|
|
1777
|
+
|
|
1778
|
+
**Extends:** `ChartExportBaseOptions`
|
|
1779
|
+
|
|
1780
|
+
| Name | Type | Description |
|
|
1781
|
+
| --- | --- | --- |
|
|
1782
|
+
| `accessibility?` (read-only) | `boolean` | Whether to include accessibility metadata (<title>, <desc>, and ARIA attributes). Default: true. |
|
|
1783
|
+
| `format` (read-only) | `"svg"` | Selects export as a SVG document. |
|
|
1784
|
+
|
|
1785
|
+
#### `ChartSynchronizationAxisMapping`
|
|
1786
|
+
|
|
1787
|
+
| Name | Type |
|
|
1788
|
+
| --- | --- |
|
|
1789
|
+
| `source` (read-only) | `ChartViewportAxisRef` |
|
|
1790
|
+
| `target` (read-only) | `ChartViewportAxisRef` |
|
|
1791
|
+
|
|
1792
|
+
#### `ChartSynchronizationOptions`
|
|
1793
|
+
|
|
1794
|
+
| Name | Type |
|
|
1795
|
+
| --- | --- |
|
|
1796
|
+
| `axisMappings?` (read-only) | `readonly ChartSynchronizationAxisMapping[]` |
|
|
1797
|
+
| `crosshair?` (read-only) | `boolean \| ChartCrosshairSynchronizationOptions` |
|
|
1798
|
+
| `group` (read-only) | `string` |
|
|
1799
|
+
| `viewport?` (read-only) | `boolean \| ChartViewportSynchronizationOptions` |
|
|
1800
|
+
|
|
1801
|
+
#### `ChartTitleTemplateContext`
|
|
1802
|
+
|
|
1803
|
+
| Name | Type |
|
|
1804
|
+
| --- | --- |
|
|
1805
|
+
| `$implicit` (read-only) | `string` |
|
|
1806
|
+
| `title` (read-only) | `string` |
|
|
1807
|
+
|
|
1808
|
+
#### `ChartTooltipPointContext`
|
|
1809
|
+
|
|
1810
|
+
**Type parameters:** `T = unknown`
|
|
1811
|
+
|
|
1812
|
+
| Name | Type |
|
|
1813
|
+
| --- | --- |
|
|
1814
|
+
| `category?` | `unknown` |
|
|
1815
|
+
| `categoryX?` | `string` |
|
|
1816
|
+
| `categoryY?` | `string` |
|
|
1817
|
+
| `change?` | `number` |
|
|
1818
|
+
| `changePercentage?` | `number` |
|
|
1819
|
+
| `close?` | `number` |
|
|
1820
|
+
| `color` | `string` |
|
|
1821
|
+
| `dataIndex` | `number` |
|
|
1822
|
+
| `datum` | `T` |
|
|
1823
|
+
| `financial?` | `ChartOhlcPointValue` |
|
|
1824
|
+
| `financialDirection?` | `ChartFinancialDirection` |
|
|
1825
|
+
| `formattedCategory?` | `string` |
|
|
1826
|
+
| `formattedChange?` | `string` |
|
|
1827
|
+
| `formattedChangePercentage?` | `string` |
|
|
1828
|
+
| `formattedClose?` | `string` |
|
|
1829
|
+
| `formattedFrom?` | `string` |
|
|
1830
|
+
| `formattedHigh?` | `string` |
|
|
1831
|
+
| `formattedLow?` | `string` |
|
|
1832
|
+
| `formattedOpen?` | `string` |
|
|
1833
|
+
| `formattedPercentage?` | `string` |
|
|
1834
|
+
| `formattedRadialMax?` | `string` |
|
|
1835
|
+
| `formattedRadialMin?` | `string` |
|
|
1836
|
+
| `formattedSize?` | `string` |
|
|
1837
|
+
| `formattedStackPercentage?` | `string` |
|
|
1838
|
+
| `formattedStackTotal?` | `string` |
|
|
1839
|
+
| `formattedTo?` | `string` |
|
|
1840
|
+
| `formattedX` | `string` |
|
|
1841
|
+
| `formattedXValue?` | `string` |
|
|
1842
|
+
| `formattedY` | `string` |
|
|
1843
|
+
| `formattedYCategory?` | `string` |
|
|
1844
|
+
| `fromValue?` | `number` |
|
|
1845
|
+
| `funnel?` | `ChartFunnelPointMetadata` |
|
|
1846
|
+
| `hierarchy?` | `ChartHierarchyPointMetadata` |
|
|
1847
|
+
| `high?` | `number` |
|
|
1848
|
+
| `isClamped?` | `boolean` |
|
|
1849
|
+
| `low?` | `number` |
|
|
1850
|
+
| `markId` | `string` |
|
|
1851
|
+
| `open?` | `number` |
|
|
1852
|
+
| `percentage?` | `number` |
|
|
1853
|
+
| `radialMax?` | `number` |
|
|
1854
|
+
| `radialMin?` | `number` |
|
|
1855
|
+
| `radialRatio?` | `number` |
|
|
1856
|
+
| `rawValue?` | `unknown` |
|
|
1857
|
+
| `seriesId` | `string` |
|
|
1858
|
+
| `seriesName` | `string` |
|
|
1859
|
+
| `seriesType` | `ChartSeriesType` |
|
|
1860
|
+
| `sizeValue?` | `number` |
|
|
1861
|
+
| `sliceId?` | `string` |
|
|
1862
|
+
| `stackEnd?` | `number` |
|
|
1863
|
+
| `stackGroup?` | `string` |
|
|
1864
|
+
| `stackMode?` | `ChartStackMode` |
|
|
1865
|
+
| `stackPercentage?` | `number` |
|
|
1866
|
+
| `stackPosition?` | `"inner" \| "outer" \| "single"` |
|
|
1867
|
+
| `stackStart?` | `number` |
|
|
1868
|
+
| `stackTotal?` | `number` |
|
|
1869
|
+
| `toValue?` | `number` |
|
|
1870
|
+
| `value?` | `unknown` |
|
|
1871
|
+
| `valueKind?` | `ChartPointValueKind` |
|
|
1872
|
+
| `waterfall?` | `ChartWaterfallPointValue` |
|
|
1873
|
+
| `xAxisId?` | `string` |
|
|
1874
|
+
| `xAxisTitle?` | `string` |
|
|
1875
|
+
| `xValue` | `unknown` |
|
|
1876
|
+
| `yAxisId?` | `string` |
|
|
1877
|
+
| `yAxisTitle?` | `string` |
|
|
1878
|
+
| `yCategory?` | `unknown` |
|
|
1879
|
+
| `yValue?` | `number` |
|
|
1880
|
+
|
|
1881
|
+
#### `ChartTooltipTemplateContext`
|
|
1882
|
+
|
|
1883
|
+
**Type parameters:** `T = unknown`
|
|
1884
|
+
|
|
1885
|
+
| Name | Type |
|
|
1886
|
+
| --- | --- |
|
|
1887
|
+
| `$implicit` | `ChartTooltipPointContext<T>` |
|
|
1888
|
+
| `point` | `ChartTooltipPointContext<T>` |
|
|
1889
|
+
| `points` | `readonly ChartTooltipPointContext<T>[]` |
|
|
1890
|
+
| `series` | `readonly string[]` |
|
|
1891
|
+
| `shared` | `boolean` |
|
|
1892
|
+
|
|
1893
|
+
#### `ChartViewportAxisRef`
|
|
1894
|
+
|
|
1895
|
+
| Name | Type |
|
|
1896
|
+
| --- | --- |
|
|
1897
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
1898
|
+
| `axisId` (read-only) | `string` |
|
|
1899
|
+
|
|
1900
|
+
#### `ChartViewportChangeEvent`
|
|
1901
|
+
|
|
1902
|
+
| Name | Type |
|
|
1903
|
+
| --- | --- |
|
|
1904
|
+
| `changedAxes` (read-only) | `readonly ChartViewportAxisRef[]` |
|
|
1905
|
+
| `phase` (read-only) | `ChartViewportChangePhase` |
|
|
1906
|
+
| `previousViewport` (read-only) | `ChartViewportState` |
|
|
1907
|
+
| `source` (read-only) | `ChartViewportChangeSource` |
|
|
1908
|
+
| `viewport` (read-only) | `ChartViewportState` |
|
|
1909
|
+
|
|
1910
|
+
#### `ChartViewportConstraint`
|
|
1911
|
+
|
|
1912
|
+
**Extends:** `ChartViewportAxisRef`
|
|
1913
|
+
|
|
1914
|
+
| Name | Type |
|
|
1915
|
+
| --- | --- |
|
|
1916
|
+
| `maxSpan?` (read-only) | `number` |
|
|
1917
|
+
| `maxVisibleCategories?` (read-only) | `number` |
|
|
1918
|
+
| `maxZoom?` (read-only) | `number` |
|
|
1919
|
+
| `minSpan?` (read-only) | `number` |
|
|
1920
|
+
| `minVisibleCategories?` (read-only) | `number` |
|
|
1921
|
+
|
|
1922
|
+
#### `ChartViewportLinkGroup`
|
|
1923
|
+
|
|
1924
|
+
| Name | Type |
|
|
1925
|
+
| --- | --- |
|
|
1926
|
+
| `axes` (read-only) | `readonly ChartViewportAxisRef[]` |
|
|
1927
|
+
| `id` (read-only) | `string` |
|
|
1928
|
+
| `mode` (read-only) | `ChartViewportLinkMode` |
|
|
1929
|
+
|
|
1930
|
+
#### `ChartViewportState`
|
|
1931
|
+
|
|
1932
|
+
| Name | Type |
|
|
1933
|
+
| --- | --- |
|
|
1934
|
+
| `axes` (read-only) | `readonly ChartViewportWindow[]` |
|
|
1935
|
+
|
|
1936
|
+
#### `ChartViewportSynchronizationOptions`
|
|
1937
|
+
|
|
1938
|
+
| Name | Type |
|
|
1939
|
+
| --- | --- |
|
|
1940
|
+
| `axes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
1941
|
+
| `enabled?` (read-only) | `boolean` |
|
|
1942
|
+
| `mode?` (read-only) | `ChartSynchronizationMode` |
|
|
1943
|
+
| `phase?` (read-only) | `"continuous" \| "end"` |
|
|
1944
|
+
|
|
1945
|
+
#### `ChartAnimationEasing`
|
|
1946
|
+
|
|
1947
|
+
```typescript
|
|
1948
|
+
type ChartAnimationEasing = "linear" | "ease-in" | "ease-out" | "ease-in-out";
|
|
1949
|
+
```
|
|
1950
|
+
|
|
1951
|
+
#### `ChartAnimationInput`
|
|
1952
|
+
|
|
1953
|
+
```typescript
|
|
1954
|
+
type ChartAnimationInput = boolean | ChartAnimationOptions;
|
|
1955
|
+
```
|
|
1956
|
+
|
|
1957
|
+
#### `ChartAnnotationAxisValue`
|
|
1958
|
+
|
|
1959
|
+
```typescript
|
|
1960
|
+
type ChartAnnotationAxisValue = Date | number | string;
|
|
1961
|
+
```
|
|
1962
|
+
|
|
1963
|
+
#### `ChartAnnotationLabelPlacement`
|
|
1964
|
+
|
|
1965
|
+
```typescript
|
|
1966
|
+
type ChartAnnotationLabelPlacement = "bottom" | "left" | "right" | "top";
|
|
1967
|
+
```
|
|
1968
|
+
|
|
1969
|
+
#### `ChartAnnotationMarker`
|
|
1970
|
+
|
|
1971
|
+
```typescript
|
|
1972
|
+
type ChartAnnotationMarker = "circle" | "diamond" | "none";
|
|
1973
|
+
```
|
|
1974
|
+
|
|
1975
|
+
#### `ChartAxisFormatter`
|
|
1976
|
+
|
|
1977
|
+
```typescript
|
|
1978
|
+
type ChartAxisFormatter<T = unknown> = (value: T, index: number) => string;
|
|
1979
|
+
```
|
|
1980
|
+
|
|
1981
|
+
#### `ChartAxisLabelRotation`
|
|
1982
|
+
|
|
1983
|
+
```typescript
|
|
1984
|
+
type ChartAxisLabelRotation = "auto" | number;
|
|
1985
|
+
```
|
|
1986
|
+
|
|
1987
|
+
#### `ChartAxisPosition`
|
|
1988
|
+
|
|
1989
|
+
```typescript
|
|
1990
|
+
type ChartAxisPosition = ChartXAxisPosition | ChartYAxisSide;
|
|
1991
|
+
```
|
|
1992
|
+
|
|
1993
|
+
#### `ChartBrushActivation`
|
|
1994
|
+
|
|
1995
|
+
```typescript
|
|
1996
|
+
type ChartBrushActivation = "drag" | "shift-drag";
|
|
1997
|
+
```
|
|
1998
|
+
|
|
1999
|
+
#### `ChartBrushAxisRange`
|
|
2000
|
+
|
|
2001
|
+
```typescript
|
|
2002
|
+
type ChartBrushAxisRange = ChartBrushCategoryRange | ChartBrushContinuousRange;
|
|
2003
|
+
```
|
|
2004
|
+
|
|
2005
|
+
#### `ChartBrushCancelReason`
|
|
2006
|
+
|
|
2007
|
+
```typescript
|
|
2008
|
+
type ChartBrushCancelReason = | "authority-change" | "component-disabled" | "data-change" | "destroyed" | "disabled" | "escape" | "lost-pointer-capture" | "pointer-cancel" | "pointer-leave" | "viewport-change";
|
|
2009
|
+
```
|
|
2010
|
+
|
|
2011
|
+
#### `ChartBrushHitPolicy`
|
|
2012
|
+
|
|
2013
|
+
```typescript
|
|
2014
|
+
type ChartBrushHitPolicy = "center" | "intersect";
|
|
2015
|
+
```
|
|
2016
|
+
|
|
2017
|
+
#### `ChartBrushLineStyle`
|
|
2018
|
+
|
|
2019
|
+
```typescript
|
|
2020
|
+
type ChartBrushLineStyle = "solid" | "dashed" | "dotted";
|
|
2021
|
+
```
|
|
2022
|
+
|
|
2023
|
+
#### `ChartBrushMode`
|
|
2024
|
+
|
|
2025
|
+
```typescript
|
|
2026
|
+
type ChartBrushMode = "x" | "y" | "xy";
|
|
2027
|
+
```
|
|
2028
|
+
|
|
2029
|
+
#### `ChartBrushPhase`
|
|
2030
|
+
|
|
2031
|
+
```typescript
|
|
2032
|
+
type ChartBrushPhase = "start" | "update" | "end" | "cancel";
|
|
2033
|
+
```
|
|
2034
|
+
|
|
2035
|
+
#### `ChartBrushSelectionBehavior`
|
|
2036
|
+
|
|
2037
|
+
```typescript
|
|
2038
|
+
type ChartBrushSelectionBehavior = "none" | "replace" | "add" | "remove" | "toggle";
|
|
2039
|
+
```
|
|
2040
|
+
|
|
2041
|
+
#### `ChartCoordinateSystem`
|
|
2042
|
+
|
|
2043
|
+
```typescript
|
|
2044
|
+
type ChartCoordinateSystem = "cartesian" | "hierarchical" | "polar";
|
|
2045
|
+
```
|
|
2046
|
+
|
|
2047
|
+
#### `ChartCrosshairLineStyle`
|
|
2048
|
+
|
|
2049
|
+
```typescript
|
|
2050
|
+
type ChartCrosshairLineStyle = "dashed" | "dotted" | "solid";
|
|
2051
|
+
```
|
|
2052
|
+
|
|
2053
|
+
#### `ChartCrosshairMode`
|
|
2054
|
+
|
|
2055
|
+
```typescript
|
|
2056
|
+
type ChartCrosshairMode = "auto" | "x" | "xy" | "y";
|
|
2057
|
+
```
|
|
2058
|
+
|
|
2059
|
+
#### `ChartCrosshairSnapMode`
|
|
2060
|
+
|
|
2061
|
+
```typescript
|
|
2062
|
+
type ChartCrosshairSnapMode = "nearest" | "pointer";
|
|
2063
|
+
```
|
|
2064
|
+
|
|
2065
|
+
#### `ChartDataLabelFormatter`
|
|
2066
|
+
|
|
2067
|
+
```typescript
|
|
2068
|
+
type ChartDataLabelFormatter<T = unknown> = (context: ChartDataLabelContext<T>) => string | null | undefined;
|
|
2069
|
+
```
|
|
2070
|
+
|
|
2071
|
+
#### `ChartDataLabelPosition`
|
|
2072
|
+
|
|
2073
|
+
```typescript
|
|
2074
|
+
type ChartDataLabelPosition = | "auto" | "top" | "bottom" | "left" | "right" | "center" | "inside-start" | "inside-center" | "inside-end" | "outside-start" | "outside-end";
|
|
2075
|
+
```
|
|
2076
|
+
|
|
2077
|
+
#### `ChartDataLabelsInput`
|
|
2078
|
+
|
|
2079
|
+
```typescript
|
|
2080
|
+
type ChartDataLabelsInput = boolean | ChartDataLabelOptions;
|
|
2081
|
+
```
|
|
2082
|
+
|
|
2083
|
+
#### `ChartDownloadOptions`
|
|
2084
|
+
|
|
2085
|
+
Options for downloading a chart export.
|
|
2086
|
+
|
|
2087
|
+
```typescript
|
|
2088
|
+
type ChartDownloadOptions = ChartExportOptions & { readonly fileName?: string; };
|
|
2089
|
+
```
|
|
2090
|
+
|
|
2091
|
+
#### `ChartDownsamplingAlgorithm`
|
|
2092
|
+
|
|
2093
|
+
```typescript
|
|
2094
|
+
type ChartDownsamplingAlgorithm = "auto" | "lttb" | "minmax" | "pixel";
|
|
2095
|
+
```
|
|
2096
|
+
|
|
2097
|
+
#### `ChartDownsamplingInput`
|
|
2098
|
+
|
|
2099
|
+
```typescript
|
|
2100
|
+
type ChartDownsamplingInput = boolean | ChartDownsamplingOptions;
|
|
2101
|
+
```
|
|
2102
|
+
|
|
2103
|
+
#### `ChartExportBackground`
|
|
2104
|
+
|
|
2105
|
+
Chart export background policy.
|
|
2106
|
+
- "auto": Resolves the effective chart background color from the chart container/theme.
|
|
2107
|
+
- "transparent": Creates a transparent background.
|
|
2108
|
+
- CSS color string: Uses an explicit background color.
|
|
2109
|
+
|
|
2110
|
+
```typescript
|
|
2111
|
+
type ChartExportBackground = "auto" | "transparent" | string;
|
|
2112
|
+
```
|
|
2113
|
+
|
|
2114
|
+
#### `ChartExportErrorCode`
|
|
2115
|
+
|
|
2116
|
+
Error code identifying the cause of a chart export failure.
|
|
2117
|
+
|
|
2118
|
+
```typescript
|
|
2119
|
+
type ChartExportErrorCode = | "not-ready" | "unsupported-environment" | "unsupported-template" | "invalid-size" | "too-large" | "resource-load-failed" | "template-rasterization-failed" | "svg-composition-failed" | "svg-serialization-failed" | "png-rasterization-failed" | "pdf-vector-unsupported" | "pdf-generation-failed";
|
|
2120
|
+
```
|
|
2121
|
+
|
|
2122
|
+
#### `ChartExportFormat`
|
|
2123
|
+
|
|
2124
|
+
Supported chart export formats.
|
|
2125
|
+
|
|
2126
|
+
```typescript
|
|
2127
|
+
type ChartExportFormat = "png" | "svg" | "pdf";
|
|
2128
|
+
```
|
|
2129
|
+
|
|
2130
|
+
#### `ChartExportOptions`
|
|
2131
|
+
|
|
2132
|
+
Discriminated union of chart export options.
|
|
2133
|
+
|
|
2134
|
+
```typescript
|
|
2135
|
+
type ChartExportOptions = ChartPngExportOptions | ChartSvgExportOptions | ChartPdfExportOptions;
|
|
2136
|
+
```
|
|
2137
|
+
|
|
2138
|
+
#### `ChartField`
|
|
2139
|
+
|
|
2140
|
+
```typescript
|
|
2141
|
+
type ChartField<T = any, TResult = unknown> = string | ChartValueAccessor<T, TResult>;
|
|
2142
|
+
```
|
|
2143
|
+
|
|
2144
|
+
#### `ChartHeaderAlignment`
|
|
2145
|
+
|
|
2146
|
+
How the title and subtitle align: `start` and `end` follow the direction, `left` and `right` don't.
|
|
2147
|
+
|
|
2148
|
+
```typescript
|
|
2149
|
+
type ChartHeaderAlignment = "center" | "end" | "left" | "right" | "start";
|
|
2150
|
+
```
|
|
2151
|
+
|
|
2152
|
+
#### `ChartItemKey`
|
|
2153
|
+
|
|
2154
|
+
A value that can identify a chart item: a `keyField` value or a category.
|
|
2155
|
+
|
|
2156
|
+
```typescript
|
|
2157
|
+
type ChartItemKey = boolean | Date | number | string;
|
|
2158
|
+
```
|
|
2159
|
+
|
|
2160
|
+
#### `ChartLegendItemKind`
|
|
2161
|
+
|
|
2162
|
+
```typescript
|
|
2163
|
+
type ChartLegendItemKind = "datum" | "semantic" | "series";
|
|
2164
|
+
```
|
|
2165
|
+
|
|
2166
|
+
#### `ChartLegendMode`
|
|
2167
|
+
|
|
2168
|
+
```typescript
|
|
2169
|
+
type ChartLegendMode = "auto" | "color" | "series";
|
|
2170
|
+
```
|
|
2171
|
+
|
|
2172
|
+
#### `ChartLegendPosition`
|
|
2173
|
+
|
|
2174
|
+
Where a legend goes: `start` and `end` follow the direction, `left` and `right` don't.
|
|
2175
|
+
|
|
2176
|
+
```typescript
|
|
2177
|
+
type ChartLegendPosition = "bottom" | "end" | "left" | "right" | "start" | "top";
|
|
2178
|
+
```
|
|
2179
|
+
|
|
2180
|
+
#### `ChartNavigationAxisTarget`
|
|
2181
|
+
|
|
2182
|
+
```typescript
|
|
2183
|
+
type ChartNavigationAxisTarget = "auto" | "x" | "xy" | "y" | readonly ChartViewportAxisRef[];
|
|
2184
|
+
```
|
|
2185
|
+
|
|
2186
|
+
#### `ChartNavigationInput`
|
|
2187
|
+
|
|
2188
|
+
```typescript
|
|
2189
|
+
type ChartNavigationInput = boolean | ChartNavigationOptions;
|
|
2190
|
+
```
|
|
2191
|
+
|
|
2192
|
+
#### `ChartNumericScaleType`
|
|
2193
|
+
|
|
2194
|
+
```typescript
|
|
2195
|
+
type ChartNumericScaleType = "linear" | "log" | "symlog" | "pow" | "sqrt";
|
|
2196
|
+
```
|
|
2197
|
+
|
|
2198
|
+
#### `ChartOverlayLayer`
|
|
2199
|
+
|
|
2200
|
+
```typescript
|
|
2201
|
+
type ChartOverlayLayer = "overlay" | "underlay";
|
|
2202
|
+
```
|
|
2203
|
+
|
|
2204
|
+
#### `ChartPdfPageSize`
|
|
2205
|
+
|
|
2206
|
+
Standard or custom PDF page size.
|
|
2207
|
+
- "chart": Custom page dimensions sized to exactly match the chart dimensions in PDF points.
|
|
2208
|
+
- "a4": Standard ISO A4 page (595.28 x 841.89 pt).
|
|
2209
|
+
- "letter": Standard North American Letter page (612 x 792 pt).
|
|
2210
|
+
- Custom object: Explicit width and height in PDF points (72 points = 1 inch).
|
|
2211
|
+
|
|
2212
|
+
```typescript
|
|
2213
|
+
type ChartPdfPageSize = | "chart" | "a4" | "letter" | { readonly height: number; readonly width: number; };
|
|
2214
|
+
```
|
|
2215
|
+
|
|
2216
|
+
#### `ChartPdfRenderMode`
|
|
2217
|
+
|
|
2218
|
+
PDF generation rendering mode.
|
|
2219
|
+
- "auto": Prefers vector output, falling back to embedded high-resolution raster image when vector fidelity cannot be guaranteed.
|
|
2220
|
+
- "vector": Requires strict vector conversion; rejects if vector conversion is unsupported.
|
|
2221
|
+
- "raster": Directly renders a rasterized chart image onto the PDF page.
|
|
2222
|
+
|
|
2223
|
+
```typescript
|
|
2224
|
+
type ChartPdfRenderMode = "auto" | "vector" | "raster";
|
|
2225
|
+
```
|
|
2226
|
+
|
|
2227
|
+
#### `ChartPointValue`
|
|
2228
|
+
|
|
2229
|
+
```typescript
|
|
2230
|
+
type ChartPointValue = ChartOhlcPointValue | ChartRangePointValue | ChartScalarPointValue | ChartWaterfallPointValue;
|
|
2231
|
+
```
|
|
2232
|
+
|
|
2233
|
+
#### `ChartPointValueKind`
|
|
2234
|
+
|
|
2235
|
+
```typescript
|
|
2236
|
+
type ChartPointValueKind = "ohlc" | "range" | "scalar" | "waterfall";
|
|
2237
|
+
```
|
|
2238
|
+
|
|
2239
|
+
#### `ChartReferenceLabelPosition`
|
|
2240
|
+
|
|
2241
|
+
```typescript
|
|
2242
|
+
type ChartReferenceLabelPosition = "center" | "end" | "start";
|
|
2243
|
+
```
|
|
2244
|
+
|
|
2245
|
+
#### `ChartReferenceLabelTemplateContext`
|
|
2246
|
+
|
|
2247
|
+
```typescript
|
|
2248
|
+
type ChartReferenceLabelTemplateContext = ChartReferenceLineLabelContext | ChartReferenceBandLabelContext;
|
|
2249
|
+
```
|
|
2250
|
+
|
|
2251
|
+
#### `ChartReferenceLineStyle`
|
|
2252
|
+
|
|
2253
|
+
```typescript
|
|
2254
|
+
type ChartReferenceLineStyle = "dashed" | "dotted" | "solid";
|
|
2255
|
+
```
|
|
2256
|
+
|
|
2257
|
+
#### `ChartRendererMode`
|
|
2258
|
+
|
|
2259
|
+
```typescript
|
|
2260
|
+
type ChartRendererMode = "canvas" | "svg";
|
|
2261
|
+
```
|
|
2262
|
+
|
|
2263
|
+
#### `ChartSelectionChangeSource`
|
|
2264
|
+
|
|
2265
|
+
```typescript
|
|
2266
|
+
type ChartSelectionChangeSource = "brush" | "click" | "keyboard" | "programmatic";
|
|
2267
|
+
```
|
|
2268
|
+
|
|
2269
|
+
#### `ChartSelectionMode`
|
|
2270
|
+
|
|
2271
|
+
```typescript
|
|
2272
|
+
type ChartSelectionMode = "single" | "multiple";
|
|
2273
|
+
```
|
|
2274
|
+
|
|
2275
|
+
#### `ChartSeriesFamily`
|
|
2276
|
+
|
|
2277
|
+
```typescript
|
|
2278
|
+
type ChartSeriesFamily = "cartesian" | "funnel" | "heatmap" | "hierarchy" | "polar" | "radar" | "radialArc" | "sector" | "waterfall";
|
|
2279
|
+
```
|
|
2280
|
+
|
|
2281
|
+
#### `ChartSeriesType`
|
|
2282
|
+
|
|
2283
|
+
```typescript
|
|
2284
|
+
type ChartSeriesType = | "area" | "bar" | "bubble" | "candlestick" | "donut" | "funnel" | "gauge" | "heatmap" | "line" | "ohlc" | "pie" | "polar" | "radar" | "radialBar" | "rangeArea" | "rangeBar" | "rose" | "scatter" | "treemap" | "waterfall";
|
|
2285
|
+
```
|
|
2286
|
+
|
|
2287
|
+
#### `ChartStackMode`
|
|
2288
|
+
|
|
2289
|
+
```typescript
|
|
2290
|
+
type ChartStackMode = "normal" | "percent";
|
|
2291
|
+
```
|
|
2292
|
+
|
|
2293
|
+
#### `ChartSynchronizationInput`
|
|
2294
|
+
|
|
2295
|
+
```typescript
|
|
2296
|
+
type ChartSynchronizationInput = false | string | ChartSynchronizationOptions;
|
|
2297
|
+
```
|
|
2298
|
+
|
|
2299
|
+
#### `ChartSynchronizationMode`
|
|
2300
|
+
|
|
2301
|
+
```typescript
|
|
2302
|
+
type ChartSynchronizationMode = "domain" | "relative";
|
|
2303
|
+
```
|
|
2304
|
+
|
|
2305
|
+
#### `ChartValueAccessor`
|
|
2306
|
+
|
|
2307
|
+
```typescript
|
|
2308
|
+
type ChartValueAccessor<T = any, TResult = unknown> = (item: T, index: number) => TResult;
|
|
2309
|
+
```
|
|
2310
|
+
|
|
2311
|
+
#### `ChartValueFormatter`
|
|
2312
|
+
|
|
2313
|
+
```typescript
|
|
2314
|
+
type ChartValueFormatter<T = unknown> = (value: T, index: number) => string;
|
|
2315
|
+
```
|
|
2316
|
+
|
|
2317
|
+
#### `ChartViewportChangePhase`
|
|
2318
|
+
|
|
2319
|
+
```typescript
|
|
2320
|
+
type ChartViewportChangePhase = "end" | "start" | "update";
|
|
2321
|
+
```
|
|
2322
|
+
|
|
2323
|
+
#### `ChartViewportChangeSource`
|
|
2324
|
+
|
|
2325
|
+
```typescript
|
|
2326
|
+
type ChartViewportChangeSource = "data-reconcile" | "drag" | "fit" | "keyboard" | "pinch" | "programmatic" | "reset" | "sync" | "wheel";
|
|
2327
|
+
```
|
|
2328
|
+
|
|
2329
|
+
#### `ChartViewportLinkMode`
|
|
2330
|
+
|
|
2331
|
+
```typescript
|
|
2332
|
+
type ChartViewportLinkMode = "domain" | "relative";
|
|
2333
|
+
```
|
|
2334
|
+
|
|
2335
|
+
#### `ChartViewportWindow`
|
|
2336
|
+
|
|
2337
|
+
```typescript
|
|
2338
|
+
type ChartViewportWindow = ChartCategoryViewportWindow | ChartContinuousViewportWindow;
|
|
2339
|
+
```
|
|
2340
|
+
|
|
2341
|
+
#### `ChartXAxisPosition`
|
|
2342
|
+
|
|
2343
|
+
```typescript
|
|
2344
|
+
type ChartXAxisPosition = "bottom" | "top";
|
|
2345
|
+
```
|
|
2346
|
+
|
|
2347
|
+
#### `ChartXAxisType`
|
|
2348
|
+
|
|
2349
|
+
```typescript
|
|
2350
|
+
type ChartXAxisType = "auto" | "category" | ChartNumericScaleType | "time" | "utc";
|
|
2351
|
+
```
|
|
2352
|
+
|
|
2353
|
+
#### `ChartYAxisPosition`
|
|
2354
|
+
|
|
2355
|
+
Where a Y axis goes: `start` and `end` follow the direction, `left` and `right` don't.
|
|
2356
|
+
|
|
2357
|
+
```typescript
|
|
2358
|
+
type ChartYAxisPosition = ChartYAxisSide | "end" | "start";
|
|
2359
|
+
```
|
|
2360
|
+
|
|
2361
|
+
#### `ChartYAxisSide`
|
|
2362
|
+
|
|
2363
|
+
The physical side a Y axis is drawn on.
|
|
2364
|
+
|
|
2365
|
+
```typescript
|
|
2366
|
+
type ChartYAxisSide = "left" | "right";
|
|
2367
|
+
```
|
|
2368
|
+
|
|
2369
|
+
#### `ChartYAxisType`
|
|
2370
|
+
|
|
2371
|
+
```typescript
|
|
2372
|
+
type ChartYAxisType = "auto" | "category" | ChartNumericScaleType;
|
|
2373
|
+
```
|
|
2374
|
+
|
|
2375
|
+
#### `MonaChartMessages`
|
|
2376
|
+
|
|
2377
|
+
From `@nanahoshi/mona-ui/i18n`.
|
|
2378
|
+
|
|
2379
|
+
| Name | Type | Description |
|
|
2380
|
+
| --- | --- | --- |
|
|
2381
|
+
| `announcementSeparator` (read-only) | `string` | Joins the parts of a screen reader announcement (", " in English). |
|
|
2382
|
+
| `brushApplied` (read-only) | `(count: number) => string` | Announced when a keyboard brush is committed. |
|
|
2383
|
+
| `brushCleared` (read-only) | `string` | Announced when a keyboard brush is canceled. |
|
|
2384
|
+
| `brushRange` (read-only) | `(from: string, to: string) => string` | Announced while a keyboard brush is extended. |
|
|
2385
|
+
| `category` (read-only) | `string` | The data table's first column header when the X axis has no title. |
|
|
2386
|
+
| `categoryFallbackName` (read-only) | `(index: number) => string` | The name of a radar category without a value. |
|
|
2387
|
+
| `categoryRange` (read-only) | `(from: string, to: string) => string` | The category range of a Cartesian chart, in its description. |
|
|
2388
|
+
| `change` (read-only) | `string` | The tooltip label for a waterfall change step or a financial point's price change. |
|
|
2389
|
+
| `changeValue` (read-only) | `(change: string) => string` | The price change in a financial announcement. |
|
|
2390
|
+
| `chart` (read-only) | `string` | The chart's accessible name when it has neither an `ariaLabel` nor a title. |
|
|
2391
|
+
| `chartLegend` (read-only) | `string` | The accessible name of the legend. |
|
|
2392
|
+
| `chartRoleDescription` (read-only) | `string` | What screen readers call the chart (`aria-roledescription`). |
|
|
2393
|
+
| `close` (read-only) | `string` | The tooltip label for a candlestick or OHLC point's closing price. |
|
|
2394
|
+
| `closeAbbreviation` (read-only) | `string` | The short closing price label in a tooltip that lists several financial series ("C" in English). |
|
|
2395
|
+
| `colorScale` (read-only) | `string` | The name of a heatmap color legend whose scale has no title, in its accessible name. |
|
|
2396
|
+
| `conversion` (read-only) | `string` | The tooltip label for a funnel stage's conversion rate. |
|
|
2397
|
+
| `conversionOfPrevious` (read-only) | `(rate: string) => string` | A funnel stage's conversion from the previous stage, in an announcement. |
|
|
2398
|
+
| `dataTableTruncated` (read-only) | `(shown: number, total: number) => string` | Below the data table when it shows only the first rows. |
|
|
2399
|
+
| `decrease` (read-only) | `string` | The waterfall legend's name for falling steps. |
|
|
2400
|
+
| `decreaseAnnouncement` (read-only) | `(delta: string, from: string, to: string) => string` | Announced for a waterfall step that lowers the running total. |
|
|
2401
|
+
| `divergingRangeDescription` (read-only) | `( title: string, minimum: string, midpoint: string, maximum: string ) => string` | The accessible name of a diverging heatmap color legend, with its minimum, midpoint and maximum. |
|
|
2402
|
+
| `dropOff` (read-only) | `string` | The tooltip label for a funnel stage's drop-off from the previous stage. |
|
|
2403
|
+
| `dropOffValue` (read-only) | `(value: string) => string` | A funnel stage's drop-off from the previous stage, in an announcement. |
|
|
2404
|
+
| `falling` (read-only) | `string` | Names a falling candlestick or OHLC point, in the tooltip and in announcements. |
|
|
2405
|
+
| `gaugeRange` (read-only) | `(minimum: string, maximum: string) => string` | A gauge's scale, in an announcement. |
|
|
2406
|
+
| `high` (read-only) | `string` | The tooltip label for a candlestick or OHLC point's high price. |
|
|
2407
|
+
| `highAbbreviation` (read-only) | `string` | The short high price label in a tooltip that lists several financial series ("H" in English). |
|
|
2408
|
+
| `increase` (read-only) | `string` | The waterfall legend's name for rising steps. |
|
|
2409
|
+
| `increaseAnnouncement` (read-only) | `(delta: string, from: string, to: string) => string` | Announced for a waterfall step that raises the running total. |
|
|
2410
|
+
| `itemDeselected` (read-only) | `(item: string) => string` | Announced when the keyboard deselects a point. |
|
|
2411
|
+
| `itemFallbackName` (read-only) | `(index: number) => string` | The name of a pie, donut, rose or radial bar item without a category. |
|
|
2412
|
+
| `itemSelected` (read-only) | `(item: string) => string` | Announced when the keyboard selects a point. |
|
|
2413
|
+
| `keyboardHelp` (read-only) | `string` | The keyboard instructions at the end of the chart's description. |
|
|
2414
|
+
| `labeledValue` (read-only) | `(label: string, value: string) => string` | Pairs a label with a value in an announcement, such as a series name with the point's values. |
|
|
2415
|
+
| `labelValueSeparator` (read-only) | `string` | Separates a label from its value in the tooltip (":" in English). |
|
|
2416
|
+
| `low` (read-only) | `string` | The tooltip label for a candlestick or OHLC point's low price. |
|
|
2417
|
+
| `lowAbbreviation` (read-only) | `string` | The short low price label in a tooltip that lists several financial series ("L" in English). |
|
|
2418
|
+
| `noChange` (read-only) | `string` | The waterfall legend's name for unchanged steps. |
|
|
2419
|
+
| `noChangeAnnouncement` (read-only) | `(value: string) => string` | Announced for a waterfall step that leaves the running total unchanged. |
|
|
2420
|
+
| `noData` (read-only) | `string` | Shown and included in the chart's description when it has no data and no `noData` template. |
|
|
2421
|
+
| `ohlcValues` (read-only) | `(open: string, high: string, low: string, close: string) => string` | A candlestick or OHLC point's prices, in an announcement. |
|
|
2422
|
+
| `open` (read-only) | `string` | The tooltip label for a candlestick or OHLC point's opening price. |
|
|
2423
|
+
| `openAbbreviation` (read-only) | `string` | The short opening price label in a tooltip that lists several financial series ("O" in English). |
|
|
2424
|
+
| `overall` (read-only) | `string` | The tooltip label for a funnel stage's conversion from the first stage. |
|
|
2425
|
+
| `overallConversion` (read-only) | `(rate: string) => string` | A funnel stage's conversion from the first stage, in an announcement. |
|
|
2426
|
+
| `pannedDown` (read-only) | `string` | Announced when the keyboard pans the viewport down. |
|
|
2427
|
+
| `pannedLeft` (read-only) | `string` | Announced when the keyboard pans the viewport left. |
|
|
2428
|
+
| `pannedRight` (read-only) | `string` | Announced when the keyboard pans the viewport right. |
|
|
2429
|
+
| `pannedUp` (read-only) | `string` | Announced when the keyboard pans the viewport up. |
|
|
2430
|
+
| `pathSeparator` (read-only) | `string` | Joins a treemap node's path (" / " in English). |
|
|
2431
|
+
| `pointPosition` (read-only) | `(position: number, total: number) => string` | A point's position among the points it is navigated with, in an announcement. |
|
|
2432
|
+
| `range` (read-only) | `string` | The tooltip label for a radial point's minimum-to-maximum range. |
|
|
2433
|
+
| `rangeDescription` (read-only) | `( title: string, minimum: string, maximum: string ) => string` | Describes a range with its title, minimum and maximum: a range point in an announcement, or a heatmap color legend in its accessible name. |
|
|
2434
|
+
| `rangeValue` (read-only) | `(from: string, to: string) => string` | A range value, in an announcement. |
|
|
2435
|
+
| `rising` (read-only) | `string` | Names a rising candlestick or OHLC point, in the tooltip and in announcements. |
|
|
2436
|
+
| `runningTotal` (read-only) | `string` | The tooltip label for a waterfall step's running total. |
|
|
2437
|
+
| `seriesFallbackName` (read-only) | `(index: number) => string` | The name of a series without a name. |
|
|
2438
|
+
| `seriesHidden` (read-only) | `(series: string) => string` | Announced when a legend item hides a series or item. |
|
|
2439
|
+
| `seriesShown` (read-only) | `(series: string) => string` | Announced when a legend item shows a series or item. |
|
|
2440
|
+
| `seriesSummary` (read-only) | `(count: number, names: string) => string` | The series of the chart, in its description. |
|
|
2441
|
+
| `seriesValueRange` (read-only) | `(series: string, minimum: string, maximum: string) => string` | A series' lowest and highest value, in the chart's description. |
|
|
2442
|
+
| `shareOfTotal` (read-only) | `(share: string) => string` | A treemap node's share of the whole, in an announcement. |
|
|
2443
|
+
| `size` (read-only) | `string` | The tooltip label for a bubble's size. |
|
|
2444
|
+
| `sizeValue` (read-only) | `(size: string) => string` | A bubble's size, in an announcement. |
|
|
2445
|
+
| `stackShare` (read-only) | `(share: string) => string` | A point's share of its 100% stack, in an announcement. |
|
|
2446
|
+
| `stageFallbackName` (read-only) | `(index: number) => string` | The name of a funnel stage without a category. |
|
|
2447
|
+
| `stagePosition` (read-only) | `(position: number, total: number) => string` | A funnel stage's position among the stages, in an announcement. |
|
|
2448
|
+
| `stepFallbackName` (read-only) | `(index: number) => string` | The name of a waterfall step without a category. |
|
|
2449
|
+
| `stepPosition` (read-only) | `(position: number, total: number) => string` | A waterfall step's position among the steps, in an announcement. |
|
|
2450
|
+
| `subtotal` (read-only) | `string` | The waterfall legend's name for subtotal steps. |
|
|
2451
|
+
| `subtotalAnnouncement` (read-only) | `(value: string) => string` | Announced for a waterfall subtotal step. |
|
|
2452
|
+
| `total` (read-only) | `string` | The waterfall legend's name for total steps. |
|
|
2453
|
+
| `totalAnnouncement` (read-only) | `(value: string) => string` | Announced for a waterfall total step. |
|
|
2454
|
+
| `treemapGroup` (read-only) | `(count: number) => string` | A treemap group, in an announcement. |
|
|
2455
|
+
| `treemapLeaf` (read-only) | `string` | A treemap leaf, in an announcement. |
|
|
2456
|
+
| `unchanged` (read-only) | `string` | Names a candlestick or OHLC point that closed at its opening price, in the tooltip and in announcements. |
|
|
2457
|
+
| `value` (read-only) | `string` | The tooltip label for a point's value. |
|
|
2458
|
+
| `valueRange` (read-only) | `(from: string, to: string) => string` | A range value in the tooltip ("10 – 20" in English). |
|
|
2459
|
+
| `viewportResetToDefault` (read-only) | `string` | Announced when the keyboard resets the viewport to its configured default range. |
|
|
2460
|
+
| `viewportResetToFull` (read-only) | `string` | Announced when the keyboard resets the viewport to the full data range, when no default range is configured. |
|
|
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. |
|
|
2462
|
+
| `zoomedIn` (read-only) | `string` | Announced when the keyboard zooms the viewport in. |
|
|
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)
|