@nanahoshi/mona-ui 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- 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.md +4058 -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-group.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-button.mjs +14 -2
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +108 -22
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +1 -1
- 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-scroll-view.mjs +7 -3
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +2 -1
- 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 +8 -3
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +10 -7
- 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-theme.mjs +53 -21
- 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 +123 -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/styles.css +12 -2
- 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 +200 -0
- 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,4058 @@
|
|
|
1
|
+
# Chart
|
|
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` is a high-performance Canvas 2D visualization container designed for Angular 22. It renders composable Cartesian series (Line, Area, Bar, Range Bar, Range Area, Scatter, Bubble, Candlestick, OHLC, and Waterfall), Cartesian Heatmaps, Funnel pipelines, Hierarchical Treemaps, Sector series (Pie and Donut), and Polar Axis series (Radar and Continuous Polar) using declarative child components, D3-powered mathematical geometry and scale engines, accessible DOM overlays, interactive tooltips, and responsive ResizeObserver layouts.
|
|
10
|
+
|
|
11
|
+
### Key Highlights
|
|
12
|
+
|
|
13
|
+
- **High Performance Canvas 2D Backing Store**: Smooth rendering with sub-pixel DPR scaling and zero SVG DOM bloat for high-density datasets.
|
|
14
|
+
- **Declarative Angular 22 Composition**: Compose `<mona-line-series>`, `<mona-area-series>`, `<mona-bar-series>`, `<mona-range-bar-series>`, `<mona-range-area-series>`, `<mona-scatter-series>`, `<mona-bubble-series>`, `<mona-candlestick-series>`, `<mona-ohlc-series>`, `<mona-waterfall-series>`, `<mona-funnel-series>`, `<mona-treemap-series>`, `<mona-heatmap-series>`, `<mona-pie-series>`, `<mona-donut-series>`, `<mona-radar-series>`, `<mona-polar-series>`, `<mona-radial-bar-series>`, `<mona-rose-series>`, `<mona-gauge-series>`, `<mona-chart-x-axis>`, `<mona-chart-y-axis>`, `<mona-chart-angular-axis>`, `<mona-chart-radial-axis>`, `<mona-chart-legend>`, `<mona-chart-tooltip>`, `<mona-chart-crosshair>`, `<mona-chart-reference-line>`, `<mona-chart-reference-band>`, and `<mona-chart-annotation>`.
|
|
15
|
+
- **Interactive Crosshairs & Overlays**: Multi-axis crosshair guide lines with snapped or raw pointer axis label badges, static reference lines and bands in underlay/overlay layers with threshold labels, and targeted point annotations with connector leaders, markers, and custom DOM template badges.
|
|
16
|
+
- **Cartesian, Financial, Heatmap, Funnel, Waterfall, Sector & Polar Axis Support**: Multi-series line, area, grouped/stacked bar, floating range bar, continuous range area, scatter, bubble, financial candlestick & OHLC bars, conversion funnels with step drop-off analytics, cash-flow and contribution waterfalls with change, subtotal, and total steps, heatmaps with custom color ramps, hierarchical treemaps with squarify tiling, alongside full and partial pie/donut charts, multi-metric radar charts with polygon/circular grid rings, and continuous polar charts mapping directional signals across 360 degrees.
|
|
17
|
+
- **Radial Fill Modes & Gradients**: Slices and radial series support uniform `solid` washes, soft radial `gradient` fills transitioning from transparent at the pole/inner radius to the outer boundary, and outline-only modes.
|
|
18
|
+
- **D3 Math Core**: Robust categorical band scales, continuous linear scales, temporal scales, and D3 `pie`/`arc`/`lineRadial`/`areaRadial`/`treemap` geometry without third-party rendering lock-in.
|
|
19
|
+
- **Theme-Aware Styling**: Seamless integration with `@nanahoshi/mona-ui/theme` palette tokens (`--color-chart-1` through `--color-chart-5`), dark mode, financial directional tokens (`--mona-chart-financial-rising-color`, `--mona-chart-financial-falling-color`), waterfall delta tokens, and CVA recipes.
|
|
20
|
+
- **WCAG AA / AXE Accessibility**: ARIA region container, live region announcements on focus/navigation, interactive series and slice legend toggling, and full arrow-key keyboard exploration across spokes, slices, stages, bars, and series.
|
|
21
|
+
|
|
22
|
+
## Overview
|
|
23
|
+
|
|
24
|
+
The chart component renders high-performance Canvas 2D visualizations composed of declarative child series and axis components. It supports Cartesian, Sector, Polar Axis, Polar Arc, and Hierarchical chart families, with specialized Cartesian layouts for Heatmap, Funnel, Waterfall, and Financial series.
|
|
25
|
+
|
|
26
|
+
**Series Types:**
|
|
27
|
+
- **Cartesian**: `<mona-line-series>`, `<mona-area-series>`, `<mona-bar-series>`, `<mona-range-bar-series>`, `<mona-range-area-series>`, `<mona-scatter-series>`, `<mona-bubble-series>`, `<mona-candlestick-series>`, `<mona-ohlc-series>`, `<mona-heatmap-series>`, `<mona-funnel-series>`, `<mona-waterfall-series>`
|
|
28
|
+
- **Sector**: `<mona-pie-series>`, `<mona-donut-series>`
|
|
29
|
+
- **Polar Axis**: `<mona-radar-series>`, `<mona-polar-series>`
|
|
30
|
+
- **Polar Arc**: `<mona-radial-bar-series>`, `<mona-rose-series>`, `<mona-gauge-series>`
|
|
31
|
+
- **Hierarchical**: `<mona-treemap-series>`
|
|
32
|
+
|
|
33
|
+
## Import & Quick Start
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
import {
|
|
37
|
+
ChartComponent,
|
|
38
|
+
ChartAngularAxisComponent,
|
|
39
|
+
ChartRadialAxisComponent,
|
|
40
|
+
RadarSeriesComponent,
|
|
41
|
+
PolarSeriesComponent,
|
|
42
|
+
ChartLegendComponent,
|
|
43
|
+
ChartTooltipComponent
|
|
44
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
45
|
+
import type { ChartField, ChartValueFormatter, ChartViewportState } from "@nanahoshi/mona-ui/chart";
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<mona-chart [data]="data" class="h-80 w-full">
|
|
50
|
+
<mona-chart-angular-axis />
|
|
51
|
+
<mona-chart-radial-axis gridShape="polygon" />
|
|
52
|
+
<mona-radar-series field="score" categoryField="metric" name="Attributes" fillMode="gradient" />
|
|
53
|
+
<mona-chart-legend position="bottom" />
|
|
54
|
+
<mona-chart-tooltip [shared]="true" />
|
|
55
|
+
</mona-chart>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Anatomy
|
|
59
|
+
|
|
60
|
+
### Template Directives
|
|
61
|
+
|
|
62
|
+
- `ng-template[monaChartTitleTemplate]`: Customizes the title with `{ $implicit, title }`.
|
|
63
|
+
- `ng-template[monaChartSubtitleTemplate]`: Customizes the subtitle with `{ $implicit, subtitle }`.
|
|
64
|
+
- `ng-template[monaChartTooltipTemplate]`: Customizes hover and keyboard tooltip contents with `{ $implicit, point, points, series, shared }`.
|
|
65
|
+
- `ng-template[monaChartAxisLabelTemplate]`: Customizes tick label markup with `{ $implicit, axis, axisId, index, position, scaleType, value }`.
|
|
66
|
+
- `ng-template[monaChartLegendItemTemplate]`: Customizes legend items with `{ $implicit, color, dataIndex, datum, interactive, itemId, kind, name, percentage, secondaryColor, series, seriesId, seriesType, value, visible }`.
|
|
67
|
+
- `ng-template[monaChartNoDataTemplate]`: Customizes the empty state when no renderable data is present.
|
|
68
|
+
- `ng-template[monaChartSliceLabelTemplate]`: Customizes pie and donut slice labels with `{ $implicit, category, color, dataIndex, datum, formattedCategory, formattedPercentage, formattedValue, percentage, seriesId, seriesName, seriesType, slice, value }`.
|
|
69
|
+
- `ng-template[monaChartCenterTemplate]`: Customizes the center of a donut with `{ $implicit, formattedTotal, seriesId, seriesName, total, visibleSliceCount }`.
|
|
70
|
+
- `ng-template[monaChartGaugeCenterTemplate]`: Customizes central gauge readout template with `{ $implicit, formattedMax, formattedMin, formattedValue, isClamped, max, min, ratio, seriesId, seriesName, value }`.
|
|
71
|
+
- `ng-template[monaChartTreemapLabelTemplate]`: Customizes DOM treemap node labels with `{ $implicit, bounds, color, datum, depth, formattedLabel, formattedPath, formattedValue, isCollapsed, isLeaf, label, node, nodeId, path, percentageOfParent, percentageOfRoot, textColor, value }`.
|
|
72
|
+
- `ng-template[monaChartFunnelLabelTemplate]`: Customizes DOM funnel stage labels with `{ $implicit, bounds, category, color, conversionRate, dataIndex, datum, dropOff, formattedCategory, formattedConversionRate, formattedOverallConversionRate, formattedValue, overallConversionRate, previousValue, stage, stageId, stageIndex, textColor, value }`.
|
|
73
|
+
- `ng-template[monaChartWaterfallLabelTemplate]`: Customizes DOM waterfall step labels with `{ $implicit, barEnd, barStart, bounds, category, color, cumulativeAfter, cumulativeBefore, dataIndex, datum, deltaValue, formattedCategory, formattedCumulativeAfter, formattedCumulativeBefore, formattedDelta, formattedValue, kind, step, textColor, value, visualKind }`.
|
|
74
|
+
- `ng-template[monaChartCrosshairLabelTemplate]` (or `[monaChartCrosshairLabel]`): Customizes DOM crosshair coordinate badges with `{ $implicit, axis, axisId, coordinate, formattedValue, snapped, source, value }`.
|
|
75
|
+
- `ng-template[monaChartReferenceLabelTemplate]` (or `[monaChartReferenceLabel]`): Customizes DOM reference line or band labels with `{ $implicit, axis, axisId, bounds, coordinate, formattedFrom, formattedTo, formattedValue, from, kind, to, value }`.
|
|
76
|
+
- `ng-template[monaChartAnnotationLabelTemplate]` (or `[monaChartAnnotationLabel]`): Customizes DOM point annotation callout badges with `{ $implicit, data, formattedX, formattedY, point, x, xAxisId, y, yAxisId }`.
|
|
77
|
+
- `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 }`.
|
|
78
|
+
|
|
79
|
+
Every directive types its `let-` variables under `strictTemplates`. `let-value` is the context's `$implicit`, which is the tick, line or annotation value, not the whole context: read other members by name, as in `let-axis="axis"`. Annotation data is `unknown`, so use `$any(data).note` or a typed method to read it.
|
|
80
|
+
|
|
81
|
+
## Examples
|
|
82
|
+
|
|
83
|
+
### Line
|
|
84
|
+
|
|
85
|
+
Series read their values from the chart's `data`, using `field` for the value and the chart's `xField` for the category.
|
|
86
|
+
|
|
87
|
+
`line-example.component.ts`
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import { Component } from "@angular/core";
|
|
91
|
+
import {
|
|
92
|
+
ChartComponent,
|
|
93
|
+
ChartLegendComponent,
|
|
94
|
+
ChartXAxisComponent,
|
|
95
|
+
ChartYAxisComponent,
|
|
96
|
+
LineSeriesComponent
|
|
97
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
98
|
+
|
|
99
|
+
@Component({
|
|
100
|
+
selector: "app-chart-line-example",
|
|
101
|
+
imports: [ChartComponent, ChartLegendComponent, ChartXAxisComponent, ChartYAxisComponent, LineSeriesComponent],
|
|
102
|
+
templateUrl: "./line-example.component.html"
|
|
103
|
+
})
|
|
104
|
+
export class ChartLineExampleComponent {
|
|
105
|
+
protected readonly visitors = [
|
|
106
|
+
{ month: "Jan", mobile: 2100, web: 3200 },
|
|
107
|
+
{ month: "Feb", mobile: 2400, web: 3100 },
|
|
108
|
+
{ month: "Mar", mobile: 2900, web: 3500 },
|
|
109
|
+
{ month: "Apr", mobile: 3300, web: 3400 },
|
|
110
|
+
{ month: "May", mobile: 3800, web: 3700 },
|
|
111
|
+
{ month: "Jun", mobile: 4200, web: 3600 }
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
`line-example.component.html`
|
|
117
|
+
|
|
118
|
+
```html
|
|
119
|
+
<mona-chart aria-label="Monthly visitors by platform" class="h-72 w-full" xField="month" [data]="visitors">
|
|
120
|
+
<mona-chart-x-axis />
|
|
121
|
+
<mona-chart-y-axis title="Visitors" />
|
|
122
|
+
<mona-line-series curve="monotone-x" field="web" name="Web" [showPoints]="true" />
|
|
123
|
+
<mona-line-series curve="monotone-x" field="mobile" lineStyle="dashed" name="Mobile" [showPoints]="true" />
|
|
124
|
+
<mona-chart-legend position="bottom" />
|
|
125
|
+
</mona-chart>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Stacked bars
|
|
129
|
+
|
|
130
|
+
Bar series with the same `stack` name stack together. `valueFormatter` formats the values in tooltips and announcements, without changing the axis ticks.
|
|
131
|
+
|
|
132
|
+
`bar-example.component.ts`
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import { Component } from "@angular/core";
|
|
136
|
+
import {
|
|
137
|
+
BarSeriesComponent,
|
|
138
|
+
ChartComponent,
|
|
139
|
+
ChartLegendComponent,
|
|
140
|
+
ChartTooltipComponent,
|
|
141
|
+
ChartXAxisComponent,
|
|
142
|
+
ChartYAxisComponent
|
|
143
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
144
|
+
|
|
145
|
+
@Component({
|
|
146
|
+
selector: "app-chart-bar-example",
|
|
147
|
+
imports: [
|
|
148
|
+
BarSeriesComponent,
|
|
149
|
+
ChartComponent,
|
|
150
|
+
ChartLegendComponent,
|
|
151
|
+
ChartTooltipComponent,
|
|
152
|
+
ChartXAxisComponent,
|
|
153
|
+
ChartYAxisComponent
|
|
154
|
+
],
|
|
155
|
+
templateUrl: "./bar-example.component.html"
|
|
156
|
+
})
|
|
157
|
+
export class ChartBarExampleComponent {
|
|
158
|
+
protected readonly sales = [
|
|
159
|
+
{ americas: 120, asia: 95, europe: 80, quarter: "Q1" },
|
|
160
|
+
{ americas: 135, asia: 110, europe: 92, quarter: "Q2" },
|
|
161
|
+
{ americas: 128, asia: 124, europe: 101, quarter: "Q3" },
|
|
162
|
+
{ americas: 150, asia: 138, europe: 115, quarter: "Q4" }
|
|
163
|
+
];
|
|
164
|
+
|
|
165
|
+
protected thousands = (value: unknown): string => `$${String(value)}k`;
|
|
166
|
+
}
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
`bar-example.component.html`
|
|
170
|
+
|
|
171
|
+
```html
|
|
172
|
+
<mona-chart aria-label="Quarterly sales by region" class="h-72 w-full" xField="quarter" [data]="sales">
|
|
173
|
+
<mona-chart-x-axis />
|
|
174
|
+
<mona-chart-y-axis title="Sales" />
|
|
175
|
+
<mona-bar-series field="americas" name="Americas" stack="sales" [valueFormatter]="thousands" />
|
|
176
|
+
<mona-bar-series field="europe" name="Europe" stack="sales" [valueFormatter]="thousands" />
|
|
177
|
+
<mona-bar-series field="asia" name="Asia" stack="sales" [borderRadius]="4" [valueFormatter]="thousands" />
|
|
178
|
+
<mona-chart-legend position="bottom" />
|
|
179
|
+
<mona-chart-tooltip />
|
|
180
|
+
</mona-chart>
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Donut
|
|
184
|
+
|
|
185
|
+
A donut reads `category` and `value` by default. `ng-template[monaChartCenterTemplate]` fills its center, and legend items show or hide slices.
|
|
186
|
+
|
|
187
|
+
`donut-example.component.ts`
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
import { Component } from "@angular/core";
|
|
191
|
+
import {
|
|
192
|
+
ChartCenterTemplateDirective,
|
|
193
|
+
ChartComponent,
|
|
194
|
+
ChartLegendComponent,
|
|
195
|
+
DonutSeriesComponent
|
|
196
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
197
|
+
|
|
198
|
+
@Component({
|
|
199
|
+
selector: "app-chart-donut-example",
|
|
200
|
+
imports: [ChartCenterTemplateDirective, ChartComponent, ChartLegendComponent, DonutSeriesComponent],
|
|
201
|
+
templateUrl: "./donut-example.component.html"
|
|
202
|
+
})
|
|
203
|
+
export class ChartDonutExampleComponent {
|
|
204
|
+
protected readonly sources = [
|
|
205
|
+
{ category: "Search", value: 4200 },
|
|
206
|
+
{ category: "Direct", value: 2600 },
|
|
207
|
+
{ category: "Social", value: 1500 },
|
|
208
|
+
{ category: "Email", value: 900 }
|
|
209
|
+
];
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
`donut-example.component.html`
|
|
214
|
+
|
|
215
|
+
```html
|
|
216
|
+
<mona-chart aria-label="Visits by traffic source" class="h-72 w-full" [data]="sources">
|
|
217
|
+
<mona-donut-series name="Visits" [padAngle]="1">
|
|
218
|
+
<ng-template monaChartCenterTemplate let-formattedTotal="formattedTotal">
|
|
219
|
+
<div class="flex flex-col items-center">
|
|
220
|
+
<span class="text-xs">Total visits</span>
|
|
221
|
+
<span class="text-lg font-semibold">{{ formattedTotal }}</span>
|
|
222
|
+
</div>
|
|
223
|
+
</ng-template>
|
|
224
|
+
</mona-donut-series>
|
|
225
|
+
<mona-chart-legend position="end" />
|
|
226
|
+
</mona-chart>
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Custom tooltip
|
|
230
|
+
|
|
231
|
+
A shared tooltip shows every visible series at the active category. `ng-template[monaChartTooltipTemplate]` replaces its content.
|
|
232
|
+
|
|
233
|
+
`tooltip-example.component.ts`
|
|
234
|
+
|
|
235
|
+
```typescript
|
|
236
|
+
import { Component } from "@angular/core";
|
|
237
|
+
import {
|
|
238
|
+
AreaSeriesComponent,
|
|
239
|
+
ChartComponent,
|
|
240
|
+
ChartTooltipComponent,
|
|
241
|
+
ChartTooltipTemplateDirective,
|
|
242
|
+
ChartXAxisComponent,
|
|
243
|
+
ChartYAxisComponent
|
|
244
|
+
} from "@nanahoshi/mona-ui/chart";
|
|
245
|
+
|
|
246
|
+
@Component({
|
|
247
|
+
selector: "app-chart-tooltip-example",
|
|
248
|
+
imports: [
|
|
249
|
+
AreaSeriesComponent,
|
|
250
|
+
ChartComponent,
|
|
251
|
+
ChartTooltipComponent,
|
|
252
|
+
ChartTooltipTemplateDirective,
|
|
253
|
+
ChartXAxisComponent,
|
|
254
|
+
ChartYAxisComponent
|
|
255
|
+
],
|
|
256
|
+
templateUrl: "./tooltip-example.component.html"
|
|
257
|
+
})
|
|
258
|
+
export class ChartTooltipExampleComponent {
|
|
259
|
+
protected readonly usage = [
|
|
260
|
+
{ day: "Mon", downloads: 320, uploads: 140 },
|
|
261
|
+
{ day: "Tue", downloads: 410, uploads: 180 },
|
|
262
|
+
{ day: "Wed", downloads: 380, uploads: 210 },
|
|
263
|
+
{ day: "Thu", downloads: 520, uploads: 190 },
|
|
264
|
+
{ day: "Fri", downloads: 610, uploads: 260 },
|
|
265
|
+
{ day: "Sat", downloads: 290, uploads: 120 },
|
|
266
|
+
{ day: "Sun", downloads: 240, uploads: 90 }
|
|
267
|
+
];
|
|
268
|
+
|
|
269
|
+
protected gigabytes = (value: unknown): string => `${String(value)} GB`;
|
|
270
|
+
}
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
`tooltip-example.component.html`
|
|
274
|
+
|
|
275
|
+
```html
|
|
276
|
+
<mona-chart aria-label="Daily data transfer" class="h-72 w-full" xField="day" [data]="usage">
|
|
277
|
+
<mona-chart-x-axis />
|
|
278
|
+
<mona-chart-y-axis />
|
|
279
|
+
<mona-area-series field="downloads" name="Downloads" [valueFormatter]="gigabytes" />
|
|
280
|
+
<mona-area-series field="uploads" name="Uploads" [valueFormatter]="gigabytes" />
|
|
281
|
+
<mona-chart-tooltip [shared]="true">
|
|
282
|
+
<ng-template monaChartTooltipTemplate let-points="points">
|
|
283
|
+
<div class="min-w-36 rounded-md border border-border bg-popover p-2 text-xs text-popover-foreground">
|
|
284
|
+
<div class="mb-1 font-semibold">{{ points[0]?.formattedX }}</div>
|
|
285
|
+
@for (point of points; track point.seriesId) {
|
|
286
|
+
<div class="flex items-center justify-between gap-3">
|
|
287
|
+
<span class="flex items-center gap-1.5">
|
|
288
|
+
<span
|
|
289
|
+
class="size-2 rounded-full forced-color-adjust-none"
|
|
290
|
+
[style.background-color]="point.color"></span>
|
|
291
|
+
{{ point.seriesName }}
|
|
292
|
+
</span>
|
|
293
|
+
<span class="font-semibold">{{ point.formattedY }}</span>
|
|
294
|
+
</div>
|
|
295
|
+
}
|
|
296
|
+
</div>
|
|
297
|
+
</ng-template>
|
|
298
|
+
</mona-chart-tooltip>
|
|
299
|
+
</mona-chart>
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
## Behavior
|
|
303
|
+
|
|
304
|
+
### Cross-chart synchronization
|
|
305
|
+
|
|
306
|
+
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.
|
|
307
|
+
|
|
308
|
+
#### Basic group
|
|
309
|
+
|
|
310
|
+
```html
|
|
311
|
+
<mona-chart synchronization="dashboard" [navigation]="true">…</mona-chart>
|
|
312
|
+
<mona-chart synchronization="dashboard" [navigation]="true">…</mona-chart>
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
The string shorthand enables both viewport and crosshair channels with default options.
|
|
316
|
+
|
|
317
|
+
#### Full configuration
|
|
318
|
+
|
|
319
|
+
```ts
|
|
320
|
+
type ChartSynchronizationInput =
|
|
321
|
+
| false
|
|
322
|
+
| string
|
|
323
|
+
| {
|
|
324
|
+
group: string;
|
|
325
|
+
viewport?:
|
|
326
|
+
| boolean
|
|
327
|
+
| {
|
|
328
|
+
enabled?: boolean; // default true
|
|
329
|
+
mode?: "domain" | "relative"; // default "domain"
|
|
330
|
+
axes?: ChartNavigationAxisTarget; // default "auto"
|
|
331
|
+
phase?: "continuous" | "end"; // default "continuous"
|
|
332
|
+
};
|
|
333
|
+
crosshair?:
|
|
334
|
+
| boolean
|
|
335
|
+
| {
|
|
336
|
+
enabled?: boolean; // default true
|
|
337
|
+
mode?: "domain" | "relative";
|
|
338
|
+
axes?: "auto" | "x" | "xy" | "y";
|
|
339
|
+
match?: "axis-value" | "nearest-point"; // default "axis-value"
|
|
340
|
+
showTooltip?: boolean; // default false (opt-in)
|
|
341
|
+
clearOnLeave?: boolean; // default true
|
|
342
|
+
};
|
|
343
|
+
axisMappings?: { source: ChartViewportAxisRef; target: ChartViewportAxisRef }[];
|
|
344
|
+
};
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
- **`viewport.phase: "end"`** keeps the source fully interactive locally and synchronizes only the final committed state of an operation — useful for expensive dashboards.
|
|
348
|
+
- **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.
|
|
349
|
+
- **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.
|
|
350
|
+
- **Axis identity** is always `{ axis: "x" | "y", axisId }`; explicit `axisMappings` remap differently-named axes.
|
|
351
|
+
|
|
352
|
+
#### Controlled charts
|
|
353
|
+
|
|
354
|
+
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.
|
|
355
|
+
|
|
356
|
+
#### Crosshair synchronization
|
|
357
|
+
|
|
358
|
+
Crosshair messages carry semantic axis values (numbers, instants, category keys). Recipients map values into their own coordinate space:
|
|
359
|
+
|
|
360
|
+
- Values outside the recipient's visible viewport hide the crosshair rather than clamping.
|
|
361
|
+
- `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.
|
|
362
|
+
- Local pointer/keyboard interaction always outranks remote presentation; on local leave the latest remote state is restored.
|
|
363
|
+
- Remote crosshairs never move focus, emit `pointFocusChange`, or announce to live regions.
|
|
364
|
+
- `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.
|
|
365
|
+
|
|
366
|
+
#### What synchronization does not cover
|
|
367
|
+
|
|
368
|
+
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_.
|
|
369
|
+
|
|
370
|
+
### High-density downsampling
|
|
371
|
+
|
|
372
|
+
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.
|
|
373
|
+
|
|
374
|
+
```html
|
|
375
|
+
<mona-chart [downsampling]="true">…</mona-chart>
|
|
376
|
+
<mona-chart [downsampling]="false">…</mona-chart>
|
|
377
|
+
<mona-line-series field="y" [downsampling]="{ algorithm: 'lttb' }" />
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
```ts
|
|
381
|
+
interface ChartDownsamplingOptions {
|
|
382
|
+
algorithm?: "auto" | "minmax" | "lttb" | "pixel";
|
|
383
|
+
enabled?: boolean; // default true
|
|
384
|
+
maxPoints?: number; // explicit hard cap, triggers reduction even below threshold
|
|
385
|
+
samplesPerPixel?: number; // default 1
|
|
386
|
+
threshold?: number; // default max(2000, plotSpanPx × 4)
|
|
387
|
+
}
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
#### Eligible families
|
|
391
|
+
|
|
392
|
+
| Series | Strategy |
|
|
393
|
+
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
394
|
+
| line / unstacked area | indexed min/max envelope (auto), segment-aware LTTB (explicit); `step` and `step-after` use protected adjacency groups |
|
|
395
|
+
| rangeArea | range envelope (first/last/lowest/highest per bucket, preserving same-segment clipping neighbors and null island endpoints when `connectNulls=true`) |
|
|
396
|
+
| 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 |
|
|
397
|
+
| scatter / bubble | normalized spatial hierarchy with adaptive quadtree subdivision and bounded representatives |
|
|
398
|
+
|
|
399
|
+
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.
|
|
400
|
+
|
|
401
|
+
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.
|
|
402
|
+
|
|
403
|
+
#### Semantics preserved
|
|
404
|
+
|
|
405
|
+
- 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.
|
|
406
|
+
- 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.
|
|
407
|
+
- 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.
|
|
408
|
+
- 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.
|
|
409
|
+
- 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.
|
|
410
|
+
- `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.
|
|
411
|
+
- 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.
|
|
412
|
+
- 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.
|
|
413
|
+
- 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.
|
|
414
|
+
|
|
415
|
+
#### Interaction under downsampling
|
|
416
|
+
|
|
417
|
+
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.
|
|
418
|
+
|
|
419
|
+
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.
|
|
420
|
+
|
|
421
|
+
#### Performance contract
|
|
422
|
+
|
|
423
|
+
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.
|
|
424
|
+
|
|
425
|
+
### Shared Options
|
|
426
|
+
|
|
427
|
+
#### Data labels
|
|
428
|
+
|
|
429
|
+
`dataLabels` on Cartesian series takes `true`, `false` or `ChartDataLabelOptions`.
|
|
430
|
+
|
|
431
|
+
| Option | Type | Default | Meaning |
|
|
432
|
+
| :--- | :--- | :--- | :--- |
|
|
433
|
+
| `allowOverlap` | `boolean` | `false` | Whether labels may overlap each other. |
|
|
434
|
+
| `collisionPadding` | `number` | `2` | Padding around a label when checking collisions. |
|
|
435
|
+
| `color` | `string` | `undefined` | Text color. |
|
|
436
|
+
| `formatter` | `ChartDataLabelFormatter` | `undefined` | Returns the label text; `null`, `undefined` or `""` hides that label. |
|
|
437
|
+
| `maxLabels` | `number` | `200` | Most labels the series shows. |
|
|
438
|
+
| `offset` | `number` | `6` | Distance in pixels from the mark. |
|
|
439
|
+
| `overflow` | `"clip" \| "hide"` | `"hide"` | What happens to a label at the plot edge. |
|
|
440
|
+
| `position` | `ChartDataLabelPosition` | `"auto"` | Placement. `"auto"` picks a free candidate and follows the direction. |
|
|
441
|
+
|
|
442
|
+
#### Viewport and navigation
|
|
443
|
+
|
|
444
|
+
`navigation` takes `true`, `false` or `ChartNavigationOptions`. All are on when `navigation` is `true`.
|
|
445
|
+
|
|
446
|
+
| Option | Type | Default | Meaning |
|
|
447
|
+
| :--- | :--- | :--- | :--- |
|
|
448
|
+
| `clampToData` | `boolean` | `true` | Keeps the viewport inside the data. |
|
|
449
|
+
| `constraints` | `readonly ChartViewportConstraint[]` | `[]` | Per-axis limits on span, zoom and visible categories. |
|
|
450
|
+
| `dragPan` | `boolean` | `true` | Drag to pan. |
|
|
451
|
+
| `keyboard` | `boolean` | `true` | `Shift` + arrows pan, `+` and `-` zoom, `0` resets. |
|
|
452
|
+
| `keyboardPanRatio` | `number` | `0.1` | Share of the plot one key press pans. |
|
|
453
|
+
| `keyboardZoomFactor` | `number` | `1.2` | Zoom factor of one key press. |
|
|
454
|
+
| `linkGroups` | `readonly ChartViewportLinkGroup[]` | `[]` | Axes in this chart that move together. |
|
|
455
|
+
| `minVisibleCategories` | `number` | `1` | Fewest categories a zoom can leave visible. |
|
|
456
|
+
| `pan` | `boolean` | `true` | Allows panning at all. |
|
|
457
|
+
| `panAxes` | `ChartNavigationAxisTarget` | `"auto"` | Axes that pan. |
|
|
458
|
+
| `pinchZoom` | `boolean` | `true` | Pinch to zoom. |
|
|
459
|
+
| `wheelSensitivity` | `number` | `0.002` | Zoom per wheel unit. |
|
|
460
|
+
| `wheelZoom` | `boolean` | `true` | Wheel to zoom. |
|
|
461
|
+
| `zoom` | `boolean` | `true` | Allows zooming at all. |
|
|
462
|
+
| `zoomAxes` | `ChartNavigationAxisTarget` | `"auto"` | Axes that zoom. |
|
|
463
|
+
|
|
464
|
+
The viewport is a `ChartViewportState`: `{ axes: ChartViewportWindow[] }`. A window is `{ kind: "continuous", axis, axisId, min, max }` or `{ kind: "category", axis, axisId, startIndex, endIndexExclusive }`.
|
|
465
|
+
|
|
466
|
+
`viewportChangeDetails` gives the `source` of a change (`"drag"`, `"wheel"`, `"pinch"`, `"keyboard"`, `"fit"`, `"reset"`, `"sync"`, `"programmatic"` or `"data-reconcile"`) and its `phase` (`"start"`, `"update"` or `"end"`).
|
|
467
|
+
|
|
468
|
+
#### Synchronization options
|
|
469
|
+
|
|
470
|
+
`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.
|
|
471
|
+
|
|
472
|
+
#### Animation
|
|
473
|
+
|
|
474
|
+
`animation` takes `true`, `false` or `ChartAnimationOptions`. Animation is skipped when the user prefers reduced motion.
|
|
475
|
+
|
|
476
|
+
| Option | Type | Default | Meaning |
|
|
477
|
+
| :--- | :--- | :--- | :--- |
|
|
478
|
+
| `data` | `boolean` | `true` | Animate data changes. |
|
|
479
|
+
| `duration` | `number` | `300` | Duration in milliseconds. |
|
|
480
|
+
| `easing` | `ChartAnimationEasing` | `"ease-out"` | `"linear"`, `"ease-in"`, `"ease-out"` or `"ease-in-out"`. |
|
|
481
|
+
| `enabled` | `boolean` | `true` | Animate at all. |
|
|
482
|
+
| `initial` | `boolean` | `true` | Animate the first render. |
|
|
483
|
+
| `visibility` | `boolean` | `true` | Animate visibility toggles. |
|
|
484
|
+
|
|
485
|
+
#### Downsampling options
|
|
486
|
+
|
|
487
|
+
`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.
|
|
488
|
+
|
|
489
|
+
| Option | Type | Meaning |
|
|
490
|
+
| :--- | :--- | :--- |
|
|
491
|
+
| `enabled` | `boolean` | Enables or disables reduction at the current chart or series scope. A chart-level disable wins over series settings. |
|
|
492
|
+
| `algorithm` | `"auto" \| "minmax" \| "lttb" \| "pixel"` | Requested reduction preference, constrained by family semantics. |
|
|
493
|
+
| `maxPoints` | `number` | Render-sample budget with family-specific meaning; it does not limit raw pointer, brush, selection, tooltip, or source-data interaction. |
|
|
494
|
+
| `samplesPerPixel` | `number` | Pixel-density multiplier used when deriving the render-sample budget. |
|
|
495
|
+
| `threshold` | `number` | Activation threshold for an eligible family; it does not make an otherwise ineligible axis or series family eligible. |
|
|
496
|
+
|
|
497
|
+
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.
|
|
498
|
+
|
|
499
|
+
### Two-Way Binding
|
|
500
|
+
|
|
501
|
+
| Binding | On | Holds |
|
|
502
|
+
| :--- | :--- | :--- |
|
|
503
|
+
| `[(viewport)]` | `<mona-chart>` | The viewport state. |
|
|
504
|
+
| `[(selectedMarkIds)]` | `<mona-chart-selection>` | The selected mark IDs. |
|
|
505
|
+
| `[(visible)]` | Every series | Whether the series is visible. |
|
|
506
|
+
| `[(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. |
|
|
507
|
+
| `[(hiddenItemIds)]` | `<mona-radial-bar-series>`, `<mona-rose-series>` | The hidden item IDs. |
|
|
508
|
+
| `[(hiddenNodeIds)]` | `<mona-treemap-series>` | The hidden top-level node IDs. |
|
|
509
|
+
| `[(hiddenStageIds)]` | `<mona-funnel-series>` | The hidden stage IDs. |
|
|
510
|
+
|
|
511
|
+
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.
|
|
512
|
+
|
|
513
|
+
### Locale
|
|
514
|
+
|
|
515
|
+
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.
|
|
516
|
+
|
|
517
|
+
### Right-to-left
|
|
518
|
+
|
|
519
|
+
The chart follows the direction of its host (`dir`, inherited, or CDK `Directionality`) and lays out again when it changes.
|
|
520
|
+
|
|
521
|
+
| Part | In RTL |
|
|
522
|
+
| :--- | :--- |
|
|
523
|
+
| Y axis | The default `position="start"` is on the right. `"end"` is on the left. `"left"` and `"right"` stay on that side. |
|
|
524
|
+
| Legend | Items run right to left. `position="start"` is on the right, `"end"` on the left; `"left"` and `"right"` stay on that side. |
|
|
525
|
+
| Title | The default `titleAlign="start"` is on the right. |
|
|
526
|
+
| Automatic data labels | A label beside a point prefers the left. Explicit positions stay as set. |
|
|
527
|
+
| X axis | Stays left to right, so categories and time read the same in both directions. |
|
|
528
|
+
|
|
529
|
+
## Accessibility
|
|
530
|
+
|
|
531
|
+
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.
|
|
532
|
+
|
|
533
|
+
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.
|
|
534
|
+
|
|
535
|
+
| Attribute | Where | Value |
|
|
536
|
+
| :--- | :--- | :--- |
|
|
537
|
+
| `role` | Host | `"application"`, or `"region"` with `landmark` |
|
|
538
|
+
| `aria-roledescription` | Host | The `chartRoleDescription` message, absent with `landmark` |
|
|
539
|
+
| `aria-label` | Host | The `aria-label` input, else `title`, else the `chart` message |
|
|
540
|
+
| `aria-describedby` | Host | A hidden description: the `aria-description` input, or else the subtitle and a summary of the data, followed by the keys |
|
|
541
|
+
| `tabindex` | Host | `0` |
|
|
542
|
+
| `aria-live` | A hidden announcer inside the chart | `"polite"`, with `aria-atomic="true"` |
|
|
543
|
+
|
|
544
|
+
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.
|
|
545
|
+
|
|
546
|
+
**Consumer responsibilities**
|
|
547
|
+
|
|
548
|
+
- Give each chart a name with `title` or `aria-label`. Without one, every chart is announced with the same generic name.
|
|
549
|
+
- Give each `landmark` chart a unique name.
|
|
550
|
+
|
|
551
|
+
### Keyboard Navigation
|
|
552
|
+
|
|
553
|
+
| Key | Action |
|
|
554
|
+
| :--- | :--- |
|
|
555
|
+
| `ArrowRight` / `ArrowLeft` | Navigate sequentially between angular spokes, buckets, or slices. |
|
|
556
|
+
| `ArrowUp` / `ArrowDown` | Switch between series at the currently focused spoke/coordinate. |
|
|
557
|
+
| `Home` / `End` | Jump to the first or last available spoke, bucket, or slice. |
|
|
558
|
+
| `Enter` | Emit `pointClick` for the focused point (and toggle its selection with `mona-chart-selection`). |
|
|
559
|
+
| `Space` | Toggle the focused point's selection with `mona-chart-selection`; otherwise emit `pointClick`. |
|
|
560
|
+
| `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. |
|
|
561
|
+
| `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. |
|
|
562
|
+
|
|
563
|
+
Keys pressed inside the legend or other projected content are left to that content.
|
|
564
|
+
|
|
565
|
+
## API
|
|
566
|
+
|
|
567
|
+
Everything below is imported from `@nanahoshi/mona-ui/chart`.
|
|
568
|
+
|
|
569
|
+
### `ChartComponent`
|
|
570
|
+
|
|
571
|
+
Root visualization container coordinating coordinate layouts, canvas rendering, theme styles, and interactions.
|
|
572
|
+
|
|
573
|
+
**Selector:** `mona-chart`
|
|
574
|
+
|
|
575
|
+
#### Inputs
|
|
576
|
+
|
|
577
|
+
| Name | Type | Default | Description |
|
|
578
|
+
| --- | --- | --- | --- |
|
|
579
|
+
| `animation` | `ChartAnimationInput` | `true` | Animation settings for initial render and subsequent data or visibility transitions. |
|
|
580
|
+
| `aria-description` | `string` | `""` | Detailed accessible description explaining the chart's purpose and trends. |
|
|
581
|
+
| `aria-label` | `string` | `""` | Accessible name for the chart container. |
|
|
582
|
+
| `class` | `string` | `""` | Additional CSS classes applied to chart root container. |
|
|
583
|
+
| `data` | `readonly unknown[]` | `[]` | Primary dataset shared across all child series. |
|
|
584
|
+
| `dataTable` | `boolean` | `false` | Renders a visually hidden table of the chart's data (its first 100 rows) for screen readers. |
|
|
585
|
+
| `defaultViewport` | `ChartViewportState \| undefined` | `undefined` | Initial default viewport window state for chart axes. |
|
|
586
|
+
| `downsampling` | `ChartDownsamplingInput` | `true` | High-density downsampling policy for eligible dense series. |
|
|
587
|
+
| `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. |
|
|
588
|
+
| `navigation` | `ChartNavigationInput` | `false` | Navigation, panning, and zooming options for the chart. |
|
|
589
|
+
| `renderer` | `ChartRendererMode` | `"canvas"` | The rendering engine used to draw the chart surface ("canvas" \| "svg"). |
|
|
590
|
+
| `subtitle` | `string` | `""` | Subtitle text rendered beneath the title. |
|
|
591
|
+
| `synchronization` | `ChartSynchronizationInput` | `false` | Cross-chart synchronization configuration. Accepts `false`, a group name shorthand, or full options. |
|
|
592
|
+
| `title` | `string` | `""` | Title text rendered above the plot area. |
|
|
593
|
+
| `titleAlign` | `ChartHeaderAlignment` | `"start"` | Horizontal alignment of the title and subtitle ('center', 'left', or 'right'). |
|
|
594
|
+
| `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. |
|
|
595
|
+
| `xField` | `ChartField` | `""` | Property key or accessor extracting the X-axis coordinate for each data item. |
|
|
596
|
+
|
|
597
|
+
#### Outputs
|
|
598
|
+
|
|
599
|
+
| Name | Type | Description |
|
|
600
|
+
| --- | --- | --- |
|
|
601
|
+
| `pointClick` | `ChartPointEvent<unknown>` | Emits when a data point, vertex, or bar in the chart is clicked. |
|
|
602
|
+
| `pointFocusChange` | `ChartPointFocusEvent<unknown>` | Emits when the keyboard focus moves to a new data point, spoke, or series. |
|
|
603
|
+
| `seriesVisibilityChange` | `ChartSeriesVisibilityEvent` | Emits when a series visibility state is toggled via legend interaction. |
|
|
604
|
+
| `viewportChange` | `ChartViewportState` | Emits the new viewport state when it changes via pan, zoom, fit, reset, or keyboard navigation. |
|
|
605
|
+
| `viewportChangeDetails` | `ChartViewportChangeEvent` | Emits with each viewport change, along with the previous state, source, gesture phase and changed axes. |
|
|
606
|
+
|
|
607
|
+
#### Methods
|
|
608
|
+
|
|
609
|
+
| Signature | Description |
|
|
610
|
+
| --- | --- |
|
|
611
|
+
| `downloadChart(options: ChartDownloadOptions): Promise<ChartExportResult>` | Exports and triggers a browser file download of the chart in PNG, SVG, or PDF format. |
|
|
612
|
+
| `exportChart(options: ChartExportOptions): Promise<ChartExportResult>` | Exports the chart as a binary Blob in PNG, SVG, or PDF format. |
|
|
613
|
+
| `fit(window: ChartViewportWindow \| readonly ChartViewportWindow[]): void` | **Deprecated.** Use 'setViewportWindow' instead. Fits the viewport window to a specified continuous range or category indices. |
|
|
614
|
+
| `fitViewport(target?: ChartNavigationAxisTarget): void` | Fits target axes (or all axes) to full canonical base domain. |
|
|
615
|
+
| `getViewport(): ChartViewportState \| null` | Returns the current active viewport window state, or null if chart is not Cartesian XY. |
|
|
616
|
+
| `invalidate(): void` | Schedules a new layout and paint, for changes the chart can't see, such as a mutated data array. |
|
|
617
|
+
| `pan(delta: { x: number; y: number }, target?: ChartNavigationAxisTarget): void` | Pans the viewport by pixel delta vector { x, y }. |
|
|
618
|
+
| `resetViewport(target?: ChartNavigationAxisTarget): void` | Resets the viewport window back to the default viewport (or base domain) for target axes. |
|
|
619
|
+
| `setViewport(viewport: ChartViewportState): void` | Sets the active viewport window state (full replacement). |
|
|
620
|
+
| `setViewportWindow(window: ChartViewportWindow \| readonly ChartViewportWindow[]): void` | Sets the viewport window for specific axis/axes (partial mutation). |
|
|
621
|
+
| `toggleSeriesVisibility(seriesId: string): void` | Toggles the visibility of a series. |
|
|
622
|
+
| `zoom(factor: number, anchor?: ChartPoint, target?: ChartNavigationAxisTarget): void` | Zooms the viewport by a scale factor around an optional pixel anchor point. |
|
|
623
|
+
|
|
624
|
+
### `TreemapSeriesComponent`
|
|
625
|
+
|
|
626
|
+
Renders hierarchical treemap visualizations using nested squarified, binary, dice, or slice-dice rectangles.
|
|
627
|
+
|
|
628
|
+
**Selector:** `mona-treemap-series`
|
|
629
|
+
|
|
630
|
+
#### Inputs
|
|
631
|
+
|
|
632
|
+
| Name | Type | Default | Description |
|
|
633
|
+
| --- | --- | --- | --- |
|
|
634
|
+
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to leaf node rectangles. |
|
|
635
|
+
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for node labels. |
|
|
636
|
+
| `childrenField` | `ChartField` | `"children"` | Property key or accessor function extracting child nodes from a hierarchical data object. |
|
|
637
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
638
|
+
| `color` | `string` | `""` | Fallback base fill color applied to series or root branches. |
|
|
639
|
+
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit fill color for a node. |
|
|
640
|
+
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors assigned to top-level branches and inherited down subtrees. |
|
|
641
|
+
| `data` | `readonly unknown[] \| unknown \| undefined` | `undefined` | Hierarchical root object or array of root nodes overriding chart-level data. |
|
|
642
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting the numeric value for a leaf node. |
|
|
643
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of leaf node fills (0 to 1). |
|
|
644
|
+
| `hiddenNodeIds` (two-way) | `readonly string[]` | `[]` | The hidden top-level node IDs. Bind `[(hiddenNodeIds)]` for two-way binding; legend toggles write to it. |
|
|
645
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across data updates. |
|
|
646
|
+
| `labelField` | `ChartField` | `"name"` | Property key or accessor extracting the display label for a node. |
|
|
647
|
+
| `labelFormatter` | `ChartValueFormatter \| undefined` | `undefined` | **Deprecated.** Use `categoryFormatter`, as on the other series. Formatter callback for node display labels. |
|
|
648
|
+
| `maxDepth` | `number \| undefined` | `undefined` | Maximum tree depth to layout and render. Normalized: finite <= 0 becomes 1, finite > 0 is floored, undefined/NaN/Infinity is unlimited. |
|
|
649
|
+
| `maxLabels` | `number` | `100` | Maximum number of DOM label candidates to render (prioritizing parent headers and largest leaf areas). |
|
|
650
|
+
| `minLabelHeight` | `number \| undefined` | `undefined` | Minimum pixel height required for a node to display a DOM label (defaults to 16 when showValues is false, 24 when true). |
|
|
651
|
+
| `minLabelWidth` | `number \| undefined` | `undefined` | Minimum pixel width required for a node to display a DOM label (defaults to 30). |
|
|
652
|
+
| `name` | `string` | `"Treemap"` | Series name used in tooltips and accessibility announcements. |
|
|
653
|
+
| `paddingInner` | `number` | `2` | Inner padding in pixels between sibling treemap rectangles. |
|
|
654
|
+
| `paddingOuter` | `number` | `4` | Outer padding in pixels around parent boundaries. |
|
|
655
|
+
| `parentFillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to non-leaf parent group background rectangles. |
|
|
656
|
+
| `parentHeaderHeight` | `number \| undefined` | `undefined` | Header height in pixels reserved for parent node header labels. |
|
|
657
|
+
| `showLabels` | `boolean` | `true` | Whether to display DOM labels for leaf and terminal nodes. |
|
|
658
|
+
| `showParentLabels` | `boolean` | `true` | Whether to reserve header space and display labels for parent grouping nodes. |
|
|
659
|
+
| `showValues` | `boolean` | `false` | Whether to display numeric values in default leaf labels. |
|
|
660
|
+
| `sort` | `ChartTreemapSort` | `"descending"` | Sort order for sibling nodes: "descending", "ascending", or "none". |
|
|
661
|
+
| `strokeColor` | `string` | `""` | Color of node boundary stroke borders. |
|
|
662
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for node boundary borders. |
|
|
663
|
+
| `tile` | `ChartTreemapTile` | `"squarify"` | D3 treemap tiling algorithm: "squarify", "binary", "dice", "slice", or "slice-dice". |
|
|
664
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for numeric values in labels and tooltips. |
|
|
665
|
+
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
666
|
+
|
|
667
|
+
#### Outputs
|
|
668
|
+
|
|
669
|
+
| Name | Type | Description |
|
|
670
|
+
| --- | --- | --- |
|
|
671
|
+
| `hiddenNodeIdsChange` | `readonly string[]` | Emitted when `hiddenNodeIds` changes. |
|
|
672
|
+
| `nodeVisibilityChange` | `ChartTreemapNodeVisibilityEvent<unknown>` | Emits when an individual node or branch's visibility is toggled via the legend. |
|
|
673
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
674
|
+
|
|
675
|
+
#### Methods
|
|
676
|
+
|
|
677
|
+
| Signature | Description |
|
|
678
|
+
| --- | --- |
|
|
679
|
+
| `toggleNode(nodeId: string): boolean` | Shows or hides the node with this id, and returns whether it's now visible. |
|
|
680
|
+
|
|
681
|
+
### `RadialBarSeriesComponent`
|
|
682
|
+
|
|
683
|
+
Renders concentric circular progress rings with customizable bar gap, thickness, rounded corners, and background
|
|
684
|
+
tracks.
|
|
685
|
+
|
|
686
|
+
**Selector:** `mona-radial-bar-series`
|
|
687
|
+
|
|
688
|
+
#### Inputs
|
|
689
|
+
|
|
690
|
+
| Name | Type | Default | Description |
|
|
691
|
+
| --- | --- | --- | --- |
|
|
692
|
+
| `barGap` | `number` | `4` | Spacing in pixels between concentric radial rings. |
|
|
693
|
+
| `barThickness` | `number \| undefined` | `undefined` | Explicit radial thickness in pixels for each bar ring. |
|
|
694
|
+
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each radial ring. |
|
|
695
|
+
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for ring category labels. |
|
|
696
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
697
|
+
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each radial ring. |
|
|
698
|
+
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive radial rings. |
|
|
699
|
+
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to arc endpoints. |
|
|
700
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
701
|
+
| `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
702
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric value for each radial ring. |
|
|
703
|
+
| `fillMode` | `ChartRadialArcFillMode` | `"solid"` | Fill style applied to radial rings ("solid" or radial "gradient"). |
|
|
704
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of bar fills (between 0 and 1). |
|
|
705
|
+
| `hiddenItemIds` (two-way) | `readonly string[]` | `[]` | The hidden item IDs. Bind `[(hiddenItemIds)]` for two-way binding; legend toggles write to it. |
|
|
706
|
+
| `innerRadiusRatio` | `number` | `0.2` | Inner radius ratio relative to available plot bounds (0 to 1). |
|
|
707
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
708
|
+
| `max` | `number \| undefined` | `undefined` | Explicit maximum value for the radial bar progress scale. |
|
|
709
|
+
| `min` | `number \| undefined` | `undefined` | Explicit minimum value for the radial bar progress scale. |
|
|
710
|
+
| `name` | `string` | `"Radial Bar"` | Series name used in tooltips and accessibility announcements. |
|
|
711
|
+
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
712
|
+
| `showTrack` | `boolean` | `true` | Whether to display background circular track rings. |
|
|
713
|
+
| `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
714
|
+
| `strokeColor` | `string` | `""` | Color of bar stroke boundary. |
|
|
715
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for bar boundaries. |
|
|
716
|
+
| `trackColor` | `string` | `""` | Color of background track rings. |
|
|
717
|
+
| `trackOpacity` | `number \| undefined` | `undefined` | Opacity of background track rings. |
|
|
718
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for bar numeric values. |
|
|
719
|
+
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
720
|
+
|
|
721
|
+
#### Outputs
|
|
722
|
+
|
|
723
|
+
| Name | Type | Description |
|
|
724
|
+
| --- | --- | --- |
|
|
725
|
+
| `datumVisibilityChange` | `ChartRadialDatumVisibilityEvent` | Emits when an individual ring's visibility is toggled via the legend. |
|
|
726
|
+
| `hiddenItemIdsChange` | `readonly string[]` | Emitted when `hiddenItemIds` changes. |
|
|
727
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
728
|
+
|
|
729
|
+
#### Methods
|
|
730
|
+
|
|
731
|
+
| Signature | Description |
|
|
732
|
+
| --- | --- |
|
|
733
|
+
| `toggleDatum(itemId: string): boolean` | Shows or hides the bar with this id, and returns whether it's now visible. |
|
|
734
|
+
|
|
735
|
+
### `FunnelSeriesComponent`
|
|
736
|
+
|
|
737
|
+
Renders conversion pipeline and sales funnel visualizations using connected trapezoidal stages. Supports vertical and
|
|
738
|
+
horizontal layouts, custom stage colors, inscribed DOM labels, widening stages (>100% conversion), and dynamic stage
|
|
739
|
+
visibility toggling.
|
|
740
|
+
|
|
741
|
+
**Selector:** `mona-funnel-series`
|
|
742
|
+
|
|
743
|
+
#### Inputs
|
|
744
|
+
|
|
745
|
+
| Name | Type | Default | Description |
|
|
746
|
+
| --- | --- | --- | --- |
|
|
747
|
+
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting stage names. |
|
|
748
|
+
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Optional custom formatter for category names. |
|
|
749
|
+
| `class` | `string` | `""` | CSS class name applied to the hidden series host element. |
|
|
750
|
+
| `color` | `string` | `""` | Uniform fill color for all funnel stages. |
|
|
751
|
+
| `colorField` | `ChartField \| undefined` | `undefined` | Property key extracting discrete colors per datum. |
|
|
752
|
+
| `colors` | `readonly string[] \| undefined` | `undefined` | Palette array of colors cycled across stages. |
|
|
753
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Array of stage data items overriding chart-level root data. |
|
|
754
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting numeric values. |
|
|
755
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to stage trapezoids (0 to 1). |
|
|
756
|
+
| `gap` | `number` | `2` | Spacing in pixels between consecutive funnel stages. |
|
|
757
|
+
| `hiddenStageIds` (two-way) | `readonly string[]` | `[]` | The hidden stage IDs. Bind `[(hiddenStageIds)]` for two-way binding; legend toggles write to it. |
|
|
758
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Unique identifier key field for datums. |
|
|
759
|
+
| `labelContent` | `ChartFunnelLabelContent` | `"category-value"` | Content format for automatic stage labels. |
|
|
760
|
+
| `maxLabels` | `number` | `100` | Maximum number of visible stage labels rendered simultaneously. |
|
|
761
|
+
| `minLabelHeight` | `number \| undefined` | `undefined` | Minimum stage height required in vertical orientation to render label. |
|
|
762
|
+
| `minLabelWidth` | `number \| undefined` | `undefined` | Minimum stage width required in horizontal orientation to render label. |
|
|
763
|
+
| `name` | `string` | `"Funnel"` | Descriptive series name displayed in chart legend and tooltips. |
|
|
764
|
+
| `orientation` | `ChartFunnelOrientation` | `"vertical"` | Layout orientation of the funnel ('vertical' or 'horizontal'). |
|
|
765
|
+
| `showLabels` | `boolean` | `true` | Controls whether built-in stage text labels are rendered. |
|
|
766
|
+
| `strokeColor` | `string` | `""` | Stroke outline color for stage trapezoids. |
|
|
767
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for stage trapezoids. |
|
|
768
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter function for numeric values. |
|
|
769
|
+
| `visible` (two-way) | `boolean` | `true` | Controls overall visibility of the funnel series. |
|
|
770
|
+
| `widthRatio` | `number` | `0.9` | Maximum width ratio (0 to 1) for the funnel's widest stage relative to plot area. |
|
|
771
|
+
|
|
772
|
+
#### Outputs
|
|
773
|
+
|
|
774
|
+
| Name | Type | Description |
|
|
775
|
+
| --- | --- | --- |
|
|
776
|
+
| `hiddenStageIdsChange` | `readonly string[]` | Emitted when `hiddenStageIds` changes. |
|
|
777
|
+
| `stageVisibilityChange` | `ChartFunnelStageVisibilityEvent<unknown>` | Emits when a stage's visibility is toggled via legend or API. |
|
|
778
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
779
|
+
|
|
780
|
+
#### Methods
|
|
781
|
+
|
|
782
|
+
| Signature | Description |
|
|
783
|
+
| --- | --- |
|
|
784
|
+
| `isDatumVisible(stageId: string): boolean` | Whether the stage with this id is visible. |
|
|
785
|
+
| `resetVisibility(): void` | Shows every stage again. |
|
|
786
|
+
| `setDatumVisibility(stageId: string, visible: boolean): void` | Shows or hides the stage with this id. |
|
|
787
|
+
| `toggleDatumVisibility(stageId: string): boolean` | Shows or hides the stage with this id, and returns whether it's now visible. |
|
|
788
|
+
|
|
789
|
+
### `DonutSeriesComponent`
|
|
790
|
+
|
|
791
|
+
Renders a full or partial donut. Use `ng-template[monaChartCenterTemplate]` for the center.
|
|
792
|
+
|
|
793
|
+
**Selector:** `mona-donut-series`
|
|
794
|
+
|
|
795
|
+
#### Inputs
|
|
796
|
+
|
|
797
|
+
| Name | Type | Default | Description |
|
|
798
|
+
| --- | --- | --- | --- |
|
|
799
|
+
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each slice. |
|
|
800
|
+
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice category labels. |
|
|
801
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
802
|
+
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each slice. |
|
|
803
|
+
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive slices. |
|
|
804
|
+
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to slice arc boundaries. |
|
|
805
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
806
|
+
| `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
807
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric slice value. |
|
|
808
|
+
| `fillMode` | `ChartPolarFillMode` | `"solid"` | Fill style applied to slices ("solid" or radial "gradient" from center to arc). |
|
|
809
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of slice fills (between 0 and 1). |
|
|
810
|
+
| `hiddenIndices` (two-way) | `readonly number[]` | `[]` | The hidden data indices. Bind `[(hiddenIndices)]` for two-way binding; legend toggles write to it. |
|
|
811
|
+
| `innerRadiusRatio` | `number` | `0.6` | Ratio of the inner hole radius relative to the outer radius (0 to 0.95). |
|
|
812
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
813
|
+
| `labelContent` | `ChartPolarLabelContent` | `"percentage"` | Content to display in default slice data labels. |
|
|
814
|
+
| `labelPosition` | `ChartPolarLabelPosition` | `"outside"` | Placement position for slice data labels ("outside" with leader lines or "inside" slice bounds). |
|
|
815
|
+
| `minLabelAngle` | `number` | `12` | Minimum slice arc angle in degrees required to render an inside data label. |
|
|
816
|
+
| `name` | `string` | `"Donut"` | Series name used in tooltips and accessibility announcements. |
|
|
817
|
+
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
818
|
+
| `padAngle` | `number` | `0` | Angular padding in degrees between adjacent slices. |
|
|
819
|
+
| `showLabels` | `boolean` | `false` | Whether to display inside slice data labels. |
|
|
820
|
+
| `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
821
|
+
| `strokeColor` | `string` | `""` | Color of slice separator strokes. |
|
|
822
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for slice separators. |
|
|
823
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice numeric values. |
|
|
824
|
+
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
825
|
+
|
|
826
|
+
#### Outputs
|
|
827
|
+
|
|
828
|
+
| Name | Type | Description |
|
|
829
|
+
| --- | --- | --- |
|
|
830
|
+
| `hiddenIndicesChange` | `readonly number[]` | Emitted when `hiddenIndices` changes. |
|
|
831
|
+
| `sliceVisibilityChange` | `ChartSliceVisibilityEvent` | Emits when an individual slice's visibility is toggled via the legend. |
|
|
832
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
833
|
+
|
|
834
|
+
#### Methods
|
|
835
|
+
|
|
836
|
+
| Signature | Description |
|
|
837
|
+
| --- | --- |
|
|
838
|
+
| `toggleSlice(dataIndex: number): boolean` | Shows or hides the slice at `dataIndex`, and returns whether it's now visible. |
|
|
839
|
+
|
|
840
|
+
### `OhlcSeriesComponent`
|
|
841
|
+
|
|
842
|
+
Renders traditional financial OHLC (Open-High-Low-Close) bar series with vertical high/low price spans, left-facing
|
|
843
|
+
open ticks, right-facing close ticks, and directional color coding.
|
|
844
|
+
|
|
845
|
+
**Selector:** `mona-ohlc-series`
|
|
846
|
+
|
|
847
|
+
#### Inputs
|
|
848
|
+
|
|
849
|
+
| Name | Type | Default | Description |
|
|
850
|
+
| --- | --- | --- | --- |
|
|
851
|
+
| `bodyWidth` | `number \| undefined` | `undefined` | Explicit total width in pixels for open/close tick arms. |
|
|
852
|
+
| `bodyWidthRatio` | `number` | `0.7` | Ratio of available category slot or mark spacing allocated to open/close tick arms (0.0 to 1.0). |
|
|
853
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
854
|
+
| `closeField` (required) | `ChartField` | — | Property key or accessor extracting the closing price for each data item. |
|
|
855
|
+
| `color` | `string \| undefined` | `undefined` | Optional color override applied uniformly across all OHLC ticks and stems. |
|
|
856
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
857
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
858
|
+
| `fallingColor` | `string` | `""` | Color for falling / bearish bars (close < open). |
|
|
859
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill and stroke opacity ratio (0 to 1). |
|
|
860
|
+
| `highField` (required) | `ChartField` | — | Property key or accessor extracting the highest price for each data item. |
|
|
861
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
862
|
+
| `lowField` (required) | `ChartField` | — | Property key or accessor extracting the lowest price for each data item. |
|
|
863
|
+
| `maxBodyWidth` | `number` | `32` | Maximum total tick width in pixels. |
|
|
864
|
+
| `name` | `string` | `"OHLC"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
865
|
+
| `neutralColor` | `string` | `""` | Color for neutral / flat bars (close === open). |
|
|
866
|
+
| `opacity` | `number \| undefined` | `undefined` | **Deprecated.** Use `fillOpacity`, as on the other series. Overall opacity multiplier applied to OHLC stems and tick arms. |
|
|
867
|
+
| `openField` (required) | `ChartField` | — | Property key or accessor extracting the opening price for each data item. |
|
|
868
|
+
| `risingColor` | `string` | `""` | Color for rising / bullish bars (close > open). |
|
|
869
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
870
|
+
| `tickLength` | `number \| undefined` | `undefined` | Length in pixels for horizontal open and close tick arms. |
|
|
871
|
+
| `tickWidth` | `number \| undefined` | `undefined` | Backward-compatible alias for tickLength. |
|
|
872
|
+
| `valueFormatter` | `ChartAxisFormatter \| undefined` | `undefined` | Formatter callback transforming financial numeric values into custom display strings. |
|
|
873
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
874
|
+
| `wickColor` | `string` | `""` | Explicit stroke color for the central vertical stem. |
|
|
875
|
+
| `wickWidth` | `number` | `1` | Pixel stroke width for OHLC stems and tick arms. |
|
|
876
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
877
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
|
|
878
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
879
|
+
|
|
880
|
+
#### Outputs
|
|
881
|
+
|
|
882
|
+
| Name | Type | Description |
|
|
883
|
+
| --- | --- | --- |
|
|
884
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
885
|
+
|
|
886
|
+
### `CandlestickSeriesComponent`
|
|
887
|
+
|
|
888
|
+
Renders financial Japanese candlestick series with central high/low wicks, rectangular open/close bodies,
|
|
889
|
+
rising/falling/neutral color coding, and solid or hollow rising bodies.
|
|
890
|
+
|
|
891
|
+
**Selector:** `mona-candlestick-series`
|
|
892
|
+
|
|
893
|
+
#### Inputs
|
|
894
|
+
|
|
895
|
+
| Name | Type | Default | Description |
|
|
896
|
+
| --- | --- | --- | --- |
|
|
897
|
+
| `bodyWidth` | `number \| undefined` | `undefined` | Explicit body width in pixels for candlestick candles. |
|
|
898
|
+
| `bodyWidthRatio` | `number` | `0.7` | Ratio of available category slot or mark spacing allocated to candle bodies (0.0 to 1.0). |
|
|
899
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
900
|
+
| `closeField` (required) | `ChartField` | — | Property key or accessor extracting the closing price for each data item. |
|
|
901
|
+
| `color` | `string \| undefined` | `undefined` | Optional color override applied uniformly across all candle bodies. |
|
|
902
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
903
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
904
|
+
| `fallingColor` | `string` | `""` | Color for falling / bearish candles (close < open). |
|
|
905
|
+
| `fillMode` | `ChartFinancialFillMode` | `"hollow"` | Visual fill mode for candle bodies: 'filled' (solid fill) or 'hollow' (rising hollow, falling filled). |
|
|
906
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill and stroke opacity ratio (0 to 1). |
|
|
907
|
+
| `highField` (required) | `ChartField` | — | Property key or accessor extracting the highest price for each data item. |
|
|
908
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
909
|
+
| `lowField` (required) | `ChartField` | — | Property key or accessor extracting the lowest price for each data item. |
|
|
910
|
+
| `maxBodyWidth` | `number` | `32` | Maximum candle body width in pixels. |
|
|
911
|
+
| `name` | `string` | `"Candlestick"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
912
|
+
| `neutralColor` | `string` | `""` | Color for neutral / flat candles (close === open). |
|
|
913
|
+
| `opacity` | `number \| undefined` | `undefined` | **Deprecated.** Use `fillOpacity`, as on the other series. Overall opacity multiplier applied to candle wicks and bodies. |
|
|
914
|
+
| `openField` (required) | `ChartField` | — | Property key or accessor extracting the opening price for each data item. |
|
|
915
|
+
| `risingColor` | `string` | `""` | Color for rising / bullish candles (close > open). |
|
|
916
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
917
|
+
| `valueFormatter` | `ChartAxisFormatter \| undefined` | `undefined` | Formatter callback transforming financial numeric values into custom display strings. |
|
|
918
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
919
|
+
| `wickColor` | `string` | `""` | Explicit stroke color for the upper and lower wicks. |
|
|
920
|
+
| `wickWidth` | `number` | `1` | Pixel stroke width for candle wicks. |
|
|
921
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
922
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
|
|
923
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
924
|
+
|
|
925
|
+
#### Outputs
|
|
926
|
+
|
|
927
|
+
| Name | Type | Description |
|
|
928
|
+
| --- | --- | --- |
|
|
929
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
930
|
+
|
|
931
|
+
### `PieSeriesComponent`
|
|
932
|
+
|
|
933
|
+
Renders a full or partial pie.
|
|
934
|
+
|
|
935
|
+
**Selector:** `mona-pie-series`
|
|
936
|
+
|
|
937
|
+
#### Inputs
|
|
938
|
+
|
|
939
|
+
| Name | Type | Default | Description |
|
|
940
|
+
| --- | --- | --- | --- |
|
|
941
|
+
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each slice. |
|
|
942
|
+
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice category labels. |
|
|
943
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
944
|
+
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each slice. |
|
|
945
|
+
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive slices. |
|
|
946
|
+
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to slice arc boundaries. |
|
|
947
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
948
|
+
| `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
949
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric slice value. |
|
|
950
|
+
| `fillMode` | `ChartPolarFillMode` | `"solid"` | Fill style applied to slices ("solid" or radial "gradient" from center to arc). |
|
|
951
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of slice fills (between 0 and 1). |
|
|
952
|
+
| `hiddenIndices` (two-way) | `readonly number[]` | `[]` | The hidden data indices. Bind `[(hiddenIndices)]` for two-way binding; legend toggles write to it. |
|
|
953
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
954
|
+
| `labelContent` | `ChartPolarLabelContent` | `"percentage"` | Content to display in default slice data labels. |
|
|
955
|
+
| `labelPosition` | `ChartPolarLabelPosition` | `"outside"` | Placement position for slice data labels ("outside" with leader lines or "inside" slice bounds). |
|
|
956
|
+
| `minLabelAngle` | `number` | `12` | Minimum slice arc angle in degrees required to render an inside data label. |
|
|
957
|
+
| `name` | `string` | `"Pie"` | Series name used in tooltips and accessibility announcements. |
|
|
958
|
+
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
959
|
+
| `padAngle` | `number` | `0` | Angular padding in degrees between adjacent slices. |
|
|
960
|
+
| `showLabels` | `boolean` | `false` | Whether to display inside slice data labels. |
|
|
961
|
+
| `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
962
|
+
| `strokeColor` | `string` | `""` | Color of slice separator strokes. |
|
|
963
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for slice separators. |
|
|
964
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for slice numeric values. |
|
|
965
|
+
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
966
|
+
|
|
967
|
+
#### Outputs
|
|
968
|
+
|
|
969
|
+
| Name | Type | Description |
|
|
970
|
+
| --- | --- | --- |
|
|
971
|
+
| `hiddenIndicesChange` | `readonly number[]` | Emitted when `hiddenIndices` changes. |
|
|
972
|
+
| `sliceVisibilityChange` | `ChartSliceVisibilityEvent` | Emits when an individual slice's visibility is toggled via the legend. |
|
|
973
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
974
|
+
|
|
975
|
+
#### Methods
|
|
976
|
+
|
|
977
|
+
| Signature | Description |
|
|
978
|
+
| --- | --- |
|
|
979
|
+
| `toggleSlice(dataIndex: number): boolean` | Shows or hides the slice at `dataIndex`, and returns whether it's now visible. |
|
|
980
|
+
|
|
981
|
+
### `GaugeSeriesComponent`
|
|
982
|
+
|
|
983
|
+
Renders circular or semi-circular gauge meters with value progress arcs, tapered needles, central hubs, and centered
|
|
984
|
+
value projection.
|
|
985
|
+
|
|
986
|
+
**Selector:** `mona-gauge-series`
|
|
987
|
+
|
|
988
|
+
#### Inputs
|
|
989
|
+
|
|
990
|
+
| Name | Type | Default | Description |
|
|
991
|
+
| --- | --- | --- | --- |
|
|
992
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
993
|
+
| `color` | `string` | `""` | Primary color of the gauge value arc. |
|
|
994
|
+
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to gauge arc endpoints. |
|
|
995
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
996
|
+
| `endAngle` | `number` | `120` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
997
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric gauge value when direct value is not set. |
|
|
998
|
+
| `fillMode` | `ChartRadialArcFillMode` | `"solid"` | Fill style applied to gauge value arc ("solid" or radial "gradient"). |
|
|
999
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of gauge value arc fill (between 0 and 1). |
|
|
1000
|
+
| `hubRadius` | `number` | `5` | Radius in pixels of the needle center hub circle. |
|
|
1001
|
+
| `indicator` | `ChartGaugeIndicator` | `"arc"` | Indicator mode: "arc" (progress arc), "needle" (pointer needle), or "both". |
|
|
1002
|
+
| `innerRadiusRatio` | `number` | `0.72` | Inner radius ratio relative to outer radius (0 to 1). |
|
|
1003
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1004
|
+
| `max` | `number` | `100` | Maximum domain value. |
|
|
1005
|
+
| `min` | `number` | `0` | Minimum domain value. |
|
|
1006
|
+
| `name` | `string` | `"Gauge"` | Series name used in tooltips and accessibility announcements. |
|
|
1007
|
+
| `needleColor` | `string` | `""` | Color of the needle and center hub. |
|
|
1008
|
+
| `needleLengthRatio` | `number` | `0.78` | Length of the needle pointer as a fraction of outer radius (0.1 to 1). |
|
|
1009
|
+
| `needleWidth` | `number` | `2` | Stroke width in pixels for the needle pointer. |
|
|
1010
|
+
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
1011
|
+
| `showValue` | `boolean` | `true` | Whether to display the formatted value in the center of the gauge. |
|
|
1012
|
+
| `startAngle` | `number` | `-120` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
1013
|
+
| `trackColor` | `string` | `""` | Color of background track arc. |
|
|
1014
|
+
| `trackOpacity` | `number \| undefined` | `undefined` | Opacity of background track arc. |
|
|
1015
|
+
| `value` | `number \| undefined` | `undefined` | Direct scalar value for the gauge. When defined, takes precedence over data/field. |
|
|
1016
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for gauge numeric values. |
|
|
1017
|
+
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
1018
|
+
|
|
1019
|
+
#### Outputs
|
|
1020
|
+
|
|
1021
|
+
| Name | Type | Description |
|
|
1022
|
+
| --- | --- | --- |
|
|
1023
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1024
|
+
|
|
1025
|
+
### `WaterfallSeriesComponent`
|
|
1026
|
+
|
|
1027
|
+
Renders financial cash-flow and contribution movements with positive delta increases, negative delta decreases,
|
|
1028
|
+
zero-change neutral bars, intermediate subtotals, and cumulative grand totals.
|
|
1029
|
+
|
|
1030
|
+
**Selector:** `mona-waterfall-series`
|
|
1031
|
+
|
|
1032
|
+
#### Inputs
|
|
1033
|
+
|
|
1034
|
+
| Name | Type | Default | Description |
|
|
1035
|
+
| --- | --- | --- | --- |
|
|
1036
|
+
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to the four corners of waterfall bars. |
|
|
1037
|
+
| `class` | `string` | `""` | CSS class name applied to the hidden series host element for custom styling hooks. |
|
|
1038
|
+
| `connectorColor` | `string` | `""` | Color of the horizontal connector lines joining consecutive bars. |
|
|
1039
|
+
| `connectorWidth` | `number \| undefined` | `undefined` | Line width in pixels of the connector lines between steps. |
|
|
1040
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Array of step data items overriding chart-level root data. |
|
|
1041
|
+
| `decreaseColor` | `string` | `""` | Fill color for negative change steps (decreases). |
|
|
1042
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting the numeric value/delta for each step. |
|
|
1043
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to waterfall bars (0 to 1). |
|
|
1044
|
+
| `increaseColor` | `string` | `""` | Fill color for positive change steps (increases). |
|
|
1045
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Unique identifier key field for datums. |
|
|
1046
|
+
| `kindField` | `ChartField \| undefined` | `"kind"` | Property key or accessor extracting step kind ('change' \| 'subtotal' \| 'total'). |
|
|
1047
|
+
| `maxBarWidth` | `number \| undefined` | `undefined` | Maximum width in pixels for waterfall bars. |
|
|
1048
|
+
| `maxLabels` | `number` | `100` | Maximum number of visible step labels rendered simultaneously. |
|
|
1049
|
+
| `minLabelWidth` | `number \| undefined` | `undefined` | Minimum bar width in pixels required to render its value label. |
|
|
1050
|
+
| `name` | `string` | `"Waterfall"` | Descriptive series name displayed in chart legend and tooltips. |
|
|
1051
|
+
| `neutralColor` | `string` | `""` | Fill color for zero-change steps. |
|
|
1052
|
+
| `showConnectors` | `boolean` | `true` | Controls whether horizontal connector lines are drawn between steps. |
|
|
1053
|
+
| `showLabels` | `boolean` | `false` | Controls whether built-in value text labels are rendered. |
|
|
1054
|
+
| `startValue` | `number` | `0` | Starting cumulative baseline value before the first step. |
|
|
1055
|
+
| `strokeColor` | `string` | `""` | Stroke outline color for waterfall bars. |
|
|
1056
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for waterfall bars. |
|
|
1057
|
+
| `subtotalColor` | `string` | `""` | Fill color for subtotal steps that anchor to baseline without resetting cumulative count. |
|
|
1058
|
+
| `totalColor` | `string` | `""` | Fill color for final total summary steps. |
|
|
1059
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter function for numeric values. |
|
|
1060
|
+
| `visible` (two-way) | `boolean` | `true` | Controls overall visibility of the waterfall series. |
|
|
1061
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting category / step names. |
|
|
1062
|
+
|
|
1063
|
+
#### Outputs
|
|
1064
|
+
|
|
1065
|
+
| Name | Type | Description |
|
|
1066
|
+
| --- | --- | --- |
|
|
1067
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1068
|
+
|
|
1069
|
+
### `RoseSeriesComponent`
|
|
1070
|
+
|
|
1071
|
+
Renders Nightingale rose (coxcomb) charts with angular category petals whose radial extent scales by area or radius.
|
|
1072
|
+
|
|
1073
|
+
**Selector:** `mona-rose-series`
|
|
1074
|
+
|
|
1075
|
+
#### Inputs
|
|
1076
|
+
|
|
1077
|
+
| Name | Type | Default | Description |
|
|
1078
|
+
| --- | --- | --- | --- |
|
|
1079
|
+
| `categoryField` | `ChartField` | `"category"` | Property key or accessor extracting the category label for each rose petal. |
|
|
1080
|
+
| `categoryFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for category labels. |
|
|
1081
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series. |
|
|
1082
|
+
| `colorField` | `ChartField \| undefined` | `undefined` | Accessor function or property key extracting an explicit color for each petal. |
|
|
1083
|
+
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of colors used to fill successive rose petals. |
|
|
1084
|
+
| `cornerRadius` | `number \| undefined` | `undefined` | Corner radius in pixels applied to outer petal corners. |
|
|
1085
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
1086
|
+
| `endAngle` | `number` | `360` | Ending angle in degrees (clockwise from 12 o'clock). |
|
|
1087
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the numeric petal value. |
|
|
1088
|
+
| `fillMode` | `ChartRadialArcFillMode` | `"solid"` | Fill style applied to rose petals ("solid" or radial "gradient"). |
|
|
1089
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity of petal fills (between 0 and 1). |
|
|
1090
|
+
| `hiddenItemIds` (two-way) | `readonly string[]` | `[]` | The hidden item IDs. Bind `[(hiddenItemIds)]` for two-way binding; legend toggles write to it. |
|
|
1091
|
+
| `innerRadiusRatio` | `number` | `0` | Inner radius ratio relative to available plot bounds (0 to 1). |
|
|
1092
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1093
|
+
| `name` | `string` | `"Rose"` | Series name used in tooltips and accessibility announcements. |
|
|
1094
|
+
| `outerRadiusRatio` | `number` | `0.9` | Outer radius ratio relative to available plot bounds (0.1 to 1). |
|
|
1095
|
+
| `padAngle` | `number` | `2` | Angular padding in degrees between adjacent rose petals. |
|
|
1096
|
+
| `scaleMode` | `ChartRoseScaleMode` | `"area"` | Scale mode for petal radius: "area" (annular area proportional to value) or "radius" (linear radial distance). |
|
|
1097
|
+
| `startAngle` | `number` | `0` | Starting angle in degrees (0 is 12 o'clock, clockwise). |
|
|
1098
|
+
| `strokeColor` | `string` | `""` | Color of petal separator strokes. |
|
|
1099
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for petal boundaries. |
|
|
1100
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formatter callback for petal numeric values. |
|
|
1101
|
+
| `visible` (two-way) | `boolean` | `true` | Two-way bindable visibility of the series. |
|
|
1102
|
+
|
|
1103
|
+
#### Outputs
|
|
1104
|
+
|
|
1105
|
+
| Name | Type | Description |
|
|
1106
|
+
| --- | --- | --- |
|
|
1107
|
+
| `datumVisibilityChange` | `ChartRadialDatumVisibilityEvent` | Emits when an individual petal's visibility is toggled via the legend. |
|
|
1108
|
+
| `hiddenItemIdsChange` | `readonly string[]` | Emitted when `hiddenItemIds` changes. |
|
|
1109
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1110
|
+
|
|
1111
|
+
#### Methods
|
|
1112
|
+
|
|
1113
|
+
| Signature | Description |
|
|
1114
|
+
| --- | --- |
|
|
1115
|
+
| `toggleDatum(itemId: string): boolean` | Shows or hides the petal with this id, and returns whether it's now visible. |
|
|
1116
|
+
|
|
1117
|
+
### `AreaSeriesComponent`
|
|
1118
|
+
|
|
1119
|
+
Renders a continuous Cartesian area series supporting gradient fades, solid fills, cumulative stacking, and 100%
|
|
1120
|
+
normalized bands.
|
|
1121
|
+
|
|
1122
|
+
**Selector:** `mona-area-series`
|
|
1123
|
+
|
|
1124
|
+
#### Inputs
|
|
1125
|
+
|
|
1126
|
+
| Name | Type | Default | Description |
|
|
1127
|
+
| --- | --- | --- | --- |
|
|
1128
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1129
|
+
| `color` | `string` | `""` | Explicit stroke and fill color override for the area series. |
|
|
1130
|
+
| `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
|
|
1131
|
+
| `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
|
|
1132
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1133
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1134
|
+
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1135
|
+
| `field` | `ChartField` | `""` | Property key or accessor extracting the Y value for each data item. |
|
|
1136
|
+
| `fillMode` | `ChartAreaFillMode` | `"gradient"` | Area fill style (`"gradient"` fading to zero baseline, or uniform `"solid"`). |
|
|
1137
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Maximum opacity applied to the area fill. |
|
|
1138
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1139
|
+
| `lineStyle` | `ChartLineStyle` | `"solid"` | Stroke pattern used for the area's boundary line (`"solid"`, `"dashed"`, or `"dotted"`). |
|
|
1140
|
+
| `name` | `string` | `""` | Name of the series displayed in legends and tooltips. |
|
|
1141
|
+
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers. |
|
|
1142
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1143
|
+
| `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along the top boundary line. |
|
|
1144
|
+
| `stack` | `string \| undefined` | `undefined` | Named stack group to participate in. Series with matching trimmed stack names stack together. |
|
|
1145
|
+
| `stackMode` | `ChartStackMode` | `"normal"` | Stacking mode used when stack is specified: 'normal' for raw cumulative values, or 'percent' for 100% normalized segments. |
|
|
1146
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the area boundary line. |
|
|
1147
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw Y/data values in tooltips and live region announcements. |
|
|
1148
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1149
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1150
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
|
|
1151
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1152
|
+
|
|
1153
|
+
#### Outputs
|
|
1154
|
+
|
|
1155
|
+
| Name | Type | Description |
|
|
1156
|
+
| --- | --- | --- |
|
|
1157
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1158
|
+
|
|
1159
|
+
### `ChartXAxisComponent`
|
|
1160
|
+
|
|
1161
|
+
Configures an X axis in Cartesian charts. Add more than one with distinct `axisId` values for multiple axes.
|
|
1162
|
+
|
|
1163
|
+
**Selector:** `mona-chart-x-axis`
|
|
1164
|
+
|
|
1165
|
+
#### Inputs
|
|
1166
|
+
|
|
1167
|
+
| Name | Type | Default | Description |
|
|
1168
|
+
| --- | --- | --- | --- |
|
|
1169
|
+
| `axisId` | `string \| undefined` | `undefined` | Optional semantic identifier for the X axis, referenced by series `xAxisId`. |
|
|
1170
|
+
| `axisLine` | `boolean` | `true` | Whether the solid baseline axis border line is rendered. |
|
|
1171
|
+
| `exponent` | `number` | `1` | Exponent for power scale (`type="pow"`). Must be a positive finite number. |
|
|
1172
|
+
| `field` | `ChartField \| undefined` | `undefined` | Optional data field name for the X axis categories or values. |
|
|
1173
|
+
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for axis tick labels. |
|
|
1174
|
+
| `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. |
|
|
1175
|
+
| `labelMaxWidth` | `number \| undefined` | `undefined` | Maximum unrotated width in pixels for tick labels before truncation. |
|
|
1176
|
+
| `labelPadding` | `number \| undefined` | `undefined` | Spacing in pixels between the axis baseline / tick marks and tick labels. |
|
|
1177
|
+
| `labelRotation` | `ChartAxisLabelRotation` | `0` | Explicit rotation angle in degrees for tick labels (-90 to 90), or 'auto' for responsive automatic angling. |
|
|
1178
|
+
| `labels` | `boolean` | `true` | Whether the axis tick labels are rendered in the DOM. |
|
|
1179
|
+
| `logBase` | `number` | `10` | Base logarithm for log scale (`type="log"`). Must be a positive finite number not equal to 1. |
|
|
1180
|
+
| `max` | `number \| Date \| undefined` | `undefined` | Explicit upper bound for the axis range. |
|
|
1181
|
+
| `min` | `number \| Date \| undefined` | `undefined` | Explicit lower bound for the axis range. |
|
|
1182
|
+
| `nice` | `boolean` | `true` | Automatically extends the axis domain to round, pleasant values. |
|
|
1183
|
+
| `position` | `ChartXAxisPosition` | `"bottom"` | Position of the X axis relative to the plot area. |
|
|
1184
|
+
| `symlogConstant` | `number` | `1` | Constant for symlog scale (`type="symlog"`). Must be a positive finite number. |
|
|
1185
|
+
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of ticks to display along the axis (acts as preferred label count for category axes). |
|
|
1186
|
+
| `tickMarks` | `boolean` | `false` | Whether tick mark lines extending outward from the baseline are drawn. |
|
|
1187
|
+
| `tickSize` | `number \| undefined` | `undefined` | Length in pixels of outward tick mark lines. |
|
|
1188
|
+
| `title` | `string` | `""` | Title text rendered alongside the axis. |
|
|
1189
|
+
| `titlePadding` | `number \| undefined` | `undefined` | Spacing in pixels between the outward extent of tick labels and the axis title. |
|
|
1190
|
+
| `type` | `ChartXAxisType` | `"auto"` | Scale type for the X axis (`"auto"`, `"category"`, `"linear"`, `"log"`, `"symlog"`, `"pow"`, `"sqrt"`, `"time"`, or `"utc"`). |
|
|
1191
|
+
| `visible` | `boolean` | `true` | Whether the axis and its labels are visible. |
|
|
1192
|
+
|
|
1193
|
+
### `HeatmapSeriesComponent`
|
|
1194
|
+
|
|
1195
|
+
Renders a matrix of cells colored by value, with a color scale in the legend.
|
|
1196
|
+
|
|
1197
|
+
**Selector:** `mona-heatmap-series`
|
|
1198
|
+
|
|
1199
|
+
#### Inputs
|
|
1200
|
+
|
|
1201
|
+
| Name | Type | Default | Description |
|
|
1202
|
+
| --- | --- | --- | --- |
|
|
1203
|
+
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels for each individual heat cell. |
|
|
1204
|
+
| `cellGap` | `number` | `1` | Spacing gap in pixels between adjacent cells. |
|
|
1205
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1206
|
+
| `color` | `string` | `""` | Explicit primary base color used to derive the heat palette. |
|
|
1207
|
+
| `colorMode` | `ChartHeatmapColorMode` | `"sequential"` | Color scale mapping mode: 'sequential' for continuous single-hue intensity or 'diverging' for dual-pole deviations. |
|
|
1208
|
+
| `colors` | `readonly string[] \| undefined` | `undefined` | Explicit array of color stops defining the gradient palette. |
|
|
1209
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding root chart data. |
|
|
1210
|
+
| `field` (required) | `ChartField` | — | Property key or accessor extracting the numeric heat value for each cell. |
|
|
1211
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to the heat cells (0 to 1). |
|
|
1212
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1213
|
+
| `max` | `number \| undefined` | `undefined` | Explicit upper bound for the numeric value color domain. |
|
|
1214
|
+
| `midpoint` | `number \| undefined` | `undefined` | Explicit central midpoint for diverging color scales. |
|
|
1215
|
+
| `min` | `number \| undefined` | `undefined` | Explicit lower bound for the numeric value color domain. |
|
|
1216
|
+
| `name` | `string` | `"Heatmap"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
1217
|
+
| `showValues` | `boolean` | `false` | Whether to render numeric value labels inside individual heat cells on Canvas. |
|
|
1218
|
+
| `strokeColor` | `string` | `""` | Explicit border stroke color for individual heat cells. |
|
|
1219
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for cell borders. |
|
|
1220
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw cell values in labels, tooltips, and live regions. |
|
|
1221
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1222
|
+
| `xCategories` | `readonly unknown[] \| undefined` | `undefined` | Explicit category ordering for the X axis columns. |
|
|
1223
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X column category for each cell. |
|
|
1224
|
+
| `yCategories` | `readonly unknown[] \| undefined` | `undefined` | Explicit category ordering for the Y axis rows. |
|
|
1225
|
+
| `yField` (required) | `ChartField` | — | Property key or accessor extracting the Y row category for each cell. |
|
|
1226
|
+
|
|
1227
|
+
#### Outputs
|
|
1228
|
+
|
|
1229
|
+
| Name | Type | Description |
|
|
1230
|
+
| --- | --- | --- |
|
|
1231
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1232
|
+
|
|
1233
|
+
### `ChartYAxisComponent`
|
|
1234
|
+
|
|
1235
|
+
Configures a Y axis in Cartesian charts. Add more than one with distinct `axisId` values for multiple axes.
|
|
1236
|
+
|
|
1237
|
+
**Selector:** `mona-chart-y-axis`
|
|
1238
|
+
|
|
1239
|
+
#### Inputs
|
|
1240
|
+
|
|
1241
|
+
| Name | Type | Default | Description |
|
|
1242
|
+
| --- | --- | --- | --- |
|
|
1243
|
+
| `axisId` | `string \| undefined` | `undefined` | Optional semantic identifier for the Y axis, referenced by series `yAxisId`. |
|
|
1244
|
+
| `axisLine` | `boolean` | `true` | Whether the solid baseline axis border line is rendered. |
|
|
1245
|
+
| `exponent` | `number` | `1` | Exponent for power scale (`type="pow"`). Must be a positive finite number. |
|
|
1246
|
+
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for axis tick labels. |
|
|
1247
|
+
| `gridLines` | `boolean \| undefined` | `undefined` | Whether horizontal grid lines aligned with Y-axis ticks are visible. Defaults to true in standard Cartesian and false for horizontal value axes. |
|
|
1248
|
+
| `labelMaxWidth` | `number \| undefined` | `undefined` | Maximum unrotated width in pixels for tick labels before truncation. |
|
|
1249
|
+
| `labelPadding` | `number \| undefined` | `undefined` | Spacing in pixels between the axis baseline / tick marks and tick labels. |
|
|
1250
|
+
| `labelRotation` | `ChartAxisLabelRotation` | `0` | Explicit rotation angle in degrees for tick labels (-90 to 90), or 'auto' for responsive automatic angling. |
|
|
1251
|
+
| `labels` | `boolean` | `true` | Whether the axis tick labels are rendered in the DOM. |
|
|
1252
|
+
| `logBase` | `number` | `10` | Base logarithm for log scale (`type="log"`). Must be a positive finite number not equal to 1. |
|
|
1253
|
+
| `max` | `number \| undefined` | `undefined` | Explicit upper bound for the numeric value range. |
|
|
1254
|
+
| `min` | `number \| undefined` | `undefined` | Explicit lower bound for the numeric value range. |
|
|
1255
|
+
| `nice` | `boolean` | `true` | Automatically extends the axis domain to round, pleasant values. |
|
|
1256
|
+
| `position` | `ChartYAxisPosition` | `"start"` | Position of the Y axis relative to the plot area. `start` and `end` follow the direction; `left` and `right` stay on that side. |
|
|
1257
|
+
| `symlogConstant` | `number` | `1` | Constant for symlog scale (`type="symlog"`). Must be a positive finite number. |
|
|
1258
|
+
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of ticks to display along the axis (acts as preferred label count for category axes). |
|
|
1259
|
+
| `tickMarks` | `boolean` | `false` | Whether tick mark lines extending outward from the baseline are drawn. |
|
|
1260
|
+
| `tickSize` | `number \| undefined` | `undefined` | Length in pixels of outward tick mark lines. |
|
|
1261
|
+
| `title` | `string` | `""` | Title text rendered alongside the axis. |
|
|
1262
|
+
| `titlePadding` | `number \| undefined` | `undefined` | Spacing in pixels between the outward extent of tick labels and the axis title. |
|
|
1263
|
+
| `type` | `ChartYAxisType` | `"auto"` | Scale type for the Y axis (`"auto"`, `"category"`, `"linear"`, `"log"`, `"symlog"`, `"pow"`, or `"sqrt"`). |
|
|
1264
|
+
| `visible` | `boolean` | `true` | Whether the axis and its labels are visible. |
|
|
1265
|
+
|
|
1266
|
+
### `BubbleSeriesComponent`
|
|
1267
|
+
|
|
1268
|
+
Renders 3-dimensional data points with position (X, Y) and proportionally-scaled circle areas (Size).
|
|
1269
|
+
|
|
1270
|
+
**Selector:** `mona-bubble-series`
|
|
1271
|
+
|
|
1272
|
+
#### Inputs
|
|
1273
|
+
|
|
1274
|
+
| Name | Type | Default | Description |
|
|
1275
|
+
| --- | --- | --- | --- |
|
|
1276
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1277
|
+
| `color` | `string` | `""` | Explicit fill color for the bubbles. |
|
|
1278
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1279
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1280
|
+
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1281
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the Y value for each data item. |
|
|
1282
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity for bubbles between 0 and 1. |
|
|
1283
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1284
|
+
| `maxRadius` | `number` | `24` | Maximum rendered pixel radius for the largest data size value. |
|
|
1285
|
+
| `minRadius` | `number` | `4` | Minimum rendered pixel radius for the smallest data size value. |
|
|
1286
|
+
| `name` | `string` | `"Bubble"` | Name of the series displayed in legends and tooltips. |
|
|
1287
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1288
|
+
| `sizeField` | `ChartField` | `"size"` | Property key or accessor extracting the size magnitude for each bubble. |
|
|
1289
|
+
| `sizeFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Optional custom formatter for displaying bubble size values in tooltips. |
|
|
1290
|
+
| `strokeColor` | `string` | `""` | Stroke outline color for bubble markers. |
|
|
1291
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for bubble marker outlines. |
|
|
1292
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formats this series' values in tooltips, data labels and announcements, without changing the axis ticks. Takes precedence over the axis formatter. |
|
|
1293
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1294
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1295
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
|
|
1296
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1297
|
+
|
|
1298
|
+
#### Outputs
|
|
1299
|
+
|
|
1300
|
+
| Name | Type | Description |
|
|
1301
|
+
| --- | --- | --- |
|
|
1302
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1303
|
+
|
|
1304
|
+
### `RangeAreaSeriesComponent`
|
|
1305
|
+
|
|
1306
|
+
Renders continuous Cartesian vertical range bands/areas bounded between lower and upper values (e.g. confidence
|
|
1307
|
+
intervals, forecast envelopes, or high/low bands).
|
|
1308
|
+
|
|
1309
|
+
**Selector:** `mona-range-area-series`
|
|
1310
|
+
|
|
1311
|
+
#### Inputs
|
|
1312
|
+
|
|
1313
|
+
| Name | Type | Default | Description |
|
|
1314
|
+
| --- | --- | --- | --- |
|
|
1315
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1316
|
+
| `color` | `string` | `""` | Explicit stroke and fill color override for the range area series. |
|
|
1317
|
+
| `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
|
|
1318
|
+
| `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
|
|
1319
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1320
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1321
|
+
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1322
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Maximum opacity applied to the range area fill. |
|
|
1323
|
+
| `fromField` (required) | `ChartField` | — | Property key or accessor extracting the starting range value for each data item. |
|
|
1324
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1325
|
+
| `name` | `string` | `"Range Area"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
1326
|
+
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers drawn along the boundary curves. |
|
|
1327
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1328
|
+
| `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along both boundary curves. |
|
|
1329
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the boundary lines. |
|
|
1330
|
+
| `toField` (required) | `ChartField` | — | Property key or accessor extracting the ending range value for each data item. |
|
|
1331
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw range values in tooltips and live region announcements. |
|
|
1332
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1333
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1334
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
|
|
1335
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1336
|
+
|
|
1337
|
+
#### Outputs
|
|
1338
|
+
|
|
1339
|
+
| Name | Type | Description |
|
|
1340
|
+
| --- | --- | --- |
|
|
1341
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1342
|
+
|
|
1343
|
+
### `LineSeriesComponent`
|
|
1344
|
+
|
|
1345
|
+
Renders a continuous Cartesian line series with configurable interpolation, optional null-gap joining, point markers,
|
|
1346
|
+
data labels, and multi-axis binding.
|
|
1347
|
+
|
|
1348
|
+
**Selector:** `mona-line-series`
|
|
1349
|
+
|
|
1350
|
+
#### Inputs
|
|
1351
|
+
|
|
1352
|
+
| Name | Type | Default | Description |
|
|
1353
|
+
| --- | --- | --- | --- |
|
|
1354
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1355
|
+
| `color` | `string` | `""` | Explicit stroke color override for the series line. |
|
|
1356
|
+
| `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
|
|
1357
|
+
| `curve` | `ChartCurve` | `"linear"` | Curve interpolation style (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, or `"step-after"`). |
|
|
1358
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1359
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1360
|
+
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1361
|
+
| `field` | `ChartField` | `""` | Property key or accessor extracting the Y value for each data item. |
|
|
1362
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1363
|
+
| `lineStyle` | `ChartLineStyle` | `"solid"` | Stroke pattern used to render the series line (`"solid"`, `"dashed"`, or `"dotted"`). |
|
|
1364
|
+
| `name` | `string` | `""` | Name of the series displayed in legends and tooltips. |
|
|
1365
|
+
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers. |
|
|
1366
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1367
|
+
| `showPoints` | `boolean` | `false` | Whether to draw point markers at each data coordinate along the line. |
|
|
1368
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the series line. |
|
|
1369
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formats this series' values in tooltips, data labels and announcements, without changing the axis ticks. Takes precedence over the axis formatter. |
|
|
1370
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1371
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1372
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
|
|
1373
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1374
|
+
|
|
1375
|
+
#### Outputs
|
|
1376
|
+
|
|
1377
|
+
| Name | Type | Description |
|
|
1378
|
+
| --- | --- | --- |
|
|
1379
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1380
|
+
|
|
1381
|
+
### `BarSeriesComponent`
|
|
1382
|
+
|
|
1383
|
+
Renders a Cartesian bar series supporting standalone bars, grouped slots, stacked segments, and 100% normalized
|
|
1384
|
+
stacks.
|
|
1385
|
+
|
|
1386
|
+
**Selector:** `mona-bar-series`
|
|
1387
|
+
|
|
1388
|
+
#### Inputs
|
|
1389
|
+
|
|
1390
|
+
| Name | Type | Default | Description |
|
|
1391
|
+
| --- | --- | --- | --- |
|
|
1392
|
+
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels for the bar caps. |
|
|
1393
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1394
|
+
| `color` | `string` | `""` | Explicit fill color override for the series bars. |
|
|
1395
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1396
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1397
|
+
| `field` | `ChartField` | `""` | Property key or accessor extracting the Y/value for each bar. |
|
|
1398
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to the bars. |
|
|
1399
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1400
|
+
| `maxBarWidth` | `number \| undefined` | `undefined` | Maximum width in pixels for each individual bar. |
|
|
1401
|
+
| `name` | `string` | `""` | Name of the series displayed in legends and tooltips. |
|
|
1402
|
+
| `orientation` | `ChartBarOrientation` | `"vertical"` | Orientation of the bars ('vertical' for column bars, 'horizontal' for row bars). |
|
|
1403
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1404
|
+
| `stack` | `string \| undefined` | `undefined` | Named stack group to participate in. Series with matching trimmed stack names stack together. |
|
|
1405
|
+
| `stackMode` | `ChartStackMode` | `"normal"` | Stacking mode used when stack is specified: 'normal' for raw cumulative values, or 'percent' for 100% normalized segments. |
|
|
1406
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw Y/data values in tooltips and live region announcements. |
|
|
1407
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1408
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1409
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X/category value, overriding the root chart X field. |
|
|
1410
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1411
|
+
|
|
1412
|
+
#### Outputs
|
|
1413
|
+
|
|
1414
|
+
| Name | Type | Description |
|
|
1415
|
+
| --- | --- | --- |
|
|
1416
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1417
|
+
|
|
1418
|
+
### `ChartAnnotationComponent`
|
|
1419
|
+
|
|
1420
|
+
Renders callouts, milestone badges, and outlier markers anchored to specific (X, Y) coordinates.
|
|
1421
|
+
|
|
1422
|
+
**Selector:** `mona-chart-annotation`
|
|
1423
|
+
|
|
1424
|
+
#### Inputs
|
|
1425
|
+
|
|
1426
|
+
| Name | Type | Default | Description |
|
|
1427
|
+
| --- | --- | --- | --- |
|
|
1428
|
+
| `class` | `string` | `""` | Custom CSS class name applied to the annotation host. |
|
|
1429
|
+
| `color` | `string \| undefined` | `undefined` | Stroke and marker color for the annotation. |
|
|
1430
|
+
| `connector` | `boolean` | `true` | Sets whether a connector line is drawn between the anchor point and the label. |
|
|
1431
|
+
| `connectorWidth` | `number` | `1` | Connector stroke width in pixels. |
|
|
1432
|
+
| `data` | `unknown` | `undefined` | Custom data object provided to template context. |
|
|
1433
|
+
| `label` | `string` | `""` | Text label displayed for the annotation. |
|
|
1434
|
+
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
1435
|
+
| `labelPlacement` | `ChartAnnotationLabelPlacement` | `"top"` | Relative placement of the label from the anchor point: 'top', 'bottom', 'left', or 'right'. |
|
|
1436
|
+
| `marker` | `ChartAnnotationMarker` | `"circle"` | Marker shape drawn at the anchor point: 'circle', 'diamond', or 'none'. |
|
|
1437
|
+
| `markerRadius` | `number` | `4` | Marker radius in pixels. |
|
|
1438
|
+
| `markerStrokeWidth` | `number` | `1.5` | Marker stroke width in pixels. |
|
|
1439
|
+
| `offsetX` | `number` | `0` | Additional horizontal pixel offset for label positioning. |
|
|
1440
|
+
| `offsetY` | `number` | `0` | Additional vertical pixel offset for label positioning. |
|
|
1441
|
+
| `visible` | `boolean` | `true` | Sets whether the annotation is visible. |
|
|
1442
|
+
| `x` (required) | `ChartAnnotationAxisValue` | — | X coordinate value or category key for the annotation anchor. |
|
|
1443
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Explicit target X axis identifier. Defaults to primary X axis. |
|
|
1444
|
+
| `y` (required) | `ChartAnnotationAxisValue` | — | Y coordinate value or category key for the annotation anchor. |
|
|
1445
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Explicit target Y axis identifier. Defaults to primary Y axis. |
|
|
1446
|
+
|
|
1447
|
+
### `RangeBarSeriesComponent`
|
|
1448
|
+
|
|
1449
|
+
Renders floating Cartesian range bars spanning between a lower value and an upper value (e.g. min/max temperatures,
|
|
1450
|
+
price spans, or SLA tolerances).
|
|
1451
|
+
|
|
1452
|
+
**Selector:** `mona-range-bar-series`
|
|
1453
|
+
|
|
1454
|
+
#### Inputs
|
|
1455
|
+
|
|
1456
|
+
| Name | Type | Default | Description |
|
|
1457
|
+
| --- | --- | --- | --- |
|
|
1458
|
+
| `borderRadius` | `number \| undefined` | `undefined` | Corner radius in pixels for the floating bar caps. |
|
|
1459
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1460
|
+
| `color` | `string` | `""` | Explicit fill color override for the range bars. |
|
|
1461
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1462
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1463
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity applied to the range bars. |
|
|
1464
|
+
| `fromField` (required) | `ChartField` | — | Property key or accessor extracting the starting range value for each bar. |
|
|
1465
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1466
|
+
| `maxBarWidth` | `number \| undefined` | `undefined` | Maximum width in pixels for each individual range bar. |
|
|
1467
|
+
| `name` | `string` | `"Range Bar"` | Name of the series displayed in legends, tooltips, and live region announcements. |
|
|
1468
|
+
| `orientation` | `ChartBarOrientation` | `"vertical"` | Orientation of the range bars ('vertical' for vertical spans, 'horizontal' for horizontal intervals). |
|
|
1469
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1470
|
+
| `toField` (required) | `ChartField` | — | Property key or accessor extracting the ending range value for each bar. |
|
|
1471
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter for raw range values in tooltips and live region announcements. |
|
|
1472
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1473
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1474
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X/category value, overriding the root chart X field. |
|
|
1475
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1476
|
+
|
|
1477
|
+
#### Outputs
|
|
1478
|
+
|
|
1479
|
+
| Name | Type | Description |
|
|
1480
|
+
| --- | --- | --- |
|
|
1481
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1482
|
+
|
|
1483
|
+
### `ScatterSeriesComponent`
|
|
1484
|
+
|
|
1485
|
+
Renders individual point markers across continuous numeric (linear) or temporal (time/utc) Cartesian coordinates.
|
|
1486
|
+
|
|
1487
|
+
**Selector:** `mona-scatter-series`
|
|
1488
|
+
|
|
1489
|
+
#### Inputs
|
|
1490
|
+
|
|
1491
|
+
| Name | Type | Default | Description |
|
|
1492
|
+
| --- | --- | --- | --- |
|
|
1493
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1494
|
+
| `color` | `string` | `""` | Explicit fill color for the scatter points. |
|
|
1495
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1496
|
+
| `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
|
|
1497
|
+
| `downsampling` | `ChartDownsamplingInput \| undefined` | `undefined` | Per-series high-density downsampling override. Undefined inherits the chart policy. |
|
|
1498
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor extracting the Y value for each data item. |
|
|
1499
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity for scatter points between 0 and 1. |
|
|
1500
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1501
|
+
| `name` | `string` | `"Scatter"` | Name of the series displayed in legends and tooltips. |
|
|
1502
|
+
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for scatter point markers. |
|
|
1503
|
+
| `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
|
|
1504
|
+
| `strokeColor` | `string` | `""` | Stroke outline color for scatter point markers. |
|
|
1505
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for scatter point markers. |
|
|
1506
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Formats this series' values in tooltips, data labels and announcements, without changing the axis ticks. Takes precedence over the axis formatter. |
|
|
1507
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
|
|
1508
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
|
|
1509
|
+
| `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X value, overriding the root chart X field. |
|
|
1510
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
|
|
1511
|
+
|
|
1512
|
+
#### Outputs
|
|
1513
|
+
|
|
1514
|
+
| Name | Type | Description |
|
|
1515
|
+
| --- | --- | --- |
|
|
1516
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1517
|
+
|
|
1518
|
+
### `PolarSeriesComponent`
|
|
1519
|
+
|
|
1520
|
+
Renders continuous polar series mapping magnitude over continuous degree angles (0° to 360°).
|
|
1521
|
+
|
|
1522
|
+
**Selector:** `mona-polar-series`
|
|
1523
|
+
|
|
1524
|
+
#### Inputs
|
|
1525
|
+
|
|
1526
|
+
| Name | Type | Default | Description |
|
|
1527
|
+
| --- | --- | --- | --- |
|
|
1528
|
+
| `angleField` | `ChartField` | `"angle"` | **Deprecated.** Use `categoryField`, as on the other series. Property key or accessor function extracting the degree angle (0° to 360°) for each data item. |
|
|
1529
|
+
| `categoryField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the angle for each point. Takes precedence over `angleField`. |
|
|
1530
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1531
|
+
| `color` | `string` | `""` | Explicit stroke and marker color override for the series. |
|
|
1532
|
+
| `connectNulls` | `boolean` | `false` | Whether to connect points across null or invalid values without gaps. |
|
|
1533
|
+
| `curve` | `ChartRadialCurve` | `"linear"` | Radial curve interpolation style (`"linear"` or `"smooth"`). |
|
|
1534
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1535
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting the numeric radial distance/value for each data item. |
|
|
1536
|
+
| `fillMode` | `ChartRadialFillMode` | `"none"` | Fill mode applied to the area between the data curve and the chart center pole (`"none"`, `"solid"`, or `"gradient"`). |
|
|
1537
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity ratio for polar area fills (0 to 1). |
|
|
1538
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1539
|
+
| `name` | `string` | `"Polar"` | Series name displayed in legends, tooltips, and accessibility regions. |
|
|
1540
|
+
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers. |
|
|
1541
|
+
| `showPoints` | `boolean` | `false` | Whether to draw point markers at each valid angular coordinate. |
|
|
1542
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the outer data line. |
|
|
1543
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter function for numeric values in tooltips and live region announcements. |
|
|
1544
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the polar series is visible on the chart. |
|
|
1545
|
+
|
|
1546
|
+
#### Outputs
|
|
1547
|
+
|
|
1548
|
+
| Name | Type | Description |
|
|
1549
|
+
| --- | --- | --- |
|
|
1550
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1551
|
+
|
|
1552
|
+
### `RadarSeriesComponent`
|
|
1553
|
+
|
|
1554
|
+
Renders closed polygonal radar series comparing categorical metrics across angular spokes.
|
|
1555
|
+
|
|
1556
|
+
**Selector:** `mona-radar-series`
|
|
1557
|
+
|
|
1558
|
+
#### Inputs
|
|
1559
|
+
|
|
1560
|
+
| Name | Type | Default | Description |
|
|
1561
|
+
| --- | --- | --- | --- |
|
|
1562
|
+
| `categoryField` | `ChartField` | `"category"` | Property key or accessor function extracting the angular spoke category for each data item. |
|
|
1563
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
|
|
1564
|
+
| `color` | `string` | `""` | Explicit stroke and marker color override for the series. |
|
|
1565
|
+
| `connectNulls` | `boolean` | `false` | Whether to connect adjacent valid category points across missing or null categories. |
|
|
1566
|
+
| `curve` | `ChartRadialCurve` | `"linear"` | Radial interpolation curve (`"linear"` or `"smooth"`). |
|
|
1567
|
+
| `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
|
|
1568
|
+
| `field` | `ChartField` | `"value"` | Property key or accessor function extracting the numeric radial value for each data item. |
|
|
1569
|
+
| `fillMode` | `ChartRadialFillMode` | `"none"` | Fill mode applied to the radar polygon (`"none"`, `"solid"`, or `"gradient"`). |
|
|
1570
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Opacity ratio for polygon interior fills (0 to 1). |
|
|
1571
|
+
| `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
|
|
1572
|
+
| `name` | `string` | `"Radar"` | Series name displayed in legends, tooltips, and accessibility regions. |
|
|
1573
|
+
| `pointRadius` | `number \| undefined` | `undefined` | Radius in pixels for point markers rendered at category vertices. |
|
|
1574
|
+
| `showPoints` | `boolean` | `true` | Whether to draw point markers at each category vertex along the radar polygon. |
|
|
1575
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Stroke width in pixels for the outer polygon boundary. |
|
|
1576
|
+
| `valueFormatter` | `ChartValueFormatter \| undefined` | `undefined` | Custom formatter function for numeric values in tooltips and live region announcements. |
|
|
1577
|
+
| `visible` (two-way) | `boolean` | `true` | Whether the radar series is visible on the chart. |
|
|
1578
|
+
|
|
1579
|
+
#### Outputs
|
|
1580
|
+
|
|
1581
|
+
| Name | Type | Description |
|
|
1582
|
+
| --- | --- | --- |
|
|
1583
|
+
| `visibleChange` | `boolean` | Emitted when `visible` changes. |
|
|
1584
|
+
|
|
1585
|
+
### `ChartCrosshairComponent`
|
|
1586
|
+
|
|
1587
|
+
Renders dynamic crosshair guide lines and axis label badges for pointer and keyboard navigation in Cartesian XY
|
|
1588
|
+
charts.
|
|
1589
|
+
|
|
1590
|
+
**Selector:** `mona-chart-crosshair`
|
|
1591
|
+
|
|
1592
|
+
#### Inputs
|
|
1593
|
+
|
|
1594
|
+
| Name | Type | Default | Description |
|
|
1595
|
+
| --- | --- | --- | --- |
|
|
1596
|
+
| `class` | `string` | `""` | Custom CSS class name applied to the crosshair. |
|
|
1597
|
+
| `color` | `string \| undefined` | `undefined` | Stroke color for the crosshair line. |
|
|
1598
|
+
| `enabled` | `boolean` | `true` | Sets whether crosshair interaction is enabled. |
|
|
1599
|
+
| `labelOffset` | `number` | `4` | Pixel offset between axis line and crosshair label badge. |
|
|
1600
|
+
| `lineStyle` | `ChartCrosshairLineStyle` | `"dashed"` | Line dash style for the crosshair. |
|
|
1601
|
+
| `lineWidth` | `number \| undefined` | `undefined` | Line stroke width in pixels. |
|
|
1602
|
+
| `maxSnapDistance` | `number` | `32` | Maximum pixel distance for nearest mark snapping. |
|
|
1603
|
+
| `mode` | `ChartCrosshairMode` | `"auto"` | Crosshair display mode: auto (follows interaction axis), x, y, or xy. |
|
|
1604
|
+
| `opacity` | `number \| undefined` | `undefined` | Stroke opacity for the crosshair line (0 to 1). |
|
|
1605
|
+
| `showAxisLabels` | `boolean` | `true` | Sets whether axis value badges are displayed. |
|
|
1606
|
+
| `showXLabel` | `boolean \| undefined` | `undefined` | Sets whether the X axis label badge is displayed. |
|
|
1607
|
+
| `showYLabel` | `boolean \| undefined` | `undefined` | Sets whether the Y axis label badge is displayed. |
|
|
1608
|
+
| `snap` | `ChartCrosshairSnapMode` | `"nearest"` | Snapping mode: nearest semantic mark or raw pointer position. |
|
|
1609
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Explicit target X axis identifier. |
|
|
1610
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Explicit target Y axis identifier. |
|
|
1611
|
+
|
|
1612
|
+
### `ChartReferenceBandComponent`
|
|
1613
|
+
|
|
1614
|
+
Renders highlighted threshold intervals and target regions in Cartesian XY charts.
|
|
1615
|
+
|
|
1616
|
+
**Selector:** `mona-chart-reference-band`
|
|
1617
|
+
|
|
1618
|
+
#### Inputs
|
|
1619
|
+
|
|
1620
|
+
| Name | Type | Default | Description |
|
|
1621
|
+
| --- | --- | --- | --- |
|
|
1622
|
+
| `axis` (required) | `"x" \| "y"` | — | Target Cartesian axis dimension: 'x' or 'y'. |
|
|
1623
|
+
| `axisId` | `string \| undefined` | `undefined` | Explicit identifier of the target axis. Defaults to primary axis for the dimension. |
|
|
1624
|
+
| `borderColor` | `string \| undefined` | `undefined` | Border stroke color of the reference band. |
|
|
1625
|
+
| `borderWidth` | `number \| undefined` | `undefined` | Border stroke width of the reference band in pixels. |
|
|
1626
|
+
| `class` | `string` | `""` | Custom CSS class name applied to the reference band host. |
|
|
1627
|
+
| `fillColor` | `string \| undefined` | `undefined` | Fill color of the reference band. |
|
|
1628
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity of the reference band (0 to 1). |
|
|
1629
|
+
| `from` (required) | `ChartAnnotationAxisValue` | — | Starting coordinate value or category key for the reference band. |
|
|
1630
|
+
| `label` | `string` | `""` | Text label displayed inside or alongside the reference band. |
|
|
1631
|
+
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
1632
|
+
| `labelOffset` | `number` | `6` | Pixel offset between the band boundary and the label. |
|
|
1633
|
+
| `labelPosition` | `ChartReferenceLabelPosition` | `"center"` | Alignment position for the label: 'start', 'center', or 'end'. |
|
|
1634
|
+
| `layer` | `ChartOverlayLayer` | `"underlay"` | Render layer: 'underlay' (behind series) or 'overlay' (in front of series). |
|
|
1635
|
+
| `to` (required) | `ChartAnnotationAxisValue` | — | Ending coordinate value or category key for the reference band. |
|
|
1636
|
+
| `visible` | `boolean` | `true` | Sets whether the reference band is visible. |
|
|
1637
|
+
|
|
1638
|
+
### `ChartBrushComponent`
|
|
1639
|
+
|
|
1640
|
+
Selects a region of a Cartesian plot by dragging, or from the keyboard with `Shift` + arrows from a focused point.
|
|
1641
|
+
|
|
1642
|
+
**Selector:** `mona-chart-brush`
|
|
1643
|
+
|
|
1644
|
+
#### Inputs
|
|
1645
|
+
|
|
1646
|
+
| Name | Type | Default | Description |
|
|
1647
|
+
| --- | --- | --- | --- |
|
|
1648
|
+
| `activation` | `ChartBrushActivation` | `"shift-drag"` | Activation trigger gesture ('drag' or 'shift-drag'). |
|
|
1649
|
+
| `borderColor` | `string \| undefined` | `undefined` | Border color of the brush rectangle. |
|
|
1650
|
+
| `borderWidth` | `number \| undefined` | `undefined` | Border width in pixels of the brush rectangle. |
|
|
1651
|
+
| `enabled` | `boolean` | `true` | Whether brush gesture interaction is enabled. |
|
|
1652
|
+
| `fillColor` | `string \| undefined` | `undefined` | Background fill color of the brush rectangle. |
|
|
1653
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity of the brush rectangle. |
|
|
1654
|
+
| `hitPolicy` | `ChartBrushHitPolicy` | `"intersect"` | Mark spatial hit policy ('center' or 'intersect'). |
|
|
1655
|
+
| `lineStyle` | `ChartBrushLineStyle \| undefined` | `undefined` | Stroke dash style of the brush rectangle border ('solid', 'dashed', or 'dotted'). |
|
|
1656
|
+
| `minDragDistance` | `number` | `4` | Minimum drag distance in pixels before brush gesture activates. |
|
|
1657
|
+
| `mode` | `ChartBrushMode` | `"xy"` | Brush dimension constraint mode ('x', 'y', or 'xy'). |
|
|
1658
|
+
| `selectionBehavior` | `ChartBrushSelectionBehavior` | `"none"` | Selection interaction behavior when brushing over marks. |
|
|
1659
|
+
| `xAxisId` | `string \| undefined` | `undefined` | Optional Cartesian X axis ID to target. |
|
|
1660
|
+
| `yAxisId` | `string \| undefined` | `undefined` | Optional Cartesian Y axis ID to target. |
|
|
1661
|
+
|
|
1662
|
+
#### Outputs
|
|
1663
|
+
|
|
1664
|
+
| Name | Type | Description |
|
|
1665
|
+
| --- | --- | --- |
|
|
1666
|
+
| `brushChange` | `ChartBrushChangeEvent<unknown>` | Emitted during brush lifecycle phases ('start', 'update', 'end', 'cancel'). |
|
|
1667
|
+
|
|
1668
|
+
### `ChartReferenceLineComponent`
|
|
1669
|
+
|
|
1670
|
+
Renders static horizontal or vertical benchmark lines in Cartesian XY charts.
|
|
1671
|
+
|
|
1672
|
+
**Selector:** `mona-chart-reference-line`
|
|
1673
|
+
|
|
1674
|
+
#### Inputs
|
|
1675
|
+
|
|
1676
|
+
| Name | Type | Default | Description |
|
|
1677
|
+
| --- | --- | --- | --- |
|
|
1678
|
+
| `axis` (required) | `"x" \| "y"` | — | Target Cartesian axis dimension: 'x' or 'y'. |
|
|
1679
|
+
| `axisId` | `string \| undefined` | `undefined` | Explicit identifier of the target axis. Defaults to primary axis for the dimension. |
|
|
1680
|
+
| `class` | `string` | `""` | Custom CSS class name applied to the reference line host. |
|
|
1681
|
+
| `color` | `string \| undefined` | `undefined` | Stroke color of the reference line. |
|
|
1682
|
+
| `label` | `string` | `""` | Text label displayed alongside the reference line. |
|
|
1683
|
+
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
1684
|
+
| `labelOffset` | `number` | `6` | Pixel offset between the reference line and the label. |
|
|
1685
|
+
| `labelPosition` | `ChartReferenceLabelPosition` | `"end"` | Alignment position for the label: 'start', 'center', or 'end'. |
|
|
1686
|
+
| `layer` | `ChartOverlayLayer` | `"overlay"` | Render layer: 'underlay' (behind series) or 'overlay' (in front of series). |
|
|
1687
|
+
| `lineStyle` | `ChartReferenceLineStyle` | `"dashed"` | Line dash style: 'dashed', 'dotted', or 'solid'. |
|
|
1688
|
+
| `opacity` | `number \| undefined` | `undefined` | Stroke opacity of the reference line (0 to 1). |
|
|
1689
|
+
| `value` (required) | `ChartAnnotationAxisValue` | — | Semantic coordinate value or category key for the reference line. |
|
|
1690
|
+
| `visible` | `boolean` | `true` | Sets whether the reference line is visible. |
|
|
1691
|
+
| `width` | `number \| undefined` | `undefined` | Stroke width of the reference line in pixels. |
|
|
1692
|
+
|
|
1693
|
+
### `ChartRadialAxisComponent`
|
|
1694
|
+
|
|
1695
|
+
Configures the radial numeric dimension (distance from pole) in Polar Axis charts.
|
|
1696
|
+
|
|
1697
|
+
**Selector:** `mona-chart-radial-axis`
|
|
1698
|
+
|
|
1699
|
+
#### Inputs
|
|
1700
|
+
|
|
1701
|
+
| Name | Type | Default | Description |
|
|
1702
|
+
| --- | --- | --- | --- |
|
|
1703
|
+
| `axisLine` | `boolean` | `true` | Whether the pole-to-boundary axis line along the label angle is rendered. |
|
|
1704
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the axis host element. |
|
|
1705
|
+
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for radial tick labels. |
|
|
1706
|
+
| `gridLines` | `boolean` | `true` | Whether concentric radial grid rings or polygons are visible. |
|
|
1707
|
+
| `gridShape` | `ChartRadialGridShape` | `"auto"` | Geometry of radial grid lines (`"auto"`, `"circle"`, or `"polygon"`). |
|
|
1708
|
+
| `labelAngle` | `number` | `0` | Angle in degrees at which radial tick labels are positioned (0 = 12 o'clock). |
|
|
1709
|
+
| `labelOffset` | `number` | `6` | Pixel offset between radial tick markers and their labels. |
|
|
1710
|
+
| `labels` | `boolean` | `true` | Whether radial tick numeric labels are rendered. |
|
|
1711
|
+
| `max` | `number \| undefined` | `undefined` | Explicit upper bound for the radial scale range. |
|
|
1712
|
+
| `min` | `number \| undefined` | `undefined` | Explicit lower bound for the radial scale range. |
|
|
1713
|
+
| `nice` | `boolean` | `true` | Automatically extends the radial domain to round, pleasant intervals. |
|
|
1714
|
+
| `tickCount` | `number \| undefined` | `5` | Suggested number of concentric radial intervals. |
|
|
1715
|
+
| `visible` | `boolean` | `true` | Whether the radial axis, grid rings, and tick labels are visible. |
|
|
1716
|
+
|
|
1717
|
+
### `ChartSelectionComponent`
|
|
1718
|
+
|
|
1719
|
+
Lets users select marks with the pointer and keyboard, and holds the selected mark IDs.
|
|
1720
|
+
|
|
1721
|
+
**Selector:** `mona-chart-selection`
|
|
1722
|
+
|
|
1723
|
+
#### Inputs
|
|
1724
|
+
|
|
1725
|
+
| Name | Type | Default | Description |
|
|
1726
|
+
| --- | --- | --- | --- |
|
|
1727
|
+
| `clearOnBackgroundClick` | `boolean` | `true` | Whether clicking plot background clears active selection. |
|
|
1728
|
+
| `clickSelection` | `boolean` | `true` | Whether clicking marks selects/toggles them. |
|
|
1729
|
+
| `color` | `string \| undefined` | `undefined` | Selection highlight stroke color override. |
|
|
1730
|
+
| `defaultSelectedMarkIds` | `readonly string[]` | `[]` | Default selected mark IDs to seed initial uncontrolled selection. |
|
|
1731
|
+
| `enabled` | `boolean` | `true` | Whether selection interaction is enabled. |
|
|
1732
|
+
| `fillOpacity` | `number \| undefined` | `undefined` | Selection highlight fill opacity override. |
|
|
1733
|
+
| `keyboardSelection` | `boolean` | `true` | Whether keyboard Enter / Space on focused marks selects/toggles them. |
|
|
1734
|
+
| `mode` | `ChartSelectionMode` | `"single"` | Selection mode ('single' or 'multiple'). |
|
|
1735
|
+
| `retainOnDataChange` | `boolean` | `true` | Whether selected mark IDs are retained across dataset changes. |
|
|
1736
|
+
| `selectedMarkIds` | `readonly string[] \| undefined` | `undefined` | Controlled selected mark IDs. When defined, component acts as controlled state. Bind `[(selectedMarkIds)]` for two-way binding. |
|
|
1737
|
+
| `strokeWidth` | `number \| undefined` | `undefined` | Selection highlight stroke width override. |
|
|
1738
|
+
|
|
1739
|
+
#### Outputs
|
|
1740
|
+
|
|
1741
|
+
| Name | Type | Description |
|
|
1742
|
+
| --- | --- | --- |
|
|
1743
|
+
| `selectedMarkIdsChange` | `readonly string[]` | Emits the proposed selected mark IDs. |
|
|
1744
|
+
| `selectionChange` | `ChartSelectionChangeEvent<unknown>` | Emitted when mark selection is proposed or changed. |
|
|
1745
|
+
|
|
1746
|
+
### `ChartAngularAxisComponent`
|
|
1747
|
+
|
|
1748
|
+
Configures the angular dimension (spokes and continuous degrees) in Polar Axis charts.
|
|
1749
|
+
|
|
1750
|
+
**Selector:** `mona-chart-angular-axis`
|
|
1751
|
+
|
|
1752
|
+
#### Inputs
|
|
1753
|
+
|
|
1754
|
+
| Name | Type | Default | Description |
|
|
1755
|
+
| --- | --- | --- | --- |
|
|
1756
|
+
| `axisLine` | `boolean` | `true` | Whether the outer circular or polygonal baseline axis boundary line is rendered. |
|
|
1757
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the axis host element. |
|
|
1758
|
+
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for angular tick and spoke labels. |
|
|
1759
|
+
| `gridLines` | `boolean` | `true` | Whether radial angular spokes connecting the pole to outer categories/ticks are visible. |
|
|
1760
|
+
| `labelOffset` | `number` | `10` | Radial offset in pixels between the outer chart boundary and the angular labels. |
|
|
1761
|
+
| `labels` | `boolean` | `true` | Whether angular category or degree labels are rendered. |
|
|
1762
|
+
| `rotation` | `number` | `0` | Angular rotation offset in degrees applied clockwise to all spoke positions. |
|
|
1763
|
+
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of degree ticks for polar charts (defaults to 12). Radar tick count is derived from categories. |
|
|
1764
|
+
| `visible` | `boolean` | `true` | Whether the angular axis, spokes, and labels are visible. |
|
|
1765
|
+
|
|
1766
|
+
### `ChartLegendComponent`
|
|
1767
|
+
|
|
1768
|
+
Adds a legend. Items toggle what they represent unless `interactive` is off.
|
|
1769
|
+
|
|
1770
|
+
**Selector:** `mona-chart-legend`
|
|
1771
|
+
|
|
1772
|
+
#### Inputs
|
|
1773
|
+
|
|
1774
|
+
| Name | Type | Default | Description |
|
|
1775
|
+
| --- | --- | --- | --- |
|
|
1776
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the legend container. |
|
|
1777
|
+
| `interactive` | `boolean` | `true` | Whether clicking or pressing Enter/Space on legend items toggles series visibility. |
|
|
1778
|
+
| `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). |
|
|
1779
|
+
| `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. |
|
|
1780
|
+
|
|
1781
|
+
### `ChartTooltipComponent`
|
|
1782
|
+
|
|
1783
|
+
Adds a tooltip for pointer and keyboard interaction. Use `ng-template[monaChartTooltipTemplate]` for custom content.
|
|
1784
|
+
|
|
1785
|
+
**Selector:** `mona-chart-tooltip`
|
|
1786
|
+
|
|
1787
|
+
#### Inputs
|
|
1788
|
+
|
|
1789
|
+
| Name | Type | Default | Description |
|
|
1790
|
+
| --- | --- | --- | --- |
|
|
1791
|
+
| `class` | `string` | `""` | Additional CSS classes applied to the tooltip popup container. |
|
|
1792
|
+
| `enabled` | `boolean` | `true` | Whether the tooltip is enabled and will appear during interaction. |
|
|
1793
|
+
| `shared` | `boolean` | `false` | In shared mode, displays values for all visible series matching the active X coordinate. |
|
|
1794
|
+
|
|
1795
|
+
### `ChartAnnotationLabelTemplateDirective`
|
|
1796
|
+
|
|
1797
|
+
**Selector:** `ng-template[monaChartAnnotationLabelTemplate], ng-template[monaChartAnnotationLabel]`
|
|
1798
|
+
|
|
1799
|
+
#### Template context
|
|
1800
|
+
|
|
1801
|
+
| Name | Type |
|
|
1802
|
+
| --- | --- |
|
|
1803
|
+
| `$implicit` | `unknown` |
|
|
1804
|
+
| `data` | `unknown` |
|
|
1805
|
+
| `formattedX` | `string` |
|
|
1806
|
+
| `formattedY` | `string` |
|
|
1807
|
+
| `point` | `ChartPoint` |
|
|
1808
|
+
| `x` | `ChartAnnotationAxisValue` |
|
|
1809
|
+
| `xAxisId` | `string` |
|
|
1810
|
+
| `y` | `ChartAnnotationAxisValue` |
|
|
1811
|
+
| `yAxisId` | `string` |
|
|
1812
|
+
|
|
1813
|
+
### `ChartAxisLabelTemplateDirective`
|
|
1814
|
+
|
|
1815
|
+
**Selector:** `ng-template[monaChartAxisLabelTemplate]`
|
|
1816
|
+
|
|
1817
|
+
#### Template context
|
|
1818
|
+
|
|
1819
|
+
| Name | Type |
|
|
1820
|
+
| --- | --- |
|
|
1821
|
+
| `$implicit` | `unknown` |
|
|
1822
|
+
| `axis` | `"angular" \| "radial" \| "x" \| "y"` |
|
|
1823
|
+
| `axisId?` | `string \| undefined` |
|
|
1824
|
+
| `index` | `number` |
|
|
1825
|
+
| `position?` | `ChartAxisPosition \| undefined` |
|
|
1826
|
+
| `scaleType?` | `string \| undefined` |
|
|
1827
|
+
| `value` | `unknown` |
|
|
1828
|
+
|
|
1829
|
+
### `ChartCenterTemplateDirective`
|
|
1830
|
+
|
|
1831
|
+
**Selector:** `ng-template[monaChartCenterTemplate]`
|
|
1832
|
+
|
|
1833
|
+
#### Template context
|
|
1834
|
+
|
|
1835
|
+
| Name | Type |
|
|
1836
|
+
| --- | --- |
|
|
1837
|
+
| `$implicit` | `number` |
|
|
1838
|
+
| `formattedTotal` | `string` |
|
|
1839
|
+
| `seriesId` | `string` |
|
|
1840
|
+
| `seriesName` | `string` |
|
|
1841
|
+
| `total` | `number` |
|
|
1842
|
+
| `visibleSliceCount` | `number` |
|
|
1843
|
+
|
|
1844
|
+
### `ChartCrosshairLabelTemplateDirective`
|
|
1845
|
+
|
|
1846
|
+
**Selector:** `ng-template[monaChartCrosshairLabelTemplate], ng-template[monaChartCrosshairLabel]`
|
|
1847
|
+
|
|
1848
|
+
#### Template context
|
|
1849
|
+
|
|
1850
|
+
| Name | Type |
|
|
1851
|
+
| --- | --- |
|
|
1852
|
+
| `$implicit` | `unknown` |
|
|
1853
|
+
| `axis` | `"x" \| "y"` |
|
|
1854
|
+
| `axisId` | `string` |
|
|
1855
|
+
| `coordinate` | `number` |
|
|
1856
|
+
| `formattedValue` | `string` |
|
|
1857
|
+
| `snapped` | `boolean` |
|
|
1858
|
+
| `source` | `"keyboard" \| "pointer" \| "sync"` |
|
|
1859
|
+
| `value` | `unknown` |
|
|
1860
|
+
|
|
1861
|
+
### `ChartDataLabelTemplateDirective`
|
|
1862
|
+
|
|
1863
|
+
**Selector:** `ng-template[monaChartDataLabelTemplate], ng-template[monaChartDataLabel]`
|
|
1864
|
+
**Type parameters:** `T = unknown`
|
|
1865
|
+
|
|
1866
|
+
#### Template context
|
|
1867
|
+
|
|
1868
|
+
| Name | Type | Description |
|
|
1869
|
+
| --- | --- | --- |
|
|
1870
|
+
| `$implicit` | `ChartDataLabelContext<T>` | The same context object, so `let-context` in the template receives every field below. |
|
|
1871
|
+
| `close?` | `number \| undefined` | The closing price of a candlestick or OHLC mark. |
|
|
1872
|
+
| `color` | `string` | The color of the mark the label belongs to. Falls back to the series color, then to black. |
|
|
1873
|
+
| `dataIndex` | `number` | The index of the data item in the series data. |
|
|
1874
|
+
| `datum` | `T` | The data item the mark was drawn from. |
|
|
1875
|
+
| `formattedClose?` | `string \| undefined` | The closing price of a candlestick or OHLC mark, formatted for display. |
|
|
1876
|
+
| `formattedFrom?` | `string \| undefined` | The start value of a range bar or range area mark, formatted for display. |
|
|
1877
|
+
| `formattedHigh?` | `string \| undefined` | The high price of a candlestick or OHLC mark, formatted for display. |
|
|
1878
|
+
| `formattedLow?` | `string \| undefined` | The low price of a candlestick or OHLC mark, formatted for display. |
|
|
1879
|
+
| `formattedOpen?` | `string \| undefined` | The opening price of a candlestick or OHLC mark, formatted for display. |
|
|
1880
|
+
| `formattedSize?` | `string \| undefined` | The size value of a bubble mark, formatted for display. |
|
|
1881
|
+
| `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. |
|
|
1882
|
+
| `formattedStackTotal?` | `string \| undefined` | The total of the stack the mark belongs to, formatted for display. |
|
|
1883
|
+
| `formattedTo?` | `string \| undefined` | The end value of a range bar or range area mark, formatted for display. |
|
|
1884
|
+
| `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. |
|
|
1885
|
+
| `formattedX` | `string` | The x value of the mark, formatted for display. Empty when the mark has no x value. |
|
|
1886
|
+
| `formattedY` | `string` | The y value of the mark, formatted for display. Empty when the mark has no y value. |
|
|
1887
|
+
| `fromValue?` | `number \| undefined` | The start value of a range bar or range area mark. |
|
|
1888
|
+
| `high?` | `number \| undefined` | The high price of a candlestick or OHLC mark. |
|
|
1889
|
+
| `low?` | `number \| undefined` | The low price of a candlestick or OHLC mark. |
|
|
1890
|
+
| `markId` | `string` | A stable identifier of the mark within the chart, the same one selection events report. |
|
|
1891
|
+
| `open?` | `number \| undefined` | The opening price of a candlestick or OHLC mark. |
|
|
1892
|
+
| `rawValue?` | `unknown` | The value read from the data item before stacking or other processing, when the series provides one. |
|
|
1893
|
+
| `selected` | `boolean` | Persistent selection state for this mark. |
|
|
1894
|
+
| `seriesId` | `string` | The identifier of the series the mark belongs to. |
|
|
1895
|
+
| `seriesName` | `string` | The display name of the series the mark belongs to. |
|
|
1896
|
+
| `seriesType` | `ChartSeriesType` | The type of the series the mark belongs to, such as `"bar"` or `"line"`. |
|
|
1897
|
+
| `sizeValue?` | `number \| undefined` | The size value of a bubble mark. |
|
|
1898
|
+
| `stackEnd?` | `number \| undefined` | The value where the mark ends on its stack. |
|
|
1899
|
+
| `stackMode?` | `ChartStackMode \| undefined` | The stacking mode of the series, when the series is stacked. |
|
|
1900
|
+
| `stackPercentage?` | `number \| undefined` | The mark's share of its stack total, as a percentage. |
|
|
1901
|
+
| `stackStart?` | `number \| undefined` | The value where the mark starts on its stack. |
|
|
1902
|
+
| `stackTotal?` | `number \| undefined` | The total of the stack the mark belongs to. |
|
|
1903
|
+
| `toValue?` | `number \| undefined` | The end value of a range bar or range area mark. |
|
|
1904
|
+
| `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. |
|
|
1905
|
+
| `xValue?` | `unknown` | The x value of the mark. |
|
|
1906
|
+
| `yValue?` | `unknown` | The y value of the mark. |
|
|
1907
|
+
|
|
1908
|
+
### `ChartFunnelLabelTemplateDirective`
|
|
1909
|
+
|
|
1910
|
+
**Selector:** `ng-template[monaChartFunnelLabelTemplate]`
|
|
1911
|
+
|
|
1912
|
+
#### Template context
|
|
1913
|
+
|
|
1914
|
+
| Name | Type |
|
|
1915
|
+
| --- | --- |
|
|
1916
|
+
| `$implicit` | `ChartFunnelStageContext<unknown>` |
|
|
1917
|
+
| `bounds` | `ChartRect` |
|
|
1918
|
+
| `category` | `unknown` |
|
|
1919
|
+
| `color` | `string` |
|
|
1920
|
+
| `conversionRate?` | `number \| undefined` |
|
|
1921
|
+
| `dataIndex` | `number` |
|
|
1922
|
+
| `datum` | `unknown` |
|
|
1923
|
+
| `dropOff?` | `number \| undefined` |
|
|
1924
|
+
| `formattedCategory` | `string` |
|
|
1925
|
+
| `formattedConversionRate?` | `string \| undefined` |
|
|
1926
|
+
| `formattedOverallConversionRate?` | `string \| undefined` |
|
|
1927
|
+
| `formattedValue` | `string` |
|
|
1928
|
+
| `overallConversionRate?` | `number \| undefined` |
|
|
1929
|
+
| `previousValue?` | `number \| undefined` |
|
|
1930
|
+
| `stage` | `ChartFunnelStageContext<unknown>` |
|
|
1931
|
+
| `stageId` | `string` |
|
|
1932
|
+
| `stageIndex` | `number` |
|
|
1933
|
+
| `textColor?` | `string \| undefined` |
|
|
1934
|
+
| `value` | `number` |
|
|
1935
|
+
|
|
1936
|
+
### `ChartGaugeCenterTemplateDirective`
|
|
1937
|
+
|
|
1938
|
+
**Selector:** `ng-template[monaChartGaugeCenterTemplate]`
|
|
1939
|
+
|
|
1940
|
+
#### Template context
|
|
1941
|
+
|
|
1942
|
+
| Name | Type |
|
|
1943
|
+
| --- | --- |
|
|
1944
|
+
| `$implicit` | `number` |
|
|
1945
|
+
| `formattedMax` | `string` |
|
|
1946
|
+
| `formattedMin` | `string` |
|
|
1947
|
+
| `formattedValue` | `string` |
|
|
1948
|
+
| `isClamped` | `boolean` |
|
|
1949
|
+
| `max` | `number` |
|
|
1950
|
+
| `min` | `number` |
|
|
1951
|
+
| `ratio` | `number` |
|
|
1952
|
+
| `seriesId` | `string` |
|
|
1953
|
+
| `seriesName` | `string` |
|
|
1954
|
+
| `value` | `number` |
|
|
1955
|
+
|
|
1956
|
+
### `ChartLegendItemTemplateDirective`
|
|
1957
|
+
|
|
1958
|
+
**Selector:** `ng-template[monaChartLegendItemTemplate]`
|
|
1959
|
+
|
|
1960
|
+
#### Template context
|
|
1961
|
+
|
|
1962
|
+
| Name | Type |
|
|
1963
|
+
| --- | --- |
|
|
1964
|
+
| `$implicit` | `ChartLegendItem` |
|
|
1965
|
+
| `color` | `string` |
|
|
1966
|
+
| `dataIndex?` | `number \| undefined` |
|
|
1967
|
+
| `datum?` | `unknown` |
|
|
1968
|
+
| `interactive?` | `boolean \| undefined` |
|
|
1969
|
+
| `itemId` | `string` |
|
|
1970
|
+
| `kind?` | `ChartLegendItemKind \| undefined` |
|
|
1971
|
+
| `name` | `string` |
|
|
1972
|
+
| `percentage?` | `number \| undefined` |
|
|
1973
|
+
| `secondaryColor?` | `string \| undefined` |
|
|
1974
|
+
| `series` | `ChartLegendItem` |
|
|
1975
|
+
| `seriesId` | `string` |
|
|
1976
|
+
| `seriesType` | `ChartSeriesType` |
|
|
1977
|
+
| `value?` | `number \| undefined` |
|
|
1978
|
+
| `visible` | `boolean` |
|
|
1979
|
+
|
|
1980
|
+
### `ChartNoDataTemplateDirective`
|
|
1981
|
+
|
|
1982
|
+
**Selector:** `ng-template[monaChartNoDataTemplate]`
|
|
1983
|
+
|
|
1984
|
+
### `ChartReferenceLabelTemplateDirective`
|
|
1985
|
+
|
|
1986
|
+
**Selector:** `ng-template[monaChartReferenceLabelTemplate], ng-template[monaChartReferenceLabel]`
|
|
1987
|
+
|
|
1988
|
+
#### Template context
|
|
1989
|
+
|
|
1990
|
+
| Name | Type |
|
|
1991
|
+
| --- | --- |
|
|
1992
|
+
| `$implicit` | `ChartAnnotationAxisValue \| { readonly from: ChartAnnotationAxisValue; readonly to: ChartAnnotationAxisValue; }` |
|
|
1993
|
+
| `axis` | `"x" \| "y"` |
|
|
1994
|
+
| `axisId` | `string` |
|
|
1995
|
+
| `bounds?` | `ChartRect \| undefined` |
|
|
1996
|
+
| `coordinate?` | `number \| undefined` |
|
|
1997
|
+
| `formattedFrom?` | `string \| undefined` |
|
|
1998
|
+
| `formattedTo?` | `string \| undefined` |
|
|
1999
|
+
| `formattedValue?` | `string \| undefined` |
|
|
2000
|
+
| `from?` | `ChartAnnotationAxisValue \| undefined` |
|
|
2001
|
+
| `kind` | `"line" \| "band"` |
|
|
2002
|
+
| `to?` | `ChartAnnotationAxisValue \| undefined` |
|
|
2003
|
+
| `value?` | `ChartAnnotationAxisValue \| undefined` |
|
|
2004
|
+
|
|
2005
|
+
### `ChartSliceLabelTemplateDirective`
|
|
2006
|
+
|
|
2007
|
+
**Selector:** `ng-template[monaChartSliceLabelTemplate]`
|
|
2008
|
+
|
|
2009
|
+
#### Template context
|
|
2010
|
+
|
|
2011
|
+
| Name | Type |
|
|
2012
|
+
| --- | --- |
|
|
2013
|
+
| `$implicit` | `ChartSliceContext` |
|
|
2014
|
+
| `category` | `unknown` |
|
|
2015
|
+
| `color` | `string` |
|
|
2016
|
+
| `dataIndex` | `number` |
|
|
2017
|
+
| `datum` | `unknown` |
|
|
2018
|
+
| `formattedCategory` | `string` |
|
|
2019
|
+
| `formattedPercentage` | `string` |
|
|
2020
|
+
| `formattedValue` | `string` |
|
|
2021
|
+
| `percentage` | `number` |
|
|
2022
|
+
| `seriesId` | `string` |
|
|
2023
|
+
| `seriesName` | `string` |
|
|
2024
|
+
| `seriesType` | `"donut" \| "pie"` |
|
|
2025
|
+
| `slice` | `ChartSliceContext` |
|
|
2026
|
+
| `value` | `number` |
|
|
2027
|
+
|
|
2028
|
+
### `ChartSubtitleTemplateDirective`
|
|
2029
|
+
|
|
2030
|
+
**Selector:** `ng-template[monaChartSubtitleTemplate]`
|
|
2031
|
+
|
|
2032
|
+
#### Template context
|
|
2033
|
+
|
|
2034
|
+
| Name | Type |
|
|
2035
|
+
| --- | --- |
|
|
2036
|
+
| `$implicit` | `string` |
|
|
2037
|
+
| `subtitle` | `string` |
|
|
2038
|
+
|
|
2039
|
+
### `ChartTitleTemplateDirective`
|
|
2040
|
+
|
|
2041
|
+
**Selector:** `ng-template[monaChartTitleTemplate]`
|
|
2042
|
+
|
|
2043
|
+
#### Template context
|
|
2044
|
+
|
|
2045
|
+
| Name | Type |
|
|
2046
|
+
| --- | --- |
|
|
2047
|
+
| `$implicit` | `string` |
|
|
2048
|
+
| `title` | `string` |
|
|
2049
|
+
|
|
2050
|
+
### `ChartTooltipTemplateDirective`
|
|
2051
|
+
|
|
2052
|
+
**Selector:** `ng-template[monaChartTooltipTemplate]`
|
|
2053
|
+
|
|
2054
|
+
#### Template context
|
|
2055
|
+
|
|
2056
|
+
| Name | Type |
|
|
2057
|
+
| --- | --- |
|
|
2058
|
+
| `$implicit` | `ChartTooltipPointContext<unknown>` |
|
|
2059
|
+
| `point` | `ChartTooltipPointContext<unknown>` |
|
|
2060
|
+
| `points` | `readonly ChartTooltipPointContext<unknown>[]` |
|
|
2061
|
+
| `series` | `readonly string[]` |
|
|
2062
|
+
| `shared` | `boolean` |
|
|
2063
|
+
|
|
2064
|
+
### `ChartTreemapLabelTemplateDirective`
|
|
2065
|
+
|
|
2066
|
+
**Selector:** `ng-template[monaChartTreemapLabelTemplate]`
|
|
2067
|
+
|
|
2068
|
+
#### Template context
|
|
2069
|
+
|
|
2070
|
+
| Name | Type |
|
|
2071
|
+
| --- | --- |
|
|
2072
|
+
| `$implicit` | `ChartHierarchyNodeContext<unknown>` |
|
|
2073
|
+
| `bounds` | `ChartRect` |
|
|
2074
|
+
| `color` | `string` |
|
|
2075
|
+
| `datum` | `unknown` |
|
|
2076
|
+
| `depth` | `number` |
|
|
2077
|
+
| `formattedLabel` | `string` |
|
|
2078
|
+
| `formattedPath` | `readonly string[]` |
|
|
2079
|
+
| `formattedValue` | `string` |
|
|
2080
|
+
| `isCollapsed` | `boolean` |
|
|
2081
|
+
| `isLeaf` | `boolean` |
|
|
2082
|
+
| `label` | `unknown` |
|
|
2083
|
+
| `node` | `ChartHierarchyNodeContext<unknown>` |
|
|
2084
|
+
| `nodeId` | `string` |
|
|
2085
|
+
| `path` | `readonly unknown[]` |
|
|
2086
|
+
| `percentageOfParent?` | `number \| undefined` |
|
|
2087
|
+
| `percentageOfRoot?` | `number \| undefined` |
|
|
2088
|
+
| `textColor` | `string` |
|
|
2089
|
+
| `value` | `number` |
|
|
2090
|
+
|
|
2091
|
+
### `ChartWaterfallLabelTemplateDirective`
|
|
2092
|
+
|
|
2093
|
+
**Selector:** `ng-template[monaChartWaterfallLabelTemplate]`
|
|
2094
|
+
|
|
2095
|
+
#### Template context
|
|
2096
|
+
|
|
2097
|
+
| Name | Type |
|
|
2098
|
+
| --- | --- |
|
|
2099
|
+
| `$implicit` | `ChartWaterfallPointContext<unknown>` |
|
|
2100
|
+
| `barEnd` | `number` |
|
|
2101
|
+
| `barStart` | `number` |
|
|
2102
|
+
| `bounds` | `ChartRect` |
|
|
2103
|
+
| `category` | `unknown` |
|
|
2104
|
+
| `color` | `string` |
|
|
2105
|
+
| `cumulativeAfter` | `number` |
|
|
2106
|
+
| `cumulativeBefore` | `number` |
|
|
2107
|
+
| `dataIndex` | `number` |
|
|
2108
|
+
| `datum` | `unknown` |
|
|
2109
|
+
| `deltaValue?` | `number \| undefined` |
|
|
2110
|
+
| `formattedCategory` | `string` |
|
|
2111
|
+
| `formattedCumulativeAfter` | `string` |
|
|
2112
|
+
| `formattedCumulativeBefore` | `string` |
|
|
2113
|
+
| `formattedDelta?` | `string \| undefined` |
|
|
2114
|
+
| `formattedValue` | `string` |
|
|
2115
|
+
| `kind` | `ChartWaterfallDatumKind` |
|
|
2116
|
+
| `step` | `ChartWaterfallPointContext<unknown>` |
|
|
2117
|
+
| `textColor?` | `string \| undefined` |
|
|
2118
|
+
| `value` | `number` |
|
|
2119
|
+
| `visualKind` | `ChartWaterfallVisualKind` |
|
|
2120
|
+
|
|
2121
|
+
### `ChartExportError`
|
|
2122
|
+
|
|
2123
|
+
Error thrown when a chart export operation fails.
|
|
2124
|
+
|
|
2125
|
+
#### Properties
|
|
2126
|
+
|
|
2127
|
+
| Name | Type |
|
|
2128
|
+
| --- | --- |
|
|
2129
|
+
| `code` (read-only) | `ChartExportErrorCode` |
|
|
2130
|
+
|
|
2131
|
+
### `getChartSeriesFamily`
|
|
2132
|
+
|
|
2133
|
+
```typescript
|
|
2134
|
+
function getChartSeriesFamily(type: ChartSeriesType): ChartSeriesFamily;
|
|
2135
|
+
```
|
|
2136
|
+
|
|
2137
|
+
### `isCartesianCoordinateFamily`
|
|
2138
|
+
|
|
2139
|
+
```typescript
|
|
2140
|
+
function isCartesianCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
2141
|
+
```
|
|
2142
|
+
|
|
2143
|
+
### `isHierarchicalCoordinateFamily`
|
|
2144
|
+
|
|
2145
|
+
```typescript
|
|
2146
|
+
function isHierarchicalCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
2147
|
+
```
|
|
2148
|
+
|
|
2149
|
+
### `isPolarCoordinateFamily`
|
|
2150
|
+
|
|
2151
|
+
```typescript
|
|
2152
|
+
function isPolarCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
2153
|
+
```
|
|
2154
|
+
|
|
2155
|
+
### Types
|
|
2156
|
+
|
|
2157
|
+
#### `CHART_DEFAULT_MESSAGES`
|
|
2158
|
+
|
|
2159
|
+
```typescript
|
|
2160
|
+
const CHART_DEFAULT_MESSAGES: MonaChartMessages;
|
|
2161
|
+
```
|
|
2162
|
+
|
|
2163
|
+
#### `ChartAnimationOptions`
|
|
2164
|
+
|
|
2165
|
+
| Name | Type |
|
|
2166
|
+
| --- | --- |
|
|
2167
|
+
| `data?` (read-only) | `boolean` |
|
|
2168
|
+
| `duration?` (read-only) | `number` |
|
|
2169
|
+
| `easing?` (read-only) | `ChartAnimationEasing` |
|
|
2170
|
+
| `enabled?` (read-only) | `boolean` |
|
|
2171
|
+
| `initial?` (read-only) | `boolean` |
|
|
2172
|
+
| `visibility?` (read-only) | `boolean` |
|
|
2173
|
+
|
|
2174
|
+
#### `ChartAnnotationLabelTemplateContext`
|
|
2175
|
+
|
|
2176
|
+
**Type parameters:** `TData = unknown`
|
|
2177
|
+
|
|
2178
|
+
| Name | Type |
|
|
2179
|
+
| --- | --- |
|
|
2180
|
+
| `$implicit` (read-only) | `TData` |
|
|
2181
|
+
| `data` (read-only) | `TData` |
|
|
2182
|
+
| `formattedX` (read-only) | `string` |
|
|
2183
|
+
| `formattedY` (read-only) | `string` |
|
|
2184
|
+
| `point` (read-only) | `ChartPoint` |
|
|
2185
|
+
| `x` (read-only) | `ChartAnnotationAxisValue` |
|
|
2186
|
+
| `xAxisId` (read-only) | `string` |
|
|
2187
|
+
| `y` (read-only) | `ChartAnnotationAxisValue` |
|
|
2188
|
+
| `yAxisId` (read-only) | `string` |
|
|
2189
|
+
|
|
2190
|
+
#### `ChartAxisLabelTemplateContext`
|
|
2191
|
+
|
|
2192
|
+
**Type parameters:** `T = unknown`
|
|
2193
|
+
|
|
2194
|
+
| Name | Type |
|
|
2195
|
+
| --- | --- |
|
|
2196
|
+
| `$implicit` | `T` |
|
|
2197
|
+
| `axis` | `"angular" \| "radial" \| "x" \| "y"` |
|
|
2198
|
+
| `axisId?` | `string` |
|
|
2199
|
+
| `index` | `number` |
|
|
2200
|
+
| `position?` | `ChartAxisPosition` |
|
|
2201
|
+
| `scaleType?` | `ChartXAxisType \| string` |
|
|
2202
|
+
| `value` | `T` |
|
|
2203
|
+
|
|
2204
|
+
#### `ChartAxisTick`
|
|
2205
|
+
|
|
2206
|
+
**Type parameters:** `T = unknown`
|
|
2207
|
+
|
|
2208
|
+
| Name | Type |
|
|
2209
|
+
| --- | --- |
|
|
2210
|
+
| `coordinate` | `number` |
|
|
2211
|
+
| `formattedValue` | `string` |
|
|
2212
|
+
| `index` | `number` |
|
|
2213
|
+
| `value` | `T` |
|
|
2214
|
+
|
|
2215
|
+
#### `ChartBrushCategoryRange`
|
|
2216
|
+
|
|
2217
|
+
| Name | Type |
|
|
2218
|
+
| --- | --- |
|
|
2219
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
2220
|
+
| `axisId` (read-only) | `string` |
|
|
2221
|
+
| `fromIndex` (read-only) | `number` |
|
|
2222
|
+
| `fromValue` (read-only) | `unknown` |
|
|
2223
|
+
| `kind` (read-only) | `"category"` |
|
|
2224
|
+
| `toIndex` (read-only) | `number` |
|
|
2225
|
+
| `toValue` (read-only) | `unknown` |
|
|
2226
|
+
|
|
2227
|
+
#### `ChartBrushChangeEvent`
|
|
2228
|
+
|
|
2229
|
+
**Type parameters:** `T = unknown`
|
|
2230
|
+
|
|
2231
|
+
| Name | Type |
|
|
2232
|
+
| --- | --- |
|
|
2233
|
+
| `cancelReason?` (read-only) | `ChartBrushCancelReason` |
|
|
2234
|
+
| `matchedMarkIds?` (read-only) | `readonly string[]` |
|
|
2235
|
+
| `matchedPoints?` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
2236
|
+
| `mode` (read-only) | `ChartBrushMode` |
|
|
2237
|
+
| `phase` (read-only) | `ChartBrushPhase` |
|
|
2238
|
+
| `pixelBounds` (read-only) | `ChartRect \| null` |
|
|
2239
|
+
| `xRange?` (read-only) | `ChartBrushAxisRange` |
|
|
2240
|
+
| `yRange?` (read-only) | `ChartBrushAxisRange` |
|
|
2241
|
+
|
|
2242
|
+
#### `ChartBrushContinuousRange`
|
|
2243
|
+
|
|
2244
|
+
| Name | Type |
|
|
2245
|
+
| --- | --- |
|
|
2246
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
2247
|
+
| `axisId` (read-only) | `string` |
|
|
2248
|
+
| `from` (read-only) | `number \| Date` |
|
|
2249
|
+
| `kind` (read-only) | `"continuous"` |
|
|
2250
|
+
| `scaleType` (read-only) | `"linear" \| "log" \| "pow" \| "sqrt" \| "symlog" \| "time" \| "utc"` |
|
|
2251
|
+
| `to` (read-only) | `number \| Date` |
|
|
2252
|
+
|
|
2253
|
+
#### `ChartCategoryViewportWindow`
|
|
2254
|
+
|
|
2255
|
+
**Extends:** `ChartViewportAxisRef`
|
|
2256
|
+
|
|
2257
|
+
| Name | Type |
|
|
2258
|
+
| --- | --- |
|
|
2259
|
+
| `endIndexExclusive` (read-only) | `number` |
|
|
2260
|
+
| `kind` (read-only) | `"category"` |
|
|
2261
|
+
| `startIndex` (read-only) | `number` |
|
|
2262
|
+
|
|
2263
|
+
#### `ChartCenterTemplateContext`
|
|
2264
|
+
|
|
2265
|
+
| Name | Type |
|
|
2266
|
+
| --- | --- |
|
|
2267
|
+
| `$implicit` | `number` |
|
|
2268
|
+
| `formattedTotal` | `string` |
|
|
2269
|
+
| `seriesId` | `string` |
|
|
2270
|
+
| `seriesName` | `string` |
|
|
2271
|
+
| `total` | `number` |
|
|
2272
|
+
| `visibleSliceCount` | `number` |
|
|
2273
|
+
|
|
2274
|
+
#### `ChartColorLegendScale`
|
|
2275
|
+
|
|
2276
|
+
| Name | Type |
|
|
2277
|
+
| --- | --- |
|
|
2278
|
+
| `formattedMax` (read-only) | `string` |
|
|
2279
|
+
| `formattedMidpoint?` (read-only) | `string` |
|
|
2280
|
+
| `formattedMin` (read-only) | `string` |
|
|
2281
|
+
| `kind` (read-only) | `"color"` |
|
|
2282
|
+
| `midpoint?` (read-only) | `number` |
|
|
2283
|
+
| `mode` (read-only) | `ChartHeatmapColorMode` |
|
|
2284
|
+
| `stops` (read-only) | `readonly ChartColorLegendStop[]` |
|
|
2285
|
+
| `ticks` (read-only) | `readonly ChartColorLegendTick[]` |
|
|
2286
|
+
| `title` (read-only) | `string` |
|
|
2287
|
+
|
|
2288
|
+
#### `ChartColorLegendStop`
|
|
2289
|
+
|
|
2290
|
+
| Name | Type |
|
|
2291
|
+
| --- | --- |
|
|
2292
|
+
| `color` (read-only) | `string` |
|
|
2293
|
+
| `offset` (read-only) | `number` |
|
|
2294
|
+
| `value` (read-only) | `number` |
|
|
2295
|
+
|
|
2296
|
+
#### `ChartColorLegendTick`
|
|
2297
|
+
|
|
2298
|
+
| Name | Type |
|
|
2299
|
+
| --- | --- |
|
|
2300
|
+
| `formattedValue` (read-only) | `string` |
|
|
2301
|
+
| `offset` (read-only) | `number` |
|
|
2302
|
+
| `value` (read-only) | `number` |
|
|
2303
|
+
|
|
2304
|
+
#### `ChartContinuousViewportWindow`
|
|
2305
|
+
|
|
2306
|
+
**Extends:** `ChartViewportAxisRef`
|
|
2307
|
+
|
|
2308
|
+
| Name | Type |
|
|
2309
|
+
| --- | --- |
|
|
2310
|
+
| `kind` (read-only) | `"continuous"` |
|
|
2311
|
+
| `max` (read-only) | `Date \| number` |
|
|
2312
|
+
| `min` (read-only) | `Date \| number` |
|
|
2313
|
+
|
|
2314
|
+
#### `ChartCrosshairAxisLabelContext`
|
|
2315
|
+
|
|
2316
|
+
**Type parameters:** `T = unknown`
|
|
2317
|
+
|
|
2318
|
+
| Name | Type |
|
|
2319
|
+
| --- | --- |
|
|
2320
|
+
| `$implicit` (read-only) | `T` |
|
|
2321
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
2322
|
+
| `axisId` (read-only) | `string` |
|
|
2323
|
+
| `coordinate` (read-only) | `number` |
|
|
2324
|
+
| `formattedValue` (read-only) | `string` |
|
|
2325
|
+
| `snapped` (read-only) | `boolean` |
|
|
2326
|
+
| `source` (read-only) | `"keyboard" \| "pointer" \| "sync"` |
|
|
2327
|
+
| `value` (read-only) | `T` |
|
|
2328
|
+
|
|
2329
|
+
#### `ChartCrosshairResolvedAxisValue`
|
|
2330
|
+
|
|
2331
|
+
**Type parameters:** `T = unknown`
|
|
2332
|
+
|
|
2333
|
+
| Name | Type |
|
|
2334
|
+
| --- | --- |
|
|
2335
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
2336
|
+
| `axisId` (read-only) | `string` |
|
|
2337
|
+
| `coordinate` (read-only) | `number` |
|
|
2338
|
+
| `formattedValue` (read-only) | `string` |
|
|
2339
|
+
| `value` (read-only) | `T` |
|
|
2340
|
+
|
|
2341
|
+
#### `ChartCrosshairSynchronizationOptions`
|
|
2342
|
+
|
|
2343
|
+
| Name | Type |
|
|
2344
|
+
| --- | --- |
|
|
2345
|
+
| `axes?` (read-only) | `"auto" \| "x" \| "xy" \| "y"` |
|
|
2346
|
+
| `clearOnLeave?` (read-only) | `boolean` |
|
|
2347
|
+
| `enabled?` (read-only) | `boolean` |
|
|
2348
|
+
| `match?` (read-only) | `"axis-value" \| "nearest-point"` |
|
|
2349
|
+
| `mode?` (read-only) | `ChartSynchronizationMode` |
|
|
2350
|
+
| `showTooltip?` (read-only) | `boolean` |
|
|
2351
|
+
|
|
2352
|
+
#### `ChartDataLabelContext`
|
|
2353
|
+
|
|
2354
|
+
**Type parameters:** `T = unknown`
|
|
2355
|
+
|
|
2356
|
+
| Name | Type | Description |
|
|
2357
|
+
| --- | --- | --- |
|
|
2358
|
+
| `$implicit` (read-only) | `ChartDataLabelContext<T>` | The same context object, so `let-context` in the template receives every field below. |
|
|
2359
|
+
| `close?` (read-only) | `number` | The closing price of a candlestick or OHLC mark. |
|
|
2360
|
+
| `color` (read-only) | `string` | The color of the mark the label belongs to. Falls back to the series color, then to black. |
|
|
2361
|
+
| `dataIndex` (read-only) | `number` | The index of the data item in the series data. |
|
|
2362
|
+
| `datum` (read-only) | `T` | The data item the mark was drawn from. |
|
|
2363
|
+
| `formattedClose?` (read-only) | `string` | The closing price of a candlestick or OHLC mark, formatted for display. |
|
|
2364
|
+
| `formattedFrom?` (read-only) | `string` | The start value of a range bar or range area mark, formatted for display. |
|
|
2365
|
+
| `formattedHigh?` (read-only) | `string` | The high price of a candlestick or OHLC mark, formatted for display. |
|
|
2366
|
+
| `formattedLow?` (read-only) | `string` | The low price of a candlestick or OHLC mark, formatted for display. |
|
|
2367
|
+
| `formattedOpen?` (read-only) | `string` | The opening price of a candlestick or OHLC mark, formatted for display. |
|
|
2368
|
+
| `formattedSize?` (read-only) | `string` | The size value of a bubble mark, formatted for display. |
|
|
2369
|
+
| `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. |
|
|
2370
|
+
| `formattedStackTotal?` (read-only) | `string` | The total of the stack the mark belongs to, formatted for display. |
|
|
2371
|
+
| `formattedTo?` (read-only) | `string` | The end value of a range bar or range area mark, formatted for display. |
|
|
2372
|
+
| `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. |
|
|
2373
|
+
| `formattedX` (read-only) | `string` | The x value of the mark, formatted for display. Empty when the mark has no x value. |
|
|
2374
|
+
| `formattedY` (read-only) | `string` | The y value of the mark, formatted for display. Empty when the mark has no y value. |
|
|
2375
|
+
| `fromValue?` (read-only) | `number` | The start value of a range bar or range area mark. |
|
|
2376
|
+
| `high?` (read-only) | `number` | The high price of a candlestick or OHLC mark. |
|
|
2377
|
+
| `low?` (read-only) | `number` | The low price of a candlestick or OHLC mark. |
|
|
2378
|
+
| `markId` (read-only) | `string` | A stable identifier of the mark within the chart, the same one selection events report. |
|
|
2379
|
+
| `open?` (read-only) | `number` | The opening price of a candlestick or OHLC mark. |
|
|
2380
|
+
| `rawValue?` (read-only) | `unknown` | The value read from the data item before stacking or other processing, when the series provides one. |
|
|
2381
|
+
| `selected` (read-only) | `boolean` | Persistent selection state for this mark. |
|
|
2382
|
+
| `seriesId` (read-only) | `string` | The identifier of the series the mark belongs to. |
|
|
2383
|
+
| `seriesName` (read-only) | `string` | The display name of the series the mark belongs to. |
|
|
2384
|
+
| `seriesType` (read-only) | `ChartSeriesType` | The type of the series the mark belongs to, such as `"bar"` or `"line"`. |
|
|
2385
|
+
| `sizeValue?` (read-only) | `number` | The size value of a bubble mark. |
|
|
2386
|
+
| `stackEnd?` (read-only) | `number` | The value where the mark ends on its stack. |
|
|
2387
|
+
| `stackMode?` (read-only) | `ChartStackMode` | The stacking mode of the series, when the series is stacked. |
|
|
2388
|
+
| `stackPercentage?` (read-only) | `number` | The mark's share of its stack total, as a percentage. |
|
|
2389
|
+
| `stackStart?` (read-only) | `number` | The value where the mark starts on its stack. |
|
|
2390
|
+
| `stackTotal?` (read-only) | `number` | The total of the stack the mark belongs to. |
|
|
2391
|
+
| `toValue?` (read-only) | `number` | The end value of a range bar or range area mark. |
|
|
2392
|
+
| `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. |
|
|
2393
|
+
| `xValue?` (read-only) | `unknown` | The x value of the mark. |
|
|
2394
|
+
| `yValue?` (read-only) | `unknown` | The y value of the mark. |
|
|
2395
|
+
|
|
2396
|
+
#### `ChartDataLabelOptions`
|
|
2397
|
+
|
|
2398
|
+
| Name | Type | Description |
|
|
2399
|
+
| --- | --- | --- |
|
|
2400
|
+
| `allowOverlap?` | `boolean` | Whether labels may overlap other generic data labels. Default: false |
|
|
2401
|
+
| `collisionPadding?` | `number` | Collision padding around the label bounds. Default: 2 |
|
|
2402
|
+
| `color?` | `string` | Optional text color override. |
|
|
2403
|
+
| `formatter?` | `ChartDataLabelFormatter` | Optional semantic formatter. Returning null/undefined/"" suppresses that label. |
|
|
2404
|
+
| `maxLabels?` | `number` | Maximum accepted labels for this series. Default: 200 |
|
|
2405
|
+
| `offset?` | `number` | Distance in CSS pixels between the mark anchor and label. Default: 6 |
|
|
2406
|
+
| `overflow?` | `"clip" \| "hide"` | Plot-boundary behavior. Default: "hide" |
|
|
2407
|
+
| `position?` | `ChartDataLabelPosition` | Placement strategy. Default: "auto" |
|
|
2408
|
+
|
|
2409
|
+
#### `ChartDownsamplingOptions`
|
|
2410
|
+
|
|
2411
|
+
| Name | Type |
|
|
2412
|
+
| --- | --- |
|
|
2413
|
+
| `algorithm?` (read-only) | `ChartDownsamplingAlgorithm` |
|
|
2414
|
+
| `enabled?` (read-only) | `boolean` |
|
|
2415
|
+
| `maxPoints?` (read-only) | `number` |
|
|
2416
|
+
| `samplesPerPixel?` (read-only) | `number` |
|
|
2417
|
+
| `threshold?` (read-only) | `number` |
|
|
2418
|
+
|
|
2419
|
+
#### `ChartExportBaseOptions`
|
|
2420
|
+
|
|
2421
|
+
Shared base options for all chart export formats.
|
|
2422
|
+
|
|
2423
|
+
| Name | Type | Description |
|
|
2424
|
+
| --- | --- | --- |
|
|
2425
|
+
| `background?` (read-only) | `ChartExportBackground` | Background color policy or explicit CSS color. Default: "auto". |
|
|
2426
|
+
| `height?` (read-only) | `number` | Optional logical output height in CSS pixels. When omitted, the current chart aspect ratio or source height is preserved. |
|
|
2427
|
+
| `presentation?` (read-only) | `ChartExportPresentationOptions` | Optional presentation options controlling selection, crosshair, and brush inclusion. |
|
|
2428
|
+
| `signal?` (read-only) | `AbortSignal` | Optional AbortSignal for aborting the export operation. |
|
|
2429
|
+
| `width?` (read-only) | `number` | Optional logical output width in CSS pixels. When omitted, the current chart width is preserved. |
|
|
2430
|
+
|
|
2431
|
+
#### `ChartExportPresentationOptions`
|
|
2432
|
+
|
|
2433
|
+
Options controlling which interactive/presentation elements are included in the export.
|
|
2434
|
+
|
|
2435
|
+
| Name | Type | Description |
|
|
2436
|
+
| --- | --- | --- |
|
|
2437
|
+
| `brush?` (read-only) | `boolean` | Whether to include active brush marquee overlay. Default: false. |
|
|
2438
|
+
| `crosshair?` (read-only) | `boolean` | Whether to include active crosshair overlay and axis badges. Default: false. |
|
|
2439
|
+
| `selection?` (read-only) | `boolean` | Whether to include persistent mark selection visuals. Default: true. |
|
|
2440
|
+
|
|
2441
|
+
#### `ChartExportResult`
|
|
2442
|
+
|
|
2443
|
+
Result of a chart export operation.
|
|
2444
|
+
|
|
2445
|
+
| Name | Type | Description |
|
|
2446
|
+
| --- | --- | --- |
|
|
2447
|
+
| `blob` (read-only) | `Blob` | The generated binary Blob containing the exported chart. |
|
|
2448
|
+
| `format` (read-only) | `ChartExportFormat` | The export format that was produced. |
|
|
2449
|
+
| `height` (read-only) | `number` | The logical output height in CSS pixels. |
|
|
2450
|
+
| `mimeType` (read-only) | `string` | The MIME type of the exported blob (e.g. "image/png", "image/svg+xml", "application/pdf"). |
|
|
2451
|
+
| `width` (read-only) | `number` | The logical output width in CSS pixels. |
|
|
2452
|
+
|
|
2453
|
+
#### `ChartFunnelLabelTemplateContext`
|
|
2454
|
+
|
|
2455
|
+
**Type parameters:** `T = unknown`
|
|
2456
|
+
|
|
2457
|
+
| Name | Type |
|
|
2458
|
+
| --- | --- |
|
|
2459
|
+
| `$implicit` (read-only) | `ChartFunnelStageContext<T>` |
|
|
2460
|
+
| `bounds` (read-only) | `ChartRect` |
|
|
2461
|
+
| `category` (read-only) | `unknown` |
|
|
2462
|
+
| `color` (read-only) | `string` |
|
|
2463
|
+
| `conversionRate?` (read-only) | `number` |
|
|
2464
|
+
| `dataIndex` (read-only) | `number` |
|
|
2465
|
+
| `datum` (read-only) | `T` |
|
|
2466
|
+
| `dropOff?` (read-only) | `number` |
|
|
2467
|
+
| `formattedCategory` (read-only) | `string` |
|
|
2468
|
+
| `formattedConversionRate?` (read-only) | `string` |
|
|
2469
|
+
| `formattedOverallConversionRate?` (read-only) | `string` |
|
|
2470
|
+
| `formattedValue` (read-only) | `string` |
|
|
2471
|
+
| `overallConversionRate?` (read-only) | `number` |
|
|
2472
|
+
| `previousValue?` (read-only) | `number` |
|
|
2473
|
+
| `stage` (read-only) | `ChartFunnelStageContext<T>` |
|
|
2474
|
+
| `stageId` (read-only) | `string` |
|
|
2475
|
+
| `stageIndex` (read-only) | `number` |
|
|
2476
|
+
| `textColor?` (read-only) | `string` |
|
|
2477
|
+
| `value` (read-only) | `number` |
|
|
2478
|
+
|
|
2479
|
+
#### `ChartFunnelPointMetadata`
|
|
2480
|
+
|
|
2481
|
+
| Name | Type |
|
|
2482
|
+
| --- | --- |
|
|
2483
|
+
| `category` (read-only) | `unknown` |
|
|
2484
|
+
| `conversionRate?` (read-only) | `number` |
|
|
2485
|
+
| `dropOff?` (read-only) | `number` |
|
|
2486
|
+
| `formattedCategory` (read-only) | `string` |
|
|
2487
|
+
| `formattedConversionRate?` (read-only) | `string` |
|
|
2488
|
+
| `formattedOverallConversionRate?` (read-only) | `string` |
|
|
2489
|
+
| `formattedValue` (read-only) | `string` |
|
|
2490
|
+
| `overallConversionRate?` (read-only) | `number` |
|
|
2491
|
+
| `previousValue?` (read-only) | `number` |
|
|
2492
|
+
| `stageId` (read-only) | `string` |
|
|
2493
|
+
| `stageIndex` (read-only) | `number` |
|
|
2494
|
+
| `value` (read-only) | `number` |
|
|
2495
|
+
|
|
2496
|
+
#### `ChartFunnelStageContext`
|
|
2497
|
+
|
|
2498
|
+
**Type parameters:** `T = unknown`
|
|
2499
|
+
|
|
2500
|
+
| Name | Type |
|
|
2501
|
+
| --- | --- |
|
|
2502
|
+
| `bounds` (read-only) | `ChartRect` |
|
|
2503
|
+
| `category` (read-only) | `unknown` |
|
|
2504
|
+
| `color` (read-only) | `string` |
|
|
2505
|
+
| `conversionRate?` (read-only) | `number` |
|
|
2506
|
+
| `dataIndex` (read-only) | `number` |
|
|
2507
|
+
| `datum` (read-only) | `T` |
|
|
2508
|
+
| `dropOff?` (read-only) | `number` |
|
|
2509
|
+
| `formattedCategory` (read-only) | `string` |
|
|
2510
|
+
| `formattedConversionRate?` (read-only) | `string` |
|
|
2511
|
+
| `formattedOverallConversionRate?` (read-only) | `string` |
|
|
2512
|
+
| `formattedValue` (read-only) | `string` |
|
|
2513
|
+
| `overallConversionRate?` (read-only) | `number` |
|
|
2514
|
+
| `previousValue?` (read-only) | `number` |
|
|
2515
|
+
| `stageId` (read-only) | `string` |
|
|
2516
|
+
| `stageIndex` (read-only) | `number` |
|
|
2517
|
+
| `textColor?` (read-only) | `string` |
|
|
2518
|
+
| `value` (read-only) | `number` |
|
|
2519
|
+
|
|
2520
|
+
#### `ChartFunnelStageVisibilityEvent`
|
|
2521
|
+
|
|
2522
|
+
**Type parameters:** `T = unknown`
|
|
2523
|
+
|
|
2524
|
+
| Name | Type |
|
|
2525
|
+
| --- | --- |
|
|
2526
|
+
| `category` (read-only) | `unknown` |
|
|
2527
|
+
| `dataIndex` (read-only) | `number` |
|
|
2528
|
+
| `datum` (read-only) | `T` |
|
|
2529
|
+
| `formattedCategory` (read-only) | `string` |
|
|
2530
|
+
| `seriesId` (read-only) | `string` |
|
|
2531
|
+
| `seriesName` (read-only) | `string` |
|
|
2532
|
+
| `seriesType` (read-only) | `"funnel"` |
|
|
2533
|
+
| `stageId` (read-only) | `string` |
|
|
2534
|
+
| `visible` (read-only) | `boolean` |
|
|
2535
|
+
|
|
2536
|
+
#### `ChartGaugeCenterTemplateContext`
|
|
2537
|
+
|
|
2538
|
+
| Name | Type |
|
|
2539
|
+
| --- | --- |
|
|
2540
|
+
| `$implicit` (read-only) | `number` |
|
|
2541
|
+
| `formattedMax` (read-only) | `string` |
|
|
2542
|
+
| `formattedMin` (read-only) | `string` |
|
|
2543
|
+
| `formattedValue` (read-only) | `string` |
|
|
2544
|
+
| `isClamped` (read-only) | `boolean` |
|
|
2545
|
+
| `max` (read-only) | `number` |
|
|
2546
|
+
| `min` (read-only) | `number` |
|
|
2547
|
+
| `ratio` (read-only) | `number` |
|
|
2548
|
+
| `seriesId` (read-only) | `string` |
|
|
2549
|
+
| `seriesName` (read-only) | `string` |
|
|
2550
|
+
| `value` (read-only) | `number` |
|
|
2551
|
+
|
|
2552
|
+
#### `ChartHeatmapCategory`
|
|
2553
|
+
|
|
2554
|
+
| Name | Type |
|
|
2555
|
+
| --- | --- |
|
|
2556
|
+
| `formattedValue` (read-only) | `string` |
|
|
2557
|
+
| `index` (read-only) | `number` |
|
|
2558
|
+
| `key` (read-only) | `string` |
|
|
2559
|
+
| `value` (read-only) | `unknown` |
|
|
2560
|
+
|
|
2561
|
+
#### `ChartHeatmapCellData`
|
|
2562
|
+
|
|
2563
|
+
**Type parameters:** `TDatum = unknown`
|
|
2564
|
+
|
|
2565
|
+
| Name | Type |
|
|
2566
|
+
| --- | --- |
|
|
2567
|
+
| `categoryX` (read-only) | `string` |
|
|
2568
|
+
| `categoryY` (read-only) | `string` |
|
|
2569
|
+
| `datum` (read-only) | `TDatum` |
|
|
2570
|
+
| `formattedValue` (read-only) | `string` |
|
|
2571
|
+
| `formattedX` (read-only) | `string` |
|
|
2572
|
+
| `formattedY` (read-only) | `string` |
|
|
2573
|
+
| `numericValue` (read-only) | `number \| null` |
|
|
2574
|
+
| `rawValue` (read-only) | `unknown` |
|
|
2575
|
+
| `xIndex` (read-only) | `number` |
|
|
2576
|
+
| `yIndex` (read-only) | `number` |
|
|
2577
|
+
|
|
2578
|
+
#### `ChartHierarchyNodeContext`
|
|
2579
|
+
|
|
2580
|
+
**Type parameters:** `T = unknown`
|
|
2581
|
+
|
|
2582
|
+
| Name | Type |
|
|
2583
|
+
| --- | --- |
|
|
2584
|
+
| `aggregateValue` (read-only) | `number` |
|
|
2585
|
+
| `childCount` (read-only) | `number` |
|
|
2586
|
+
| `dataIndex` (read-only) | `number` |
|
|
2587
|
+
| `datum` (read-only) | `T` |
|
|
2588
|
+
| `depth` (read-only) | `number` |
|
|
2589
|
+
| `descendantCount` (read-only) | `number` |
|
|
2590
|
+
| `formattedLabel` (read-only) | `string` |
|
|
2591
|
+
| `formattedPath` (read-only) | `readonly string[]` |
|
|
2592
|
+
| `formattedValue` (read-only) | `string` |
|
|
2593
|
+
| `isCollapsed` (read-only) | `boolean` |
|
|
2594
|
+
| `isLeaf` (read-only) | `boolean` |
|
|
2595
|
+
| `label` (read-only) | `unknown` |
|
|
2596
|
+
| `nodeId` (read-only) | `string` |
|
|
2597
|
+
| `parentId?` (read-only) | `string` |
|
|
2598
|
+
| `path` (read-only) | `readonly unknown[]` |
|
|
2599
|
+
| `percentageOfParent?` (read-only) | `number` |
|
|
2600
|
+
| `percentageOfRoot?` (read-only) | `number` |
|
|
2601
|
+
| `rawValue?` (read-only) | `number` |
|
|
2602
|
+
| `siblingIndex` (read-only) | `number` |
|
|
2603
|
+
| `sourceIndexPath` (read-only) | `readonly number[]` |
|
|
2604
|
+
| `treeHeight` (read-only) | `number` |
|
|
2605
|
+
|
|
2606
|
+
#### `ChartHierarchyPointMetadata`
|
|
2607
|
+
|
|
2608
|
+
| Name | Type |
|
|
2609
|
+
| --- | --- |
|
|
2610
|
+
| `aggregateValue` (read-only) | `number` |
|
|
2611
|
+
| `childCount` (read-only) | `number` |
|
|
2612
|
+
| `dataIndex` (read-only) | `number` |
|
|
2613
|
+
| `depth` (read-only) | `number` |
|
|
2614
|
+
| `descendantCount` (read-only) | `number` |
|
|
2615
|
+
| `formattedLabel` (read-only) | `string` |
|
|
2616
|
+
| `formattedPath` (read-only) | `readonly string[]` |
|
|
2617
|
+
| `formattedValue` (read-only) | `string` |
|
|
2618
|
+
| `isCollapsed` (read-only) | `boolean` |
|
|
2619
|
+
| `isLeaf` (read-only) | `boolean` |
|
|
2620
|
+
| `label` (read-only) | `unknown` |
|
|
2621
|
+
| `nodeId` (read-only) | `string` |
|
|
2622
|
+
| `parentId?` (read-only) | `string` |
|
|
2623
|
+
| `path` (read-only) | `readonly unknown[]` |
|
|
2624
|
+
| `percentageOfParent?` (read-only) | `number` |
|
|
2625
|
+
| `percentageOfRoot?` (read-only) | `number` |
|
|
2626
|
+
| `rawValue?` (read-only) | `number` |
|
|
2627
|
+
| `siblingIndex` (read-only) | `number` |
|
|
2628
|
+
| `sourceIndexPath` (read-only) | `readonly number[]` |
|
|
2629
|
+
| `treeHeight` (read-only) | `number` |
|
|
2630
|
+
|
|
2631
|
+
#### `ChartLabelMeasurement`
|
|
2632
|
+
|
|
2633
|
+
| Name | Type |
|
|
2634
|
+
| --- | --- |
|
|
2635
|
+
| `height` | `number` |
|
|
2636
|
+
| `width` | `number` |
|
|
2637
|
+
|
|
2638
|
+
#### `ChartLegendItem`
|
|
2639
|
+
|
|
2640
|
+
| Name | Type |
|
|
2641
|
+
| --- | --- |
|
|
2642
|
+
| `color` (read-only) | `string` |
|
|
2643
|
+
| `dataIndex?` (read-only) | `number` |
|
|
2644
|
+
| `datum?` (read-only) | `unknown` |
|
|
2645
|
+
| `interactive?` (read-only) | `boolean` |
|
|
2646
|
+
| `itemId` (read-only) | `string` |
|
|
2647
|
+
| `kind?` (read-only) | `ChartLegendItemKind` |
|
|
2648
|
+
| `name` (read-only) | `string` |
|
|
2649
|
+
| `percentage?` (read-only) | `number` |
|
|
2650
|
+
| `secondaryColor?` (read-only) | `string` |
|
|
2651
|
+
| `seriesId` (read-only) | `string` |
|
|
2652
|
+
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
2653
|
+
| `value?` (read-only) | `number` |
|
|
2654
|
+
| `visible` (read-only) | `boolean` |
|
|
2655
|
+
|
|
2656
|
+
#### `ChartLegendItemTemplateContext`
|
|
2657
|
+
|
|
2658
|
+
| Name | Type |
|
|
2659
|
+
| --- | --- |
|
|
2660
|
+
| `$implicit` | `ChartLegendItem` |
|
|
2661
|
+
| `color` | `string` |
|
|
2662
|
+
| `dataIndex?` | `number` |
|
|
2663
|
+
| `datum?` | `unknown` |
|
|
2664
|
+
| `interactive?` | `boolean` |
|
|
2665
|
+
| `itemId` | `string` |
|
|
2666
|
+
| `kind?` | `ChartLegendItemKind` |
|
|
2667
|
+
| `name` | `string` |
|
|
2668
|
+
| `percentage?` | `number` |
|
|
2669
|
+
| `secondaryColor?` | `string` |
|
|
2670
|
+
| `series` | `ChartLegendItem` |
|
|
2671
|
+
| `seriesId` | `string` |
|
|
2672
|
+
| `seriesType` | `ChartSeriesType` |
|
|
2673
|
+
| `value?` | `number` |
|
|
2674
|
+
| `visible` | `boolean` |
|
|
2675
|
+
|
|
2676
|
+
#### `ChartNavigationOptions`
|
|
2677
|
+
|
|
2678
|
+
| Name | Type |
|
|
2679
|
+
| --- | --- |
|
|
2680
|
+
| `clampToData?` (read-only) | `boolean` |
|
|
2681
|
+
| `constraints?` (read-only) | `readonly ChartViewportConstraint[]` |
|
|
2682
|
+
| `dragPan?` (read-only) | `boolean` |
|
|
2683
|
+
| `keyboard?` (read-only) | `boolean` |
|
|
2684
|
+
| `keyboardPanRatio?` (read-only) | `number` |
|
|
2685
|
+
| `keyboardZoomFactor?` (read-only) | `number` |
|
|
2686
|
+
| `linkGroups?` (read-only) | `readonly ChartViewportLinkGroup[]` |
|
|
2687
|
+
| `minVisibleCategories?` (read-only) | `number` |
|
|
2688
|
+
| `pan?` (read-only) | `boolean` |
|
|
2689
|
+
| `panAxes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
2690
|
+
| `pinchZoom?` (read-only) | `boolean` |
|
|
2691
|
+
| `wheelSensitivity?` (read-only) | `number` |
|
|
2692
|
+
| `wheelZoom?` (read-only) | `boolean` |
|
|
2693
|
+
| `zoom?` (read-only) | `boolean` |
|
|
2694
|
+
| `zoomAxes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
2695
|
+
|
|
2696
|
+
#### `ChartOhlcPointValue`
|
|
2697
|
+
|
|
2698
|
+
| Name | Type |
|
|
2699
|
+
| --- | --- |
|
|
2700
|
+
| `change?` (read-only) | `number` |
|
|
2701
|
+
| `changePercentage?` (read-only) | `number` |
|
|
2702
|
+
| `close` (read-only) | `number` |
|
|
2703
|
+
| `direction` (read-only) | `ChartFinancialDirection` |
|
|
2704
|
+
| `formattedChange?` (read-only) | `string` |
|
|
2705
|
+
| `formattedChangePercentage?` (read-only) | `string` |
|
|
2706
|
+
| `formattedClose?` (read-only) | `string` |
|
|
2707
|
+
| `formattedHigh?` (read-only) | `string` |
|
|
2708
|
+
| `formattedLow?` (read-only) | `string` |
|
|
2709
|
+
| `formattedOpen?` (read-only) | `string` |
|
|
2710
|
+
| `high` (read-only) | `number` |
|
|
2711
|
+
| `low` (read-only) | `number` |
|
|
2712
|
+
| `open` (read-only) | `number` |
|
|
2713
|
+
| `valueKind` (read-only) | `"ohlc"` |
|
|
2714
|
+
|
|
2715
|
+
#### `ChartPadding`
|
|
2716
|
+
|
|
2717
|
+
| Name | Type |
|
|
2718
|
+
| --- | --- |
|
|
2719
|
+
| `bottom` | `number` |
|
|
2720
|
+
| `left` | `number` |
|
|
2721
|
+
| `right` | `number` |
|
|
2722
|
+
| `top` | `number` |
|
|
2723
|
+
|
|
2724
|
+
#### `ChartPdfExportOptions`
|
|
2725
|
+
|
|
2726
|
+
Options for exporting a chart as a PDF document.
|
|
2727
|
+
|
|
2728
|
+
**Extends:** `ChartExportBaseOptions`
|
|
2729
|
+
|
|
2730
|
+
| Name | Type | Description |
|
|
2731
|
+
| --- | --- | --- |
|
|
2732
|
+
| `format` (read-only) | `"pdf"` | Selects export as a PDF document. |
|
|
2733
|
+
| `mode?` (read-only) | `ChartPdfRenderMode` | PDF rendering mode ("auto", "vector", or "raster"). Default: "auto". |
|
|
2734
|
+
| `page?` (read-only) | `ChartPdfPageOptions` | PDF page configuration. |
|
|
2735
|
+
|
|
2736
|
+
#### `ChartPdfMargins`
|
|
2737
|
+
|
|
2738
|
+
PDF page margins in PDF points (72 points = 1 inch).
|
|
2739
|
+
|
|
2740
|
+
| Name | Type |
|
|
2741
|
+
| --- | --- |
|
|
2742
|
+
| `bottom?` (read-only) | `number` |
|
|
2743
|
+
| `left?` (read-only) | `number` |
|
|
2744
|
+
| `right?` (read-only) | `number` |
|
|
2745
|
+
| `top?` (read-only) | `number` |
|
|
2746
|
+
|
|
2747
|
+
#### `ChartPdfPageOptions`
|
|
2748
|
+
|
|
2749
|
+
Page layout options for PDF export.
|
|
2750
|
+
|
|
2751
|
+
| Name | Type | Description |
|
|
2752
|
+
| --- | --- | --- |
|
|
2753
|
+
| `margin?` (read-only) | `number \| ChartPdfMargins` | Page margins in PDF points. Default: 0 for "chart" page size, 24 for standard pages if not specified. |
|
|
2754
|
+
| `orientation?` (read-only) | `"auto" \| "portrait" \| "landscape"` | Page orientation. Default: "auto" (derived from the chart aspect ratio). |
|
|
2755
|
+
| `size?` (read-only) | `ChartPdfPageSize` | Target page size. Default: "chart". |
|
|
2756
|
+
|
|
2757
|
+
#### `ChartPngExportOptions`
|
|
2758
|
+
|
|
2759
|
+
Options for exporting a chart as a PNG raster image.
|
|
2760
|
+
|
|
2761
|
+
**Extends:** `ChartExportBaseOptions`
|
|
2762
|
+
|
|
2763
|
+
| Name | Type | Description |
|
|
2764
|
+
| --- | --- | --- |
|
|
2765
|
+
| `format` (read-only) | `"png"` | Selects export as a PNG image. |
|
|
2766
|
+
| `pixelRatio?` (read-only) | `number` | Raster scaling ratio relative to logical CSS pixels. Default: 2. |
|
|
2767
|
+
|
|
2768
|
+
#### `ChartPoint`
|
|
2769
|
+
|
|
2770
|
+
| Name | Type |
|
|
2771
|
+
| --- | --- |
|
|
2772
|
+
| `x` | `number` |
|
|
2773
|
+
| `y` | `number` |
|
|
2774
|
+
|
|
2775
|
+
#### `ChartPointEvent`
|
|
2776
|
+
|
|
2777
|
+
**Type parameters:** `T = unknown`
|
|
2778
|
+
|
|
2779
|
+
| Name | Type |
|
|
2780
|
+
| --- | --- |
|
|
2781
|
+
| `category?` (read-only) | `unknown` |
|
|
2782
|
+
| `categoryX?` (read-only) | `string` |
|
|
2783
|
+
| `categoryY?` (read-only) | `string` |
|
|
2784
|
+
| `change?` (read-only) | `number` |
|
|
2785
|
+
| `changePercentage?` (read-only) | `number` |
|
|
2786
|
+
| `close?` (read-only) | `number` |
|
|
2787
|
+
| `dataIndex` (read-only) | `number` |
|
|
2788
|
+
| `datum` (read-only) | `T` |
|
|
2789
|
+
| `financial?` (read-only) | `ChartOhlcPointValue` |
|
|
2790
|
+
| `financialDirection?` (read-only) | `ChartFinancialDirection` |
|
|
2791
|
+
| `formattedChange?` (read-only) | `string` |
|
|
2792
|
+
| `formattedChangePercentage?` (read-only) | `string` |
|
|
2793
|
+
| `formattedClose?` (read-only) | `string` |
|
|
2794
|
+
| `formattedFrom?` (read-only) | `string` |
|
|
2795
|
+
| `formattedHigh?` (read-only) | `string` |
|
|
2796
|
+
| `formattedLow?` (read-only) | `string` |
|
|
2797
|
+
| `formattedOpen?` (read-only) | `string` |
|
|
2798
|
+
| `formattedTo?` (read-only) | `string` |
|
|
2799
|
+
| `formattedXValue?` (read-only) | `string` |
|
|
2800
|
+
| `formattedYCategory?` (read-only) | `string` |
|
|
2801
|
+
| `fromValue?` (read-only) | `number` |
|
|
2802
|
+
| `funnel?` (read-only) | `ChartFunnelPointMetadata` |
|
|
2803
|
+
| `hierarchy?` (read-only) | `ChartHierarchyPointMetadata` |
|
|
2804
|
+
| `high?` (read-only) | `number` |
|
|
2805
|
+
| `low?` (read-only) | `number` |
|
|
2806
|
+
| `markId?` (read-only) | `string` |
|
|
2807
|
+
| `open?` (read-only) | `number` |
|
|
2808
|
+
| `percentage?` (read-only) | `number` |
|
|
2809
|
+
| `rawValue?` (read-only) | `unknown` |
|
|
2810
|
+
| `seriesId` (read-only) | `string` |
|
|
2811
|
+
| `seriesName` (read-only) | `string` |
|
|
2812
|
+
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
2813
|
+
| `sizeValue?` (read-only) | `number` |
|
|
2814
|
+
| `sliceId?` (read-only) | `string` |
|
|
2815
|
+
| `stackEnd?` (read-only) | `number` |
|
|
2816
|
+
| `stackGroup?` (read-only) | `string` |
|
|
2817
|
+
| `stackMode?` (read-only) | `ChartStackMode` |
|
|
2818
|
+
| `stackPercentage?` (read-only) | `number` |
|
|
2819
|
+
| `stackPosition?` (read-only) | `"inner" \| "outer" \| "single"` |
|
|
2820
|
+
| `stackStart?` (read-only) | `number` |
|
|
2821
|
+
| `stackTotal?` (read-only) | `number` |
|
|
2822
|
+
| `toValue?` (read-only) | `number` |
|
|
2823
|
+
| `value?` (read-only) | `unknown` |
|
|
2824
|
+
| `valueKind?` (read-only) | `ChartPointValueKind` |
|
|
2825
|
+
| `waterfall?` (read-only) | `ChartWaterfallPointValue` |
|
|
2826
|
+
| `xAxisId?` (read-only) | `string` |
|
|
2827
|
+
| `xAxisTitle?` (read-only) | `string` |
|
|
2828
|
+
| `xValue` (read-only) | `unknown` |
|
|
2829
|
+
| `yAxisId?` (read-only) | `string` |
|
|
2830
|
+
| `yAxisTitle?` (read-only) | `string` |
|
|
2831
|
+
| `yCategory?` (read-only) | `unknown` |
|
|
2832
|
+
| `yValue?` (read-only) | `number` |
|
|
2833
|
+
|
|
2834
|
+
#### `ChartPointFocusEvent`
|
|
2835
|
+
|
|
2836
|
+
**Type parameters:** `T = unknown`
|
|
2837
|
+
|
|
2838
|
+
| Name | Type |
|
|
2839
|
+
| --- | --- |
|
|
2840
|
+
| `category?` (read-only) | `unknown` |
|
|
2841
|
+
| `categoryX?` (read-only) | `string` |
|
|
2842
|
+
| `categoryY?` (read-only) | `string` |
|
|
2843
|
+
| `change?` (read-only) | `number` |
|
|
2844
|
+
| `changePercentage?` (read-only) | `number` |
|
|
2845
|
+
| `close?` (read-only) | `number` |
|
|
2846
|
+
| `dataIndex` (read-only) | `number` |
|
|
2847
|
+
| `datum` (read-only) | `T` |
|
|
2848
|
+
| `financial?` (read-only) | `ChartOhlcPointValue` |
|
|
2849
|
+
| `financialDirection?` (read-only) | `ChartFinancialDirection` |
|
|
2850
|
+
| `formattedChange?` (read-only) | `string` |
|
|
2851
|
+
| `formattedChangePercentage?` (read-only) | `string` |
|
|
2852
|
+
| `formattedClose?` (read-only) | `string` |
|
|
2853
|
+
| `formattedFrom?` (read-only) | `string` |
|
|
2854
|
+
| `formattedHigh?` (read-only) | `string` |
|
|
2855
|
+
| `formattedLow?` (read-only) | `string` |
|
|
2856
|
+
| `formattedOpen?` (read-only) | `string` |
|
|
2857
|
+
| `formattedTo?` (read-only) | `string` |
|
|
2858
|
+
| `formattedXValue?` (read-only) | `string` |
|
|
2859
|
+
| `formattedYCategory?` (read-only) | `string` |
|
|
2860
|
+
| `fromValue?` (read-only) | `number` |
|
|
2861
|
+
| `funnel?` (read-only) | `ChartFunnelPointMetadata` |
|
|
2862
|
+
| `hierarchy?` (read-only) | `ChartHierarchyPointMetadata` |
|
|
2863
|
+
| `high?` (read-only) | `number` |
|
|
2864
|
+
| `low?` (read-only) | `number` |
|
|
2865
|
+
| `markId?` (read-only) | `string` |
|
|
2866
|
+
| `open?` (read-only) | `number` |
|
|
2867
|
+
| `percentage?` (read-only) | `number` |
|
|
2868
|
+
| `rawValue?` (read-only) | `unknown` |
|
|
2869
|
+
| `seriesId` (read-only) | `string` |
|
|
2870
|
+
| `seriesName` (read-only) | `string` |
|
|
2871
|
+
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
2872
|
+
| `sizeValue?` (read-only) | `number` |
|
|
2873
|
+
| `sliceId?` (read-only) | `string` |
|
|
2874
|
+
| `stackEnd?` (read-only) | `number` |
|
|
2875
|
+
| `stackGroup?` (read-only) | `string` |
|
|
2876
|
+
| `stackMode?` (read-only) | `ChartStackMode` |
|
|
2877
|
+
| `stackPercentage?` (read-only) | `number` |
|
|
2878
|
+
| `stackPosition?` (read-only) | `"inner" \| "outer" \| "single"` |
|
|
2879
|
+
| `stackStart?` (read-only) | `number` |
|
|
2880
|
+
| `stackTotal?` (read-only) | `number` |
|
|
2881
|
+
| `toValue?` (read-only) | `number` |
|
|
2882
|
+
| `value?` (read-only) | `unknown` |
|
|
2883
|
+
| `valueKind?` (read-only) | `ChartPointValueKind` |
|
|
2884
|
+
| `waterfall?` (read-only) | `ChartWaterfallPointValue` |
|
|
2885
|
+
| `xAxisId?` (read-only) | `string` |
|
|
2886
|
+
| `xAxisTitle?` (read-only) | `string` |
|
|
2887
|
+
| `xValue` (read-only) | `unknown` |
|
|
2888
|
+
| `yAxisId?` (read-only) | `string` |
|
|
2889
|
+
| `yAxisTitle?` (read-only) | `string` |
|
|
2890
|
+
| `yCategory?` (read-only) | `unknown` |
|
|
2891
|
+
| `yValue?` (read-only) | `number` |
|
|
2892
|
+
|
|
2893
|
+
#### `ChartRadialDatumVisibilityEvent`
|
|
2894
|
+
|
|
2895
|
+
| Name | Type |
|
|
2896
|
+
| --- | --- |
|
|
2897
|
+
| `category` (read-only) | `unknown` |
|
|
2898
|
+
| `dataIndex` (read-only) | `number` |
|
|
2899
|
+
| `datum` (read-only) | `unknown` |
|
|
2900
|
+
| `itemId` (read-only) | `string` |
|
|
2901
|
+
| `seriesId` (read-only) | `string` |
|
|
2902
|
+
| `seriesName` (read-only) | `string` |
|
|
2903
|
+
| `seriesType` (read-only) | `"radialBar" \| "rose"` |
|
|
2904
|
+
| `visible` (read-only) | `boolean` |
|
|
2905
|
+
|
|
2906
|
+
#### `ChartRangePointValue`
|
|
2907
|
+
|
|
2908
|
+
| Name | Type |
|
|
2909
|
+
| --- | --- |
|
|
2910
|
+
| `formattedFrom` (read-only) | `string` |
|
|
2911
|
+
| `formattedTo` (read-only) | `string` |
|
|
2912
|
+
| `fromValue` (read-only) | `number` |
|
|
2913
|
+
| `toValue` (read-only) | `number` |
|
|
2914
|
+
| `valueKind` (read-only) | `"range"` |
|
|
2915
|
+
|
|
2916
|
+
#### `ChartRect`
|
|
2917
|
+
|
|
2918
|
+
| Name | Type |
|
|
2919
|
+
| --- | --- |
|
|
2920
|
+
| `height` | `number` |
|
|
2921
|
+
| `width` | `number` |
|
|
2922
|
+
| `x` | `number` |
|
|
2923
|
+
| `y` | `number` |
|
|
2924
|
+
|
|
2925
|
+
#### `ChartReferenceBandLabelContext`
|
|
2926
|
+
|
|
2927
|
+
**Type parameters:** `TFrom extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`, `TTo extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`
|
|
2928
|
+
|
|
2929
|
+
| Name | Type |
|
|
2930
|
+
| --- | --- |
|
|
2931
|
+
| `$implicit` (read-only) | `{ readonly from: TFrom; readonly to: TTo }` |
|
|
2932
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
2933
|
+
| `axisId` (read-only) | `string` |
|
|
2934
|
+
| `bounds` (read-only) | `ChartRect` |
|
|
2935
|
+
| `coordinate?` (read-only) | `undefined` |
|
|
2936
|
+
| `formattedFrom` (read-only) | `string` |
|
|
2937
|
+
| `formattedTo` (read-only) | `string` |
|
|
2938
|
+
| `formattedValue?` (read-only) | `undefined` |
|
|
2939
|
+
| `from` (read-only) | `TFrom` |
|
|
2940
|
+
| `kind` (read-only) | `"band"` |
|
|
2941
|
+
| `to` (read-only) | `TTo` |
|
|
2942
|
+
| `value?` (read-only) | `undefined` |
|
|
2943
|
+
|
|
2944
|
+
#### `ChartReferenceLineLabelContext`
|
|
2945
|
+
|
|
2946
|
+
**Type parameters:** `T extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`
|
|
2947
|
+
|
|
2948
|
+
| Name | Type |
|
|
2949
|
+
| --- | --- |
|
|
2950
|
+
| `$implicit` (read-only) | `T` |
|
|
2951
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
2952
|
+
| `axisId` (read-only) | `string` |
|
|
2953
|
+
| `bounds?` (read-only) | `undefined` |
|
|
2954
|
+
| `coordinate` (read-only) | `number` |
|
|
2955
|
+
| `formattedFrom?` (read-only) | `undefined` |
|
|
2956
|
+
| `formattedTo?` (read-only) | `undefined` |
|
|
2957
|
+
| `formattedValue` (read-only) | `string` |
|
|
2958
|
+
| `from?` (read-only) | `undefined` |
|
|
2959
|
+
| `kind` (read-only) | `"line"` |
|
|
2960
|
+
| `to?` (read-only) | `undefined` |
|
|
2961
|
+
| `value` (read-only) | `T` |
|
|
2962
|
+
|
|
2963
|
+
#### `ChartScalarPointValue`
|
|
2964
|
+
|
|
2965
|
+
| Name | Type |
|
|
2966
|
+
| --- | --- |
|
|
2967
|
+
| `valueKind` (read-only) | `"scalar"` |
|
|
2968
|
+
| `yValue` (read-only) | `number` |
|
|
2969
|
+
|
|
2970
|
+
#### `ChartSelectedPoint`
|
|
2971
|
+
|
|
2972
|
+
**Type parameters:** `T = unknown`
|
|
2973
|
+
|
|
2974
|
+
| Name | Type |
|
|
2975
|
+
| --- | --- |
|
|
2976
|
+
| `close?` (read-only) | `number` |
|
|
2977
|
+
| `dataIndex` (read-only) | `number` |
|
|
2978
|
+
| `datum` (read-only) | `T` |
|
|
2979
|
+
| `fromValue?` (read-only) | `number` |
|
|
2980
|
+
| `high?` (read-only) | `number` |
|
|
2981
|
+
| `low?` (read-only) | `number` |
|
|
2982
|
+
| `markId` (read-only) | `string` |
|
|
2983
|
+
| `open?` (read-only) | `number` |
|
|
2984
|
+
| `rawValue?` (read-only) | `unknown` |
|
|
2985
|
+
| `seriesId` (read-only) | `string` |
|
|
2986
|
+
| `seriesName` (read-only) | `string` |
|
|
2987
|
+
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
2988
|
+
| `stackEnd?` (read-only) | `number` |
|
|
2989
|
+
| `stackPercentage?` (read-only) | `number` |
|
|
2990
|
+
| `stackStart?` (read-only) | `number` |
|
|
2991
|
+
| `toValue?` (read-only) | `number` |
|
|
2992
|
+
| `value?` (read-only) | `unknown` |
|
|
2993
|
+
| `xValue?` (read-only) | `unknown` |
|
|
2994
|
+
| `yValue?` (read-only) | `unknown` |
|
|
2995
|
+
|
|
2996
|
+
#### `ChartSelectionChangeEvent`
|
|
2997
|
+
|
|
2998
|
+
**Type parameters:** `T = unknown`
|
|
2999
|
+
|
|
3000
|
+
| Name | Type |
|
|
3001
|
+
| --- | --- |
|
|
3002
|
+
| `addedMarkIds` (read-only) | `readonly string[]` |
|
|
3003
|
+
| `changedPoints` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
3004
|
+
| `previousSelectedMarkIds` (read-only) | `readonly string[]` |
|
|
3005
|
+
| `removedMarkIds` (read-only) | `readonly string[]` |
|
|
3006
|
+
| `selectedMarkIds` (read-only) | `readonly string[]` |
|
|
3007
|
+
| `source` (read-only) | `ChartSelectionChangeSource` |
|
|
3008
|
+
| `visibleSelectedPoints` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
3009
|
+
|
|
3010
|
+
#### `ChartSeriesStyle`
|
|
3011
|
+
|
|
3012
|
+
| Name | Type |
|
|
3013
|
+
| --- | --- |
|
|
3014
|
+
| `areaFillColor` | `string` |
|
|
3015
|
+
| `areaFillOpacity` | `number` |
|
|
3016
|
+
| `color` | `string` |
|
|
3017
|
+
| `fillOpacity` | `number` |
|
|
3018
|
+
| `lineStyle?` | `ChartLineStyle` |
|
|
3019
|
+
| `lineWidth` | `number` |
|
|
3020
|
+
| `opacity` | `number` |
|
|
3021
|
+
| `pointRadius` | `number` |
|
|
3022
|
+
|
|
3023
|
+
#### `ChartSeriesVisibilityEvent`
|
|
3024
|
+
|
|
3025
|
+
| Name | Type |
|
|
3026
|
+
| --- | --- |
|
|
3027
|
+
| `seriesId` (read-only) | `string` |
|
|
3028
|
+
| `seriesName` (read-only) | `string` |
|
|
3029
|
+
| `visible` (read-only) | `boolean` |
|
|
3030
|
+
|
|
3031
|
+
#### `ChartSize`
|
|
3032
|
+
|
|
3033
|
+
| Name | Type |
|
|
3034
|
+
| --- | --- |
|
|
3035
|
+
| `height` | `number` |
|
|
3036
|
+
| `width` | `number` |
|
|
3037
|
+
|
|
3038
|
+
#### `ChartSliceContext`
|
|
3039
|
+
|
|
3040
|
+
| Name | Type |
|
|
3041
|
+
| --- | --- |
|
|
3042
|
+
| `category` | `unknown` |
|
|
3043
|
+
| `color` | `string` |
|
|
3044
|
+
| `dataIndex` | `number` |
|
|
3045
|
+
| `datum` | `unknown` |
|
|
3046
|
+
| `formattedCategory` | `string` |
|
|
3047
|
+
| `formattedPercentage` | `string` |
|
|
3048
|
+
| `formattedValue` | `string` |
|
|
3049
|
+
| `percentage` | `number` |
|
|
3050
|
+
| `seriesId` | `string` |
|
|
3051
|
+
| `seriesName` | `string` |
|
|
3052
|
+
| `seriesType` | `"donut" \| "pie"` |
|
|
3053
|
+
| `value` | `number` |
|
|
3054
|
+
|
|
3055
|
+
#### `ChartSliceLabelTemplateContext`
|
|
3056
|
+
|
|
3057
|
+
| Name | Type |
|
|
3058
|
+
| --- | --- |
|
|
3059
|
+
| `$implicit` | `ChartSliceContext` |
|
|
3060
|
+
| `category` | `unknown` |
|
|
3061
|
+
| `color` | `string` |
|
|
3062
|
+
| `dataIndex` | `number` |
|
|
3063
|
+
| `datum` | `unknown` |
|
|
3064
|
+
| `formattedCategory` | `string` |
|
|
3065
|
+
| `formattedPercentage` | `string` |
|
|
3066
|
+
| `formattedValue` | `string` |
|
|
3067
|
+
| `percentage` | `number` |
|
|
3068
|
+
| `seriesId` | `string` |
|
|
3069
|
+
| `seriesName` | `string` |
|
|
3070
|
+
| `seriesType` | `"donut" \| "pie"` |
|
|
3071
|
+
| `slice` | `ChartSliceContext` |
|
|
3072
|
+
| `value` | `number` |
|
|
3073
|
+
|
|
3074
|
+
#### `ChartSliceVisibilityEvent`
|
|
3075
|
+
|
|
3076
|
+
| Name | Type |
|
|
3077
|
+
| --- | --- |
|
|
3078
|
+
| `category` | `unknown` |
|
|
3079
|
+
| `dataIndex` | `number` |
|
|
3080
|
+
| `datum` | `unknown` |
|
|
3081
|
+
| `seriesId` | `string` |
|
|
3082
|
+
| `seriesName` | `string` |
|
|
3083
|
+
| `seriesType` | `"donut" \| "pie"` |
|
|
3084
|
+
| `visible` | `boolean` |
|
|
3085
|
+
|
|
3086
|
+
#### `ChartSubtitleTemplateContext`
|
|
3087
|
+
|
|
3088
|
+
| Name | Type |
|
|
3089
|
+
| --- | --- |
|
|
3090
|
+
| `$implicit` (read-only) | `string` |
|
|
3091
|
+
| `subtitle` (read-only) | `string` |
|
|
3092
|
+
|
|
3093
|
+
#### `ChartSvgExportOptions`
|
|
3094
|
+
|
|
3095
|
+
Options for exporting a chart as a standalone SVG vector document.
|
|
3096
|
+
|
|
3097
|
+
**Extends:** `ChartExportBaseOptions`
|
|
3098
|
+
|
|
3099
|
+
| Name | Type | Description |
|
|
3100
|
+
| --- | --- | --- |
|
|
3101
|
+
| `accessibility?` (read-only) | `boolean` | Whether to include accessibility metadata (<title>, <desc>, and ARIA attributes). Default: true. |
|
|
3102
|
+
| `format` (read-only) | `"svg"` | Selects export as a SVG document. |
|
|
3103
|
+
|
|
3104
|
+
#### `ChartSynchronizationAxisMapping`
|
|
3105
|
+
|
|
3106
|
+
| Name | Type |
|
|
3107
|
+
| --- | --- |
|
|
3108
|
+
| `source` (read-only) | `ChartViewportAxisRef` |
|
|
3109
|
+
| `target` (read-only) | `ChartViewportAxisRef` |
|
|
3110
|
+
|
|
3111
|
+
#### `ChartSynchronizationOptions`
|
|
3112
|
+
|
|
3113
|
+
| Name | Type |
|
|
3114
|
+
| --- | --- |
|
|
3115
|
+
| `axisMappings?` (read-only) | `readonly ChartSynchronizationAxisMapping[]` |
|
|
3116
|
+
| `crosshair?` (read-only) | `boolean \| ChartCrosshairSynchronizationOptions` |
|
|
3117
|
+
| `group` (read-only) | `string` |
|
|
3118
|
+
| `viewport?` (read-only) | `boolean \| ChartViewportSynchronizationOptions` |
|
|
3119
|
+
|
|
3120
|
+
#### `ChartTitleTemplateContext`
|
|
3121
|
+
|
|
3122
|
+
| Name | Type |
|
|
3123
|
+
| --- | --- |
|
|
3124
|
+
| `$implicit` (read-only) | `string` |
|
|
3125
|
+
| `title` (read-only) | `string` |
|
|
3126
|
+
|
|
3127
|
+
#### `ChartTooltipPointContext`
|
|
3128
|
+
|
|
3129
|
+
**Type parameters:** `T = unknown`
|
|
3130
|
+
|
|
3131
|
+
| Name | Type |
|
|
3132
|
+
| --- | --- |
|
|
3133
|
+
| `category?` | `unknown` |
|
|
3134
|
+
| `categoryX?` | `string` |
|
|
3135
|
+
| `categoryY?` | `string` |
|
|
3136
|
+
| `change?` | `number` |
|
|
3137
|
+
| `changePercentage?` | `number` |
|
|
3138
|
+
| `close?` | `number` |
|
|
3139
|
+
| `color` | `string` |
|
|
3140
|
+
| `dataIndex` | `number` |
|
|
3141
|
+
| `datum` | `T` |
|
|
3142
|
+
| `financial?` | `ChartOhlcPointValue` |
|
|
3143
|
+
| `financialDirection?` | `ChartFinancialDirection` |
|
|
3144
|
+
| `formattedCategory?` | `string` |
|
|
3145
|
+
| `formattedChange?` | `string` |
|
|
3146
|
+
| `formattedChangePercentage?` | `string` |
|
|
3147
|
+
| `formattedClose?` | `string` |
|
|
3148
|
+
| `formattedFrom?` | `string` |
|
|
3149
|
+
| `formattedHigh?` | `string` |
|
|
3150
|
+
| `formattedLow?` | `string` |
|
|
3151
|
+
| `formattedOpen?` | `string` |
|
|
3152
|
+
| `formattedPercentage?` | `string` |
|
|
3153
|
+
| `formattedRadialMax?` | `string` |
|
|
3154
|
+
| `formattedRadialMin?` | `string` |
|
|
3155
|
+
| `formattedSize?` | `string` |
|
|
3156
|
+
| `formattedStackPercentage?` | `string` |
|
|
3157
|
+
| `formattedStackTotal?` | `string` |
|
|
3158
|
+
| `formattedTo?` | `string` |
|
|
3159
|
+
| `formattedX` | `string` |
|
|
3160
|
+
| `formattedXValue?` | `string` |
|
|
3161
|
+
| `formattedY` | `string` |
|
|
3162
|
+
| `formattedYCategory?` | `string` |
|
|
3163
|
+
| `fromValue?` | `number` |
|
|
3164
|
+
| `funnel?` | `ChartFunnelPointMetadata` |
|
|
3165
|
+
| `hierarchy?` | `ChartHierarchyPointMetadata` |
|
|
3166
|
+
| `high?` | `number` |
|
|
3167
|
+
| `isClamped?` | `boolean` |
|
|
3168
|
+
| `low?` | `number` |
|
|
3169
|
+
| `markId` | `string` |
|
|
3170
|
+
| `open?` | `number` |
|
|
3171
|
+
| `percentage?` | `number` |
|
|
3172
|
+
| `radialMax?` | `number` |
|
|
3173
|
+
| `radialMin?` | `number` |
|
|
3174
|
+
| `radialRatio?` | `number` |
|
|
3175
|
+
| `rawValue?` | `unknown` |
|
|
3176
|
+
| `seriesId` | `string` |
|
|
3177
|
+
| `seriesName` | `string` |
|
|
3178
|
+
| `seriesType` | `ChartSeriesType` |
|
|
3179
|
+
| `sizeValue?` | `number` |
|
|
3180
|
+
| `sliceId?` | `string` |
|
|
3181
|
+
| `stackEnd?` | `number` |
|
|
3182
|
+
| `stackGroup?` | `string` |
|
|
3183
|
+
| `stackMode?` | `ChartStackMode` |
|
|
3184
|
+
| `stackPercentage?` | `number` |
|
|
3185
|
+
| `stackPosition?` | `"inner" \| "outer" \| "single"` |
|
|
3186
|
+
| `stackStart?` | `number` |
|
|
3187
|
+
| `stackTotal?` | `number` |
|
|
3188
|
+
| `toValue?` | `number` |
|
|
3189
|
+
| `value?` | `unknown` |
|
|
3190
|
+
| `valueKind?` | `ChartPointValueKind` |
|
|
3191
|
+
| `waterfall?` | `ChartWaterfallPointValue` |
|
|
3192
|
+
| `xAxisId?` | `string` |
|
|
3193
|
+
| `xAxisTitle?` | `string` |
|
|
3194
|
+
| `xValue` | `unknown` |
|
|
3195
|
+
| `yAxisId?` | `string` |
|
|
3196
|
+
| `yAxisTitle?` | `string` |
|
|
3197
|
+
| `yCategory?` | `unknown` |
|
|
3198
|
+
| `yValue?` | `number` |
|
|
3199
|
+
|
|
3200
|
+
#### `ChartTooltipTemplateContext`
|
|
3201
|
+
|
|
3202
|
+
**Type parameters:** `T = unknown`
|
|
3203
|
+
|
|
3204
|
+
| Name | Type |
|
|
3205
|
+
| --- | --- |
|
|
3206
|
+
| `$implicit` | `ChartTooltipPointContext<T>` |
|
|
3207
|
+
| `point` | `ChartTooltipPointContext<T>` |
|
|
3208
|
+
| `points` | `readonly ChartTooltipPointContext<T>[]` |
|
|
3209
|
+
| `series` | `readonly string[]` |
|
|
3210
|
+
| `shared` | `boolean` |
|
|
3211
|
+
|
|
3212
|
+
#### `ChartTreemapLabelTemplateContext`
|
|
3213
|
+
|
|
3214
|
+
**Type parameters:** `T = unknown`
|
|
3215
|
+
|
|
3216
|
+
| Name | Type |
|
|
3217
|
+
| --- | --- |
|
|
3218
|
+
| `$implicit` (read-only) | `ChartHierarchyNodeContext<T>` |
|
|
3219
|
+
| `bounds` (read-only) | `ChartRect` |
|
|
3220
|
+
| `color` (read-only) | `string` |
|
|
3221
|
+
| `datum` (read-only) | `T` |
|
|
3222
|
+
| `depth` (read-only) | `number` |
|
|
3223
|
+
| `formattedLabel` (read-only) | `string` |
|
|
3224
|
+
| `formattedPath` (read-only) | `readonly string[]` |
|
|
3225
|
+
| `formattedValue` (read-only) | `string` |
|
|
3226
|
+
| `isCollapsed` (read-only) | `boolean` |
|
|
3227
|
+
| `isLeaf` (read-only) | `boolean` |
|
|
3228
|
+
| `label` (read-only) | `unknown` |
|
|
3229
|
+
| `node` (read-only) | `ChartHierarchyNodeContext<T>` |
|
|
3230
|
+
| `nodeId` (read-only) | `string` |
|
|
3231
|
+
| `path` (read-only) | `readonly unknown[]` |
|
|
3232
|
+
| `percentageOfParent?` (read-only) | `number` |
|
|
3233
|
+
| `percentageOfRoot?` (read-only) | `number` |
|
|
3234
|
+
| `textColor` (read-only) | `string` |
|
|
3235
|
+
| `value` (read-only) | `number` |
|
|
3236
|
+
|
|
3237
|
+
#### `ChartTreemapNodeVisibilityEvent`
|
|
3238
|
+
|
|
3239
|
+
**Type parameters:** `T = unknown`
|
|
3240
|
+
|
|
3241
|
+
| Name | Type |
|
|
3242
|
+
| --- | --- |
|
|
3243
|
+
| `dataIndex?` (read-only) | `number` |
|
|
3244
|
+
| `datum?` (read-only) | `T` |
|
|
3245
|
+
| `depth?` (read-only) | `number` |
|
|
3246
|
+
| `formattedLabel?` (read-only) | `string` |
|
|
3247
|
+
| `label?` (read-only) | `unknown` |
|
|
3248
|
+
| `nodeId` (read-only) | `string` |
|
|
3249
|
+
| `seriesId` (read-only) | `string` |
|
|
3250
|
+
| `seriesName` (read-only) | `string` |
|
|
3251
|
+
| `seriesType` (read-only) | `"treemap"` |
|
|
3252
|
+
| `visible` (read-only) | `boolean` |
|
|
3253
|
+
|
|
3254
|
+
#### `ChartViewportAxisRef`
|
|
3255
|
+
|
|
3256
|
+
| Name | Type |
|
|
3257
|
+
| --- | --- |
|
|
3258
|
+
| `axis` (read-only) | `"x" \| "y"` |
|
|
3259
|
+
| `axisId` (read-only) | `string` |
|
|
3260
|
+
|
|
3261
|
+
#### `ChartViewportChangeEvent`
|
|
3262
|
+
|
|
3263
|
+
| Name | Type |
|
|
3264
|
+
| --- | --- |
|
|
3265
|
+
| `changedAxes` (read-only) | `readonly ChartViewportAxisRef[]` |
|
|
3266
|
+
| `phase` (read-only) | `ChartViewportChangePhase` |
|
|
3267
|
+
| `previousViewport` (read-only) | `ChartViewportState` |
|
|
3268
|
+
| `source` (read-only) | `ChartViewportChangeSource` |
|
|
3269
|
+
| `viewport` (read-only) | `ChartViewportState` |
|
|
3270
|
+
|
|
3271
|
+
#### `ChartViewportConstraint`
|
|
3272
|
+
|
|
3273
|
+
**Extends:** `ChartViewportAxisRef`
|
|
3274
|
+
|
|
3275
|
+
| Name | Type |
|
|
3276
|
+
| --- | --- |
|
|
3277
|
+
| `maxSpan?` (read-only) | `number` |
|
|
3278
|
+
| `maxVisibleCategories?` (read-only) | `number` |
|
|
3279
|
+
| `maxZoom?` (read-only) | `number` |
|
|
3280
|
+
| `minSpan?` (read-only) | `number` |
|
|
3281
|
+
| `minVisibleCategories?` (read-only) | `number` |
|
|
3282
|
+
|
|
3283
|
+
#### `ChartViewportLinkGroup`
|
|
3284
|
+
|
|
3285
|
+
| Name | Type |
|
|
3286
|
+
| --- | --- |
|
|
3287
|
+
| `axes` (read-only) | `readonly ChartViewportAxisRef[]` |
|
|
3288
|
+
| `id` (read-only) | `string` |
|
|
3289
|
+
| `mode` (read-only) | `ChartViewportLinkMode` |
|
|
3290
|
+
|
|
3291
|
+
#### `ChartViewportState`
|
|
3292
|
+
|
|
3293
|
+
| Name | Type |
|
|
3294
|
+
| --- | --- |
|
|
3295
|
+
| `axes` (read-only) | `readonly ChartViewportWindow[]` |
|
|
3296
|
+
|
|
3297
|
+
#### `ChartViewportSynchronizationOptions`
|
|
3298
|
+
|
|
3299
|
+
| Name | Type |
|
|
3300
|
+
| --- | --- |
|
|
3301
|
+
| `axes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
3302
|
+
| `enabled?` (read-only) | `boolean` |
|
|
3303
|
+
| `mode?` (read-only) | `ChartSynchronizationMode` |
|
|
3304
|
+
| `phase?` (read-only) | `"continuous" \| "end"` |
|
|
3305
|
+
|
|
3306
|
+
#### `ChartWaterfallLabelTemplateContext`
|
|
3307
|
+
|
|
3308
|
+
**Type parameters:** `T = unknown`
|
|
3309
|
+
|
|
3310
|
+
| Name | Type |
|
|
3311
|
+
| --- | --- |
|
|
3312
|
+
| `$implicit` (read-only) | `ChartWaterfallPointContext<T>` |
|
|
3313
|
+
| `barEnd` (read-only) | `number` |
|
|
3314
|
+
| `barStart` (read-only) | `number` |
|
|
3315
|
+
| `bounds` (read-only) | `ChartRect` |
|
|
3316
|
+
| `category` (read-only) | `unknown` |
|
|
3317
|
+
| `color` (read-only) | `string` |
|
|
3318
|
+
| `cumulativeAfter` (read-only) | `number` |
|
|
3319
|
+
| `cumulativeBefore` (read-only) | `number` |
|
|
3320
|
+
| `dataIndex` (read-only) | `number` |
|
|
3321
|
+
| `datum` (read-only) | `T` |
|
|
3322
|
+
| `deltaValue?` (read-only) | `number` |
|
|
3323
|
+
| `formattedCategory` (read-only) | `string` |
|
|
3324
|
+
| `formattedCumulativeAfter` (read-only) | `string` |
|
|
3325
|
+
| `formattedCumulativeBefore` (read-only) | `string` |
|
|
3326
|
+
| `formattedDelta?` (read-only) | `string` |
|
|
3327
|
+
| `formattedValue` (read-only) | `string` |
|
|
3328
|
+
| `kind` (read-only) | `ChartWaterfallDatumKind` |
|
|
3329
|
+
| `step` (read-only) | `ChartWaterfallPointContext<T>` |
|
|
3330
|
+
| `textColor?` (read-only) | `string` |
|
|
3331
|
+
| `value` (read-only) | `number` |
|
|
3332
|
+
| `visualKind` (read-only) | `ChartWaterfallVisualKind` |
|
|
3333
|
+
|
|
3334
|
+
#### `ChartWaterfallPointContext`
|
|
3335
|
+
|
|
3336
|
+
**Type parameters:** `T = unknown`
|
|
3337
|
+
|
|
3338
|
+
| Name | Type |
|
|
3339
|
+
| --- | --- |
|
|
3340
|
+
| `barEnd` (read-only) | `number` |
|
|
3341
|
+
| `barStart` (read-only) | `number` |
|
|
3342
|
+
| `bounds` (read-only) | `ChartRect` |
|
|
3343
|
+
| `category` (read-only) | `unknown` |
|
|
3344
|
+
| `color` (read-only) | `string` |
|
|
3345
|
+
| `cumulativeAfter` (read-only) | `number` |
|
|
3346
|
+
| `cumulativeBefore` (read-only) | `number` |
|
|
3347
|
+
| `dataIndex` (read-only) | `number` |
|
|
3348
|
+
| `datum` (read-only) | `T` |
|
|
3349
|
+
| `deltaValue?` (read-only) | `number` |
|
|
3350
|
+
| `formattedCategory` (read-only) | `string` |
|
|
3351
|
+
| `formattedCumulativeAfter` (read-only) | `string` |
|
|
3352
|
+
| `formattedCumulativeBefore` (read-only) | `string` |
|
|
3353
|
+
| `formattedDelta?` (read-only) | `string` |
|
|
3354
|
+
| `formattedValue` (read-only) | `string` |
|
|
3355
|
+
| `kind` (read-only) | `ChartWaterfallDatumKind` |
|
|
3356
|
+
| `textColor?` (read-only) | `string` |
|
|
3357
|
+
| `value` (read-only) | `number` |
|
|
3358
|
+
| `visualKind` (read-only) | `ChartWaterfallVisualKind` |
|
|
3359
|
+
|
|
3360
|
+
#### `ChartWaterfallPointValue`
|
|
3361
|
+
|
|
3362
|
+
| Name | Type |
|
|
3363
|
+
| --- | --- |
|
|
3364
|
+
| `barEnd` (read-only) | `number` |
|
|
3365
|
+
| `barStart` (read-only) | `number` |
|
|
3366
|
+
| `cumulativeAfter` (read-only) | `number` |
|
|
3367
|
+
| `cumulativeBefore` (read-only) | `number` |
|
|
3368
|
+
| `deltaValue?` (read-only) | `number` |
|
|
3369
|
+
| `formattedCumulativeAfter` (read-only) | `string` |
|
|
3370
|
+
| `formattedCumulativeBefore` (read-only) | `string` |
|
|
3371
|
+
| `formattedDelta?` (read-only) | `string` |
|
|
3372
|
+
| `kind` (read-only) | `ChartWaterfallDatumKind` |
|
|
3373
|
+
| `valueKind` (read-only) | `"waterfall"` |
|
|
3374
|
+
|
|
3375
|
+
#### `HeatmapCellClickEvent`
|
|
3376
|
+
|
|
3377
|
+
**Deprecated.** Nothing emits this. Use `pointClick` on the chart.
|
|
3378
|
+
|
|
3379
|
+
**Type parameters:** `T = unknown`
|
|
3380
|
+
|
|
3381
|
+
| Name | Type |
|
|
3382
|
+
| --- | --- |
|
|
3383
|
+
| `categoryX` (read-only) | `string` |
|
|
3384
|
+
| `categoryY` (read-only) | `string` |
|
|
3385
|
+
| `datum` (read-only) | `T` |
|
|
3386
|
+
| `formattedValue` (read-only) | `string` |
|
|
3387
|
+
| `rawValue` (read-only) | `unknown` |
|
|
3388
|
+
| `seriesId` (read-only) | `string` |
|
|
3389
|
+
| `seriesName` (read-only) | `string` |
|
|
3390
|
+
| `seriesType` (read-only) | `"heatmap"` |
|
|
3391
|
+
| `value` (read-only) | `number \| null` |
|
|
3392
|
+
| `xIndex` (read-only) | `number` |
|
|
3393
|
+
| `yIndex` (read-only) | `number` |
|
|
3394
|
+
|
|
3395
|
+
#### `HeatmapColorStop`
|
|
3396
|
+
|
|
3397
|
+
**Deprecated.** No chart input takes this.
|
|
3398
|
+
|
|
3399
|
+
| Name | Type |
|
|
3400
|
+
| --- | --- |
|
|
3401
|
+
| `color` (read-only) | `string` |
|
|
3402
|
+
| `offset` (read-only) | `number` |
|
|
3403
|
+
|
|
3404
|
+
#### `ChartAnimationEasing`
|
|
3405
|
+
|
|
3406
|
+
```typescript
|
|
3407
|
+
type ChartAnimationEasing = "linear" | "ease-in" | "ease-out" | "ease-in-out";
|
|
3408
|
+
```
|
|
3409
|
+
|
|
3410
|
+
#### `ChartAnimationInput`
|
|
3411
|
+
|
|
3412
|
+
```typescript
|
|
3413
|
+
type ChartAnimationInput = boolean | ChartAnimationOptions;
|
|
3414
|
+
```
|
|
3415
|
+
|
|
3416
|
+
#### `ChartAnnotationAxisValue`
|
|
3417
|
+
|
|
3418
|
+
```typescript
|
|
3419
|
+
type ChartAnnotationAxisValue = Date | number | string;
|
|
3420
|
+
```
|
|
3421
|
+
|
|
3422
|
+
#### `ChartAnnotationLabelPlacement`
|
|
3423
|
+
|
|
3424
|
+
```typescript
|
|
3425
|
+
type ChartAnnotationLabelPlacement = "bottom" | "left" | "right" | "top";
|
|
3426
|
+
```
|
|
3427
|
+
|
|
3428
|
+
#### `ChartAnnotationMarker`
|
|
3429
|
+
|
|
3430
|
+
```typescript
|
|
3431
|
+
type ChartAnnotationMarker = "circle" | "diamond" | "none";
|
|
3432
|
+
```
|
|
3433
|
+
|
|
3434
|
+
#### `ChartAreaFillMode`
|
|
3435
|
+
|
|
3436
|
+
```typescript
|
|
3437
|
+
type ChartAreaFillMode = "gradient" | "solid";
|
|
3438
|
+
```
|
|
3439
|
+
|
|
3440
|
+
#### `ChartAxisFormatter`
|
|
3441
|
+
|
|
3442
|
+
```typescript
|
|
3443
|
+
type ChartAxisFormatter<T = unknown> = (value: T, index: number) => string;
|
|
3444
|
+
```
|
|
3445
|
+
|
|
3446
|
+
#### `ChartAxisLabelRotation`
|
|
3447
|
+
|
|
3448
|
+
```typescript
|
|
3449
|
+
type ChartAxisLabelRotation = "auto" | number;
|
|
3450
|
+
```
|
|
3451
|
+
|
|
3452
|
+
#### `ChartAxisPosition`
|
|
3453
|
+
|
|
3454
|
+
```typescript
|
|
3455
|
+
type ChartAxisPosition = ChartXAxisPosition | ChartYAxisSide;
|
|
3456
|
+
```
|
|
3457
|
+
|
|
3458
|
+
#### `ChartBarOrientation`
|
|
3459
|
+
|
|
3460
|
+
```typescript
|
|
3461
|
+
type ChartBarOrientation = "horizontal" | "vertical";
|
|
3462
|
+
```
|
|
3463
|
+
|
|
3464
|
+
#### `ChartBrushActivation`
|
|
3465
|
+
|
|
3466
|
+
```typescript
|
|
3467
|
+
type ChartBrushActivation = "drag" | "shift-drag";
|
|
3468
|
+
```
|
|
3469
|
+
|
|
3470
|
+
#### `ChartBrushAxisRange`
|
|
3471
|
+
|
|
3472
|
+
```typescript
|
|
3473
|
+
type ChartBrushAxisRange = ChartBrushCategoryRange | ChartBrushContinuousRange;
|
|
3474
|
+
```
|
|
3475
|
+
|
|
3476
|
+
#### `ChartBrushCancelReason`
|
|
3477
|
+
|
|
3478
|
+
```typescript
|
|
3479
|
+
type ChartBrushCancelReason = | "authority-change" | "component-disabled" | "data-change" | "destroyed" | "disabled" | "escape" | "lost-pointer-capture" | "pointer-cancel" | "pointer-leave" | "viewport-change";
|
|
3480
|
+
```
|
|
3481
|
+
|
|
3482
|
+
#### `ChartBrushHitPolicy`
|
|
3483
|
+
|
|
3484
|
+
```typescript
|
|
3485
|
+
type ChartBrushHitPolicy = "center" | "intersect";
|
|
3486
|
+
```
|
|
3487
|
+
|
|
3488
|
+
#### `ChartBrushLineStyle`
|
|
3489
|
+
|
|
3490
|
+
```typescript
|
|
3491
|
+
type ChartBrushLineStyle = "solid" | "dashed" | "dotted";
|
|
3492
|
+
```
|
|
3493
|
+
|
|
3494
|
+
#### `ChartBrushMode`
|
|
3495
|
+
|
|
3496
|
+
```typescript
|
|
3497
|
+
type ChartBrushMode = "x" | "y" | "xy";
|
|
3498
|
+
```
|
|
3499
|
+
|
|
3500
|
+
#### `ChartBrushPhase`
|
|
3501
|
+
|
|
3502
|
+
```typescript
|
|
3503
|
+
type ChartBrushPhase = "start" | "update" | "end" | "cancel";
|
|
3504
|
+
```
|
|
3505
|
+
|
|
3506
|
+
#### `ChartBrushSelectionBehavior`
|
|
3507
|
+
|
|
3508
|
+
```typescript
|
|
3509
|
+
type ChartBrushSelectionBehavior = "none" | "replace" | "add" | "remove" | "toggle";
|
|
3510
|
+
```
|
|
3511
|
+
|
|
3512
|
+
#### `ChartCoordinateSystem`
|
|
3513
|
+
|
|
3514
|
+
```typescript
|
|
3515
|
+
type ChartCoordinateSystem = "cartesian" | "hierarchical" | "polar";
|
|
3516
|
+
```
|
|
3517
|
+
|
|
3518
|
+
#### `ChartCrosshairLineStyle`
|
|
3519
|
+
|
|
3520
|
+
```typescript
|
|
3521
|
+
type ChartCrosshairLineStyle = "dashed" | "dotted" | "solid";
|
|
3522
|
+
```
|
|
3523
|
+
|
|
3524
|
+
#### `ChartCrosshairMode`
|
|
3525
|
+
|
|
3526
|
+
```typescript
|
|
3527
|
+
type ChartCrosshairMode = "auto" | "x" | "xy" | "y";
|
|
3528
|
+
```
|
|
3529
|
+
|
|
3530
|
+
#### `ChartCrosshairSnapMode`
|
|
3531
|
+
|
|
3532
|
+
```typescript
|
|
3533
|
+
type ChartCrosshairSnapMode = "nearest" | "pointer";
|
|
3534
|
+
```
|
|
3535
|
+
|
|
3536
|
+
#### `ChartCurve`
|
|
3537
|
+
|
|
3538
|
+
```typescript
|
|
3539
|
+
type ChartCurve = "linear" | "monotone-x" | "natural" | "step" | "step-after";
|
|
3540
|
+
```
|
|
3541
|
+
|
|
3542
|
+
#### `ChartDataLabelFormatter`
|
|
3543
|
+
|
|
3544
|
+
```typescript
|
|
3545
|
+
type ChartDataLabelFormatter<T = unknown> = (context: ChartDataLabelContext<T>) => string | null | undefined;
|
|
3546
|
+
```
|
|
3547
|
+
|
|
3548
|
+
#### `ChartDataLabelPosition`
|
|
3549
|
+
|
|
3550
|
+
```typescript
|
|
3551
|
+
type ChartDataLabelPosition = | "auto" | "top" | "bottom" | "left" | "right" | "center" | "inside-start" | "inside-center" | "inside-end" | "outside-start" | "outside-end";
|
|
3552
|
+
```
|
|
3553
|
+
|
|
3554
|
+
#### `ChartDataLabelsInput`
|
|
3555
|
+
|
|
3556
|
+
```typescript
|
|
3557
|
+
type ChartDataLabelsInput = boolean | ChartDataLabelOptions;
|
|
3558
|
+
```
|
|
3559
|
+
|
|
3560
|
+
#### `ChartDownloadOptions`
|
|
3561
|
+
|
|
3562
|
+
Options for downloading a chart export.
|
|
3563
|
+
|
|
3564
|
+
```typescript
|
|
3565
|
+
type ChartDownloadOptions = ChartExportOptions & { readonly fileName?: string; };
|
|
3566
|
+
```
|
|
3567
|
+
|
|
3568
|
+
#### `ChartDownsamplingAlgorithm`
|
|
3569
|
+
|
|
3570
|
+
```typescript
|
|
3571
|
+
type ChartDownsamplingAlgorithm = "auto" | "lttb" | "minmax" | "pixel";
|
|
3572
|
+
```
|
|
3573
|
+
|
|
3574
|
+
#### `ChartDownsamplingInput`
|
|
3575
|
+
|
|
3576
|
+
```typescript
|
|
3577
|
+
type ChartDownsamplingInput = boolean | ChartDownsamplingOptions;
|
|
3578
|
+
```
|
|
3579
|
+
|
|
3580
|
+
#### `ChartExportBackground`
|
|
3581
|
+
|
|
3582
|
+
Chart export background policy.
|
|
3583
|
+
- "auto": Resolves the effective chart background color from the chart container/theme.
|
|
3584
|
+
- "transparent": Creates a transparent background.
|
|
3585
|
+
- CSS color string: Uses an explicit background color.
|
|
3586
|
+
|
|
3587
|
+
```typescript
|
|
3588
|
+
type ChartExportBackground = "auto" | "transparent" | string;
|
|
3589
|
+
```
|
|
3590
|
+
|
|
3591
|
+
#### `ChartExportErrorCode`
|
|
3592
|
+
|
|
3593
|
+
Error code identifying the cause of a chart export failure.
|
|
3594
|
+
|
|
3595
|
+
```typescript
|
|
3596
|
+
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";
|
|
3597
|
+
```
|
|
3598
|
+
|
|
3599
|
+
#### `ChartExportFormat`
|
|
3600
|
+
|
|
3601
|
+
Supported chart export formats.
|
|
3602
|
+
|
|
3603
|
+
```typescript
|
|
3604
|
+
type ChartExportFormat = "png" | "svg" | "pdf";
|
|
3605
|
+
```
|
|
3606
|
+
|
|
3607
|
+
#### `ChartExportOptions`
|
|
3608
|
+
|
|
3609
|
+
Discriminated union of chart export options.
|
|
3610
|
+
|
|
3611
|
+
```typescript
|
|
3612
|
+
type ChartExportOptions = ChartPngExportOptions | ChartSvgExportOptions | ChartPdfExportOptions;
|
|
3613
|
+
```
|
|
3614
|
+
|
|
3615
|
+
#### `ChartField`
|
|
3616
|
+
|
|
3617
|
+
```typescript
|
|
3618
|
+
type ChartField<T = any, TResult = unknown> = string | ChartValueAccessor<T, TResult>;
|
|
3619
|
+
```
|
|
3620
|
+
|
|
3621
|
+
#### `ChartFinancialDirection`
|
|
3622
|
+
|
|
3623
|
+
```typescript
|
|
3624
|
+
type ChartFinancialDirection = "falling" | "neutral" | "rising";
|
|
3625
|
+
```
|
|
3626
|
+
|
|
3627
|
+
#### `ChartFinancialFillMode`
|
|
3628
|
+
|
|
3629
|
+
```typescript
|
|
3630
|
+
type ChartFinancialFillMode = "filled" | "hollow";
|
|
3631
|
+
```
|
|
3632
|
+
|
|
3633
|
+
#### `ChartFunnelLabelContent`
|
|
3634
|
+
|
|
3635
|
+
```typescript
|
|
3636
|
+
type ChartFunnelLabelContent = "category" | "category-value" | "category-value-conversion" | "value";
|
|
3637
|
+
```
|
|
3638
|
+
|
|
3639
|
+
#### `ChartFunnelOrientation`
|
|
3640
|
+
|
|
3641
|
+
```typescript
|
|
3642
|
+
type ChartFunnelOrientation = "horizontal" | "vertical";
|
|
3643
|
+
```
|
|
3644
|
+
|
|
3645
|
+
#### `ChartGaugeIndicator`
|
|
3646
|
+
|
|
3647
|
+
```typescript
|
|
3648
|
+
type ChartGaugeIndicator = "arc" | "both" | "needle";
|
|
3649
|
+
```
|
|
3650
|
+
|
|
3651
|
+
#### `ChartHeaderAlignment`
|
|
3652
|
+
|
|
3653
|
+
How the title and subtitle align: `start` and `end` follow the direction, `left` and `right` don't.
|
|
3654
|
+
|
|
3655
|
+
```typescript
|
|
3656
|
+
type ChartHeaderAlignment = "center" | "end" | "left" | "right" | "start";
|
|
3657
|
+
```
|
|
3658
|
+
|
|
3659
|
+
#### `ChartHeatmapColorMode`
|
|
3660
|
+
|
|
3661
|
+
```typescript
|
|
3662
|
+
type ChartHeatmapColorMode = "diverging" | "sequential";
|
|
3663
|
+
```
|
|
3664
|
+
|
|
3665
|
+
#### `ChartHierarchicalKind`
|
|
3666
|
+
|
|
3667
|
+
```typescript
|
|
3668
|
+
type ChartHierarchicalKind = "treemap";
|
|
3669
|
+
```
|
|
3670
|
+
|
|
3671
|
+
#### `ChartLegendItemKind`
|
|
3672
|
+
|
|
3673
|
+
```typescript
|
|
3674
|
+
type ChartLegendItemKind = "datum" | "semantic" | "series";
|
|
3675
|
+
```
|
|
3676
|
+
|
|
3677
|
+
#### `ChartLegendMode`
|
|
3678
|
+
|
|
3679
|
+
```typescript
|
|
3680
|
+
type ChartLegendMode = "auto" | "color" | "series";
|
|
3681
|
+
```
|
|
3682
|
+
|
|
3683
|
+
#### `ChartLegendPosition`
|
|
3684
|
+
|
|
3685
|
+
Where a legend goes: `start` and `end` follow the direction, `left` and `right` don't.
|
|
3686
|
+
|
|
3687
|
+
```typescript
|
|
3688
|
+
type ChartLegendPosition = "bottom" | "end" | "left" | "right" | "start" | "top";
|
|
3689
|
+
```
|
|
3690
|
+
|
|
3691
|
+
#### `ChartLineStyle`
|
|
3692
|
+
|
|
3693
|
+
```typescript
|
|
3694
|
+
type ChartLineStyle = "solid" | "dashed" | "dotted";
|
|
3695
|
+
```
|
|
3696
|
+
|
|
3697
|
+
#### `ChartNavigationAxisTarget`
|
|
3698
|
+
|
|
3699
|
+
```typescript
|
|
3700
|
+
type ChartNavigationAxisTarget = "auto" | "x" | "xy" | "y" | readonly ChartViewportAxisRef[];
|
|
3701
|
+
```
|
|
3702
|
+
|
|
3703
|
+
#### `ChartNavigationInput`
|
|
3704
|
+
|
|
3705
|
+
```typescript
|
|
3706
|
+
type ChartNavigationInput = boolean | ChartNavigationOptions;
|
|
3707
|
+
```
|
|
3708
|
+
|
|
3709
|
+
#### `ChartNumericScaleType`
|
|
3710
|
+
|
|
3711
|
+
```typescript
|
|
3712
|
+
type ChartNumericScaleType = "linear" | "log" | "symlog" | "pow" | "sqrt";
|
|
3713
|
+
```
|
|
3714
|
+
|
|
3715
|
+
#### `ChartOverlayLayer`
|
|
3716
|
+
|
|
3717
|
+
```typescript
|
|
3718
|
+
type ChartOverlayLayer = "overlay" | "underlay";
|
|
3719
|
+
```
|
|
3720
|
+
|
|
3721
|
+
#### `ChartPdfPageSize`
|
|
3722
|
+
|
|
3723
|
+
Standard or custom PDF page size.
|
|
3724
|
+
- "chart": Custom page dimensions sized to exactly match the chart dimensions in PDF points.
|
|
3725
|
+
- "a4": Standard ISO A4 page (595.28 x 841.89 pt).
|
|
3726
|
+
- "letter": Standard North American Letter page (612 x 792 pt).
|
|
3727
|
+
- Custom object: Explicit width and height in PDF points (72 points = 1 inch).
|
|
3728
|
+
|
|
3729
|
+
```typescript
|
|
3730
|
+
type ChartPdfPageSize = | "chart" | "a4" | "letter" | { readonly height: number; readonly width: number; };
|
|
3731
|
+
```
|
|
3732
|
+
|
|
3733
|
+
#### `ChartPdfRenderMode`
|
|
3734
|
+
|
|
3735
|
+
PDF generation rendering mode.
|
|
3736
|
+
- "auto": Prefers vector output, falling back to embedded high-resolution raster image when vector fidelity cannot be guaranteed.
|
|
3737
|
+
- "vector": Requires strict vector conversion; rejects if vector conversion is unsupported.
|
|
3738
|
+
- "raster": Directly renders a rasterized chart image onto the PDF page.
|
|
3739
|
+
|
|
3740
|
+
```typescript
|
|
3741
|
+
type ChartPdfRenderMode = "auto" | "vector" | "raster";
|
|
3742
|
+
```
|
|
3743
|
+
|
|
3744
|
+
#### `ChartPointValue`
|
|
3745
|
+
|
|
3746
|
+
```typescript
|
|
3747
|
+
type ChartPointValue = ChartOhlcPointValue | ChartRangePointValue | ChartScalarPointValue | ChartWaterfallPointValue;
|
|
3748
|
+
```
|
|
3749
|
+
|
|
3750
|
+
#### `ChartPointValueKind`
|
|
3751
|
+
|
|
3752
|
+
```typescript
|
|
3753
|
+
type ChartPointValueKind = "ohlc" | "range" | "scalar" | "waterfall";
|
|
3754
|
+
```
|
|
3755
|
+
|
|
3756
|
+
#### `ChartPolarFillMode`
|
|
3757
|
+
|
|
3758
|
+
```typescript
|
|
3759
|
+
type ChartPolarFillMode = "gradient" | "solid";
|
|
3760
|
+
```
|
|
3761
|
+
|
|
3762
|
+
#### `ChartPolarLabelContent`
|
|
3763
|
+
|
|
3764
|
+
```typescript
|
|
3765
|
+
type ChartPolarLabelContent = "category" | "category-percentage" | "percentage" | "value";
|
|
3766
|
+
```
|
|
3767
|
+
|
|
3768
|
+
#### `ChartPolarLabelPosition`
|
|
3769
|
+
|
|
3770
|
+
```typescript
|
|
3771
|
+
type ChartPolarLabelPosition = "inside" | "outside";
|
|
3772
|
+
```
|
|
3773
|
+
|
|
3774
|
+
#### `ChartPolarLabelSide`
|
|
3775
|
+
|
|
3776
|
+
```typescript
|
|
3777
|
+
type ChartPolarLabelSide = "left" | "right";
|
|
3778
|
+
```
|
|
3779
|
+
|
|
3780
|
+
#### `ChartRadialArcFillMode`
|
|
3781
|
+
|
|
3782
|
+
```typescript
|
|
3783
|
+
type ChartRadialArcFillMode = "gradient" | "solid";
|
|
3784
|
+
```
|
|
3785
|
+
|
|
3786
|
+
#### `ChartRadialCurve`
|
|
3787
|
+
|
|
3788
|
+
```typescript
|
|
3789
|
+
type ChartRadialCurve = "linear" | "smooth";
|
|
3790
|
+
```
|
|
3791
|
+
|
|
3792
|
+
#### `ChartRadialFillMode`
|
|
3793
|
+
|
|
3794
|
+
```typescript
|
|
3795
|
+
type ChartRadialFillMode = "gradient" | "none" | "solid";
|
|
3796
|
+
```
|
|
3797
|
+
|
|
3798
|
+
#### `ChartRadialGridShape`
|
|
3799
|
+
|
|
3800
|
+
```typescript
|
|
3801
|
+
type ChartRadialGridShape = "auto" | "circle" | "polygon";
|
|
3802
|
+
```
|
|
3803
|
+
|
|
3804
|
+
#### `ChartReferenceLabelPosition`
|
|
3805
|
+
|
|
3806
|
+
```typescript
|
|
3807
|
+
type ChartReferenceLabelPosition = "center" | "end" | "start";
|
|
3808
|
+
```
|
|
3809
|
+
|
|
3810
|
+
#### `ChartReferenceLabelTemplateContext`
|
|
3811
|
+
|
|
3812
|
+
```typescript
|
|
3813
|
+
type ChartReferenceLabelTemplateContext = ChartReferenceLineLabelContext | ChartReferenceBandLabelContext;
|
|
3814
|
+
```
|
|
3815
|
+
|
|
3816
|
+
#### `ChartReferenceLineStyle`
|
|
3817
|
+
|
|
3818
|
+
```typescript
|
|
3819
|
+
type ChartReferenceLineStyle = "dashed" | "dotted" | "solid";
|
|
3820
|
+
```
|
|
3821
|
+
|
|
3822
|
+
#### `ChartRendererMode`
|
|
3823
|
+
|
|
3824
|
+
```typescript
|
|
3825
|
+
type ChartRendererMode = "canvas" | "svg";
|
|
3826
|
+
```
|
|
3827
|
+
|
|
3828
|
+
#### `ChartRoseScaleMode`
|
|
3829
|
+
|
|
3830
|
+
```typescript
|
|
3831
|
+
type ChartRoseScaleMode = "area" | "radius";
|
|
3832
|
+
```
|
|
3833
|
+
|
|
3834
|
+
#### `ChartSelectionChangeSource`
|
|
3835
|
+
|
|
3836
|
+
```typescript
|
|
3837
|
+
type ChartSelectionChangeSource = "brush" | "click" | "keyboard" | "programmatic";
|
|
3838
|
+
```
|
|
3839
|
+
|
|
3840
|
+
#### `ChartSelectionMode`
|
|
3841
|
+
|
|
3842
|
+
```typescript
|
|
3843
|
+
type ChartSelectionMode = "single" | "multiple";
|
|
3844
|
+
```
|
|
3845
|
+
|
|
3846
|
+
#### `ChartSeriesFamily`
|
|
3847
|
+
|
|
3848
|
+
```typescript
|
|
3849
|
+
type ChartSeriesFamily = "cartesian" | "funnel" | "heatmap" | "hierarchy" | "polar" | "radar" | "radialArc" | "sector" | "waterfall";
|
|
3850
|
+
```
|
|
3851
|
+
|
|
3852
|
+
#### `ChartSeriesType`
|
|
3853
|
+
|
|
3854
|
+
```typescript
|
|
3855
|
+
type ChartSeriesType = | "area" | "bar" | "bubble" | "candlestick" | "donut" | "funnel" | "gauge" | "heatmap" | "line" | "ohlc" | "pie" | "polar" | "radar" | "radialBar" | "rangeArea" | "rangeBar" | "rose" | "scatter" | "treemap" | "waterfall";
|
|
3856
|
+
```
|
|
3857
|
+
|
|
3858
|
+
#### `ChartStackMode`
|
|
3859
|
+
|
|
3860
|
+
```typescript
|
|
3861
|
+
type ChartStackMode = "normal" | "percent";
|
|
3862
|
+
```
|
|
3863
|
+
|
|
3864
|
+
#### `ChartSynchronizationInput`
|
|
3865
|
+
|
|
3866
|
+
```typescript
|
|
3867
|
+
type ChartSynchronizationInput = false | string | ChartSynchronizationOptions;
|
|
3868
|
+
```
|
|
3869
|
+
|
|
3870
|
+
#### `ChartSynchronizationMode`
|
|
3871
|
+
|
|
3872
|
+
```typescript
|
|
3873
|
+
type ChartSynchronizationMode = "domain" | "relative";
|
|
3874
|
+
```
|
|
3875
|
+
|
|
3876
|
+
#### `ChartTreemapSort`
|
|
3877
|
+
|
|
3878
|
+
```typescript
|
|
3879
|
+
type ChartTreemapSort = "ascending" | "descending" | "none";
|
|
3880
|
+
```
|
|
3881
|
+
|
|
3882
|
+
#### `ChartTreemapTile`
|
|
3883
|
+
|
|
3884
|
+
```typescript
|
|
3885
|
+
type ChartTreemapTile = "binary" | "dice" | "slice" | "slice-dice" | "squarify";
|
|
3886
|
+
```
|
|
3887
|
+
|
|
3888
|
+
#### `ChartValueAccessor`
|
|
3889
|
+
|
|
3890
|
+
```typescript
|
|
3891
|
+
type ChartValueAccessor<T = any, TResult = unknown> = (item: T, index: number) => TResult;
|
|
3892
|
+
```
|
|
3893
|
+
|
|
3894
|
+
#### `ChartValueFormatter`
|
|
3895
|
+
|
|
3896
|
+
```typescript
|
|
3897
|
+
type ChartValueFormatter<T = unknown> = (value: T, index: number) => string;
|
|
3898
|
+
```
|
|
3899
|
+
|
|
3900
|
+
#### `ChartViewportChangePhase`
|
|
3901
|
+
|
|
3902
|
+
```typescript
|
|
3903
|
+
type ChartViewportChangePhase = "end" | "start" | "update";
|
|
3904
|
+
```
|
|
3905
|
+
|
|
3906
|
+
#### `ChartViewportChangeSource`
|
|
3907
|
+
|
|
3908
|
+
```typescript
|
|
3909
|
+
type ChartViewportChangeSource = "data-reconcile" | "drag" | "fit" | "keyboard" | "pinch" | "programmatic" | "reset" | "sync" | "wheel";
|
|
3910
|
+
```
|
|
3911
|
+
|
|
3912
|
+
#### `ChartViewportLinkMode`
|
|
3913
|
+
|
|
3914
|
+
```typescript
|
|
3915
|
+
type ChartViewportLinkMode = "domain" | "relative";
|
|
3916
|
+
```
|
|
3917
|
+
|
|
3918
|
+
#### `ChartViewportWindow`
|
|
3919
|
+
|
|
3920
|
+
```typescript
|
|
3921
|
+
type ChartViewportWindow = ChartCategoryViewportWindow | ChartContinuousViewportWindow;
|
|
3922
|
+
```
|
|
3923
|
+
|
|
3924
|
+
#### `ChartWaterfallDatumKind`
|
|
3925
|
+
|
|
3926
|
+
```typescript
|
|
3927
|
+
type ChartWaterfallDatumKind = "change" | "subtotal" | "total";
|
|
3928
|
+
```
|
|
3929
|
+
|
|
3930
|
+
#### `ChartWaterfallVisualKind`
|
|
3931
|
+
|
|
3932
|
+
```typescript
|
|
3933
|
+
type ChartWaterfallVisualKind = "decrease" | "increase" | "neutral" | "subtotal" | "total";
|
|
3934
|
+
```
|
|
3935
|
+
|
|
3936
|
+
#### `ChartXAxisPosition`
|
|
3937
|
+
|
|
3938
|
+
```typescript
|
|
3939
|
+
type ChartXAxisPosition = "bottom" | "top";
|
|
3940
|
+
```
|
|
3941
|
+
|
|
3942
|
+
#### `ChartXAxisType`
|
|
3943
|
+
|
|
3944
|
+
```typescript
|
|
3945
|
+
type ChartXAxisType = "auto" | "category" | ChartNumericScaleType | "time" | "utc";
|
|
3946
|
+
```
|
|
3947
|
+
|
|
3948
|
+
#### `ChartYAxisPosition`
|
|
3949
|
+
|
|
3950
|
+
Where a Y axis goes: `start` and `end` follow the direction, `left` and `right` don't.
|
|
3951
|
+
|
|
3952
|
+
```typescript
|
|
3953
|
+
type ChartYAxisPosition = ChartYAxisSide | "end" | "start";
|
|
3954
|
+
```
|
|
3955
|
+
|
|
3956
|
+
#### `ChartYAxisSide`
|
|
3957
|
+
|
|
3958
|
+
The physical side a Y axis is drawn on.
|
|
3959
|
+
|
|
3960
|
+
```typescript
|
|
3961
|
+
type ChartYAxisSide = "left" | "right";
|
|
3962
|
+
```
|
|
3963
|
+
|
|
3964
|
+
#### `ChartYAxisType`
|
|
3965
|
+
|
|
3966
|
+
```typescript
|
|
3967
|
+
type ChartYAxisType = "auto" | "category" | ChartNumericScaleType;
|
|
3968
|
+
```
|
|
3969
|
+
|
|
3970
|
+
#### `MonaChartMessages`
|
|
3971
|
+
|
|
3972
|
+
From `@nanahoshi/mona-ui/i18n`.
|
|
3973
|
+
|
|
3974
|
+
| Name | Type | Description |
|
|
3975
|
+
| --- | --- | --- |
|
|
3976
|
+
| `announcementSeparator` (read-only) | `string` | Joins the parts of a screen reader announcement (", " in English). |
|
|
3977
|
+
| `brushApplied` (read-only) | `(count: number) => string` | Announced when a keyboard brush is committed. |
|
|
3978
|
+
| `brushCleared` (read-only) | `string` | Announced when a keyboard brush is canceled. |
|
|
3979
|
+
| `brushRange` (read-only) | `(from: string, to: string) => string` | Announced while a keyboard brush is extended. |
|
|
3980
|
+
| `category` (read-only) | `string` | The data table's first column header when the X axis has no title. |
|
|
3981
|
+
| `categoryFallbackName` (read-only) | `(index: number) => string` | The name of a radar category without a value. |
|
|
3982
|
+
| `categoryRange` (read-only) | `(from: string, to: string) => string` | The category range of a Cartesian chart, in its description. |
|
|
3983
|
+
| `change` (read-only) | `string` | The tooltip label for a waterfall change step or a financial point's price change. |
|
|
3984
|
+
| `changeValue` (read-only) | `(change: string) => string` | The price change in a financial announcement. |
|
|
3985
|
+
| `chart` (read-only) | `string` | The chart's accessible name when it has neither an `ariaLabel` nor a title. |
|
|
3986
|
+
| `chartLegend` (read-only) | `string` | The accessible name of the legend. |
|
|
3987
|
+
| `chartRoleDescription` (read-only) | `string` | What screen readers call the chart (`aria-roledescription`). |
|
|
3988
|
+
| `close` (read-only) | `string` | The tooltip label for a candlestick or OHLC point's closing price. |
|
|
3989
|
+
| `closeAbbreviation` (read-only) | `string` | The short closing price label in a tooltip that lists several financial series ("C" in English). |
|
|
3990
|
+
| `colorScale` (read-only) | `string` | The name of a heatmap color legend whose scale has no title, in its accessible name. |
|
|
3991
|
+
| `conversion` (read-only) | `string` | The tooltip label for a funnel stage's conversion rate. |
|
|
3992
|
+
| `conversionOfPrevious` (read-only) | `(rate: string) => string` | A funnel stage's conversion from the previous stage, in an announcement. |
|
|
3993
|
+
| `dataTableTruncated` (read-only) | `(shown: number, total: number) => string` | Below the data table when it shows only the first rows. |
|
|
3994
|
+
| `decrease` (read-only) | `string` | The waterfall legend's name for falling steps. |
|
|
3995
|
+
| `decreaseAnnouncement` (read-only) | `(delta: string, from: string, to: string) => string` | Announced for a waterfall step that lowers the running total. |
|
|
3996
|
+
| `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. |
|
|
3997
|
+
| `dropOff` (read-only) | `string` | The tooltip label for a funnel stage's drop-off from the previous stage. |
|
|
3998
|
+
| `dropOffValue` (read-only) | `(value: string) => string` | A funnel stage's drop-off from the previous stage, in an announcement. |
|
|
3999
|
+
| `falling` (read-only) | `string` | Names a falling candlestick or OHLC point, in the tooltip and in announcements. |
|
|
4000
|
+
| `gaugeRange` (read-only) | `(minimum: string, maximum: string) => string` | A gauge's scale, in an announcement. |
|
|
4001
|
+
| `high` (read-only) | `string` | The tooltip label for a candlestick or OHLC point's high price. |
|
|
4002
|
+
| `highAbbreviation` (read-only) | `string` | The short high price label in a tooltip that lists several financial series ("H" in English). |
|
|
4003
|
+
| `increase` (read-only) | `string` | The waterfall legend's name for rising steps. |
|
|
4004
|
+
| `increaseAnnouncement` (read-only) | `(delta: string, from: string, to: string) => string` | Announced for a waterfall step that raises the running total. |
|
|
4005
|
+
| `itemDeselected` (read-only) | `(item: string) => string` | Announced when the keyboard deselects a point. |
|
|
4006
|
+
| `itemFallbackName` (read-only) | `(index: number) => string` | The name of a pie, donut, rose or radial bar item without a category. |
|
|
4007
|
+
| `itemSelected` (read-only) | `(item: string) => string` | Announced when the keyboard selects a point. |
|
|
4008
|
+
| `keyboardHelp` (read-only) | `string` | The keyboard instructions at the end of the chart's description. |
|
|
4009
|
+
| `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. |
|
|
4010
|
+
| `labelValueSeparator` (read-only) | `string` | Separates a label from its value in the tooltip (":" in English). |
|
|
4011
|
+
| `low` (read-only) | `string` | The tooltip label for a candlestick or OHLC point's low price. |
|
|
4012
|
+
| `lowAbbreviation` (read-only) | `string` | The short low price label in a tooltip that lists several financial series ("L" in English). |
|
|
4013
|
+
| `noChange` (read-only) | `string` | The waterfall legend's name for unchanged steps. |
|
|
4014
|
+
| `noChangeAnnouncement` (read-only) | `(value: string) => string` | Announced for a waterfall step that leaves the running total unchanged. |
|
|
4015
|
+
| `noData` (read-only) | `string` | Shown and included in the chart's description when it has no data and no `noData` template. |
|
|
4016
|
+
| `ohlcValues` (read-only) | `(open: string, high: string, low: string, close: string) => string` | A candlestick or OHLC point's prices, in an announcement. |
|
|
4017
|
+
| `open` (read-only) | `string` | The tooltip label for a candlestick or OHLC point's opening price. |
|
|
4018
|
+
| `openAbbreviation` (read-only) | `string` | The short opening price label in a tooltip that lists several financial series ("O" in English). |
|
|
4019
|
+
| `overall` (read-only) | `string` | The tooltip label for a funnel stage's conversion from the first stage. |
|
|
4020
|
+
| `overallConversion` (read-only) | `(rate: string) => string` | A funnel stage's conversion from the first stage, in an announcement. |
|
|
4021
|
+
| `pannedDown` (read-only) | `string` | Announced when the keyboard pans the viewport down. |
|
|
4022
|
+
| `pannedLeft` (read-only) | `string` | Announced when the keyboard pans the viewport left. |
|
|
4023
|
+
| `pannedRight` (read-only) | `string` | Announced when the keyboard pans the viewport right. |
|
|
4024
|
+
| `pannedUp` (read-only) | `string` | Announced when the keyboard pans the viewport up. |
|
|
4025
|
+
| `pathSeparator` (read-only) | `string` | Joins a treemap node's path (" / " in English). |
|
|
4026
|
+
| `pointPosition` (read-only) | `(position: number, total: number) => string` | A point's position among the points it is navigated with, in an announcement. |
|
|
4027
|
+
| `range` (read-only) | `string` | The tooltip label for a radial point's minimum-to-maximum range. |
|
|
4028
|
+
| `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. |
|
|
4029
|
+
| `rangeValue` (read-only) | `(from: string, to: string) => string` | A range value, in an announcement. |
|
|
4030
|
+
| `rising` (read-only) | `string` | Names a rising candlestick or OHLC point, in the tooltip and in announcements. |
|
|
4031
|
+
| `runningTotal` (read-only) | `string` | The tooltip label for a waterfall step's running total. |
|
|
4032
|
+
| `seriesFallbackName` (read-only) | `(index: number) => string` | The name of a series without a name. |
|
|
4033
|
+
| `seriesHidden` (read-only) | `(series: string) => string` | Announced when a legend item hides a series or item. |
|
|
4034
|
+
| `seriesShown` (read-only) | `(series: string) => string` | Announced when a legend item shows a series or item. |
|
|
4035
|
+
| `seriesSummary` (read-only) | `(count: number, names: string) => string` | The series of the chart, in its description. |
|
|
4036
|
+
| `seriesValueRange` (read-only) | `(series: string, minimum: string, maximum: string) => string` | A series' lowest and highest value, in the chart's description. |
|
|
4037
|
+
| `shareOfTotal` (read-only) | `(share: string) => string` | A treemap node's share of the whole, in an announcement. |
|
|
4038
|
+
| `size` (read-only) | `string` | The tooltip label for a bubble's size. |
|
|
4039
|
+
| `sizeValue` (read-only) | `(size: string) => string` | A bubble's size, in an announcement. |
|
|
4040
|
+
| `stackShare` (read-only) | `(share: string) => string` | A point's share of its 100% stack, in an announcement. |
|
|
4041
|
+
| `stageFallbackName` (read-only) | `(index: number) => string` | The name of a funnel stage without a category. |
|
|
4042
|
+
| `stagePosition` (read-only) | `(position: number, total: number) => string` | A funnel stage's position among the stages, in an announcement. |
|
|
4043
|
+
| `stepFallbackName` (read-only) | `(index: number) => string` | The name of a waterfall step without a category. |
|
|
4044
|
+
| `stepPosition` (read-only) | `(position: number, total: number) => string` | A waterfall step's position among the steps, in an announcement. |
|
|
4045
|
+
| `subtotal` (read-only) | `string` | The waterfall legend's name for subtotal steps. |
|
|
4046
|
+
| `subtotalAnnouncement` (read-only) | `(value: string) => string` | Announced for a waterfall subtotal step. |
|
|
4047
|
+
| `total` (read-only) | `string` | The waterfall legend's name for total steps. |
|
|
4048
|
+
| `totalAnnouncement` (read-only) | `(value: string) => string` | Announced for a waterfall total step. |
|
|
4049
|
+
| `treemapGroup` (read-only) | `(count: number) => string` | A treemap group, in an announcement. |
|
|
4050
|
+
| `treemapLeaf` (read-only) | `string` | A treemap leaf, in an announcement. |
|
|
4051
|
+
| `unchanged` (read-only) | `string` | Names a candlestick or OHLC point that closed at its opening price, in the tooltip and in announcements. |
|
|
4052
|
+
| `value` (read-only) | `string` | The tooltip label for a point's value. |
|
|
4053
|
+
| `valueRange` (read-only) | `(from: string, to: string) => string` | A range value in the tooltip ("10 – 20" in English). |
|
|
4054
|
+
| `viewportResetToDefault` (read-only) | `string` | Announced when the keyboard resets the viewport to its configured default range. |
|
|
4055
|
+
| `viewportResetToFull` (read-only) | `string` | Announced when the keyboard resets the viewport to the full data range, when no default range is configured. |
|
|
4056
|
+
| `visualIndicatorClamped` (read-only) | `string` | Shown and announced when a gauge value lies outside the gauge's scale and its indicator stops at the edge. |
|
|
4057
|
+
| `zoomedIn` (read-only) | `string` | Announced when the keyboard zooms the viewport in. |
|
|
4058
|
+
| `zoomedOut` (read-only) | `string` | Announced when the keyboard zooms the viewport out. |
|