@nanahoshi/mona-ui 0.27.1 → 0.28.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/docs/api/auto-complete.md +67 -0
- package/docs/api/avatar.md +31 -0
- package/docs/api/breadcrumb.md +74 -0
- package/docs/api/button-group.md +71 -0
- package/docs/api/button.md +84 -0
- package/docs/api/calendar.md +123 -0
- package/docs/api/card.md +97 -0
- package/docs/api/chart.md +4380 -0
- package/docs/api/check-box.md +70 -0
- package/docs/api/chip.md +55 -0
- package/docs/api/circular-progress-bar.md +71 -0
- package/docs/api/collapsible.md +71 -0
- package/docs/api/color-gradient.md +54 -0
- package/docs/api/color-palette.md +52 -0
- package/docs/api/color-picker.md +89 -0
- package/docs/api/combo-box.md +69 -0
- package/docs/api/command.md +282 -0
- package/docs/api/common.md +599 -0
- package/docs/api/contextmenu.md +239 -0
- package/docs/api/date-input.md +119 -0
- package/docs/api/date-picker.md +67 -0
- package/docs/api/datetime-picker.md +72 -0
- package/docs/api/dialog.md +291 -0
- package/docs/api/dropdown-button.md +248 -0
- package/docs/api/dropdown-list.md +72 -0
- package/docs/api/dropdowns.md +172 -0
- package/docs/api/editor.md +117 -0
- package/docs/api/expansion-panel.md +85 -0
- package/docs/api/fieldset.md +33 -0
- package/docs/api/filter.md +116 -0
- package/docs/api/grid.md +1445 -0
- package/docs/api/i18n.md +1699 -0
- package/docs/api/label.md +58 -0
- package/docs/api/list-box.md +301 -0
- package/docs/api/list-view.md +294 -0
- package/docs/api/list.md +119 -0
- package/docs/api/locales.md +134 -0
- package/docs/api/menubar.md +275 -0
- package/docs/api/multi-select.md +92 -0
- package/docs/api/notification.md +164 -0
- package/docs/api/numeric-text-box.md +130 -0
- package/docs/api/otp-input.md +100 -0
- package/docs/api/pager.md +371 -0
- package/docs/api/placeholder.md +18 -0
- package/docs/api/popover.md +170 -0
- package/docs/api/popup-menu.md +328 -0
- package/docs/api/popup.md +299 -0
- package/docs/api/progress-bar.md +79 -0
- package/docs/api/query.md +367 -0
- package/docs/api/radio-button.md +113 -0
- package/docs/api/rating.md +187 -0
- package/docs/api/scroll-view.md +93 -0
- package/docs/api/segmented.md +114 -0
- package/docs/api/sheet.md +65 -0
- package/docs/api/sidebar.md +583 -0
- package/docs/api/skeleton.md +26 -0
- package/docs/api/slider.md +173 -0
- package/docs/api/spinner.md +132 -0
- package/docs/api/split-button.md +261 -0
- package/docs/api/splitter.md +57 -0
- package/docs/api/stepper.md +148 -0
- package/docs/api/switch.md +78 -0
- package/docs/api/tabs.md +139 -0
- package/docs/api/text-area.md +20 -0
- package/docs/api/text-box.md +106 -0
- package/docs/api/theme.md +627 -0
- package/docs/api/time-picker.md +69 -0
- package/docs/api/time-selector.md +54 -0
- package/docs/api/tooltip.md +112 -0
- package/docs/api/tree-view.md +631 -0
- package/docs/api/window.md +245 -0
- package/docs/auto-complete.md +28 -329
- package/docs/avatar.md +4 -24
- package/docs/breadcrumb.md +10 -65
- package/docs/button-group.md +7 -60
- package/docs/button.md +8 -67
- package/docs/calendar.md +16 -121
- package/docs/card.md +16 -79
- package/docs/chart-bar.md +16 -234
- package/docs/chart-financial.md +10 -121
- package/docs/chart-funnel.md +13 -176
- package/docs/chart-heatmap.md +15 -131
- package/docs/chart-line-area.md +12 -137
- package/docs/chart-pie.md +17 -221
- package/docs/chart-radar.md +13 -129
- package/docs/chart-radial.md +13 -211
- package/docs/chart-scatter.md +6 -74
- package/docs/chart-treemap.md +14 -196
- package/docs/chart.md +168 -1892
- package/docs/checkbox.md +5 -61
- package/docs/chip.md +7 -42
- package/docs/circular-progress-bar.md +9 -61
- package/docs/collapsible.md +5 -87
- package/docs/color-gradient.md +8 -81
- package/docs/color-palette.md +7 -69
- package/docs/color-picker.md +9 -105
- package/docs/combo-box.md +28 -331
- package/docs/command.md +25 -236
- package/docs/contextmenu.md +15 -140
- package/docs/date-picker.md +7 -110
- package/docs/datetime-picker.md +7 -129
- package/docs/decimal-textbox.md +6 -69
- package/docs/dialog.md +23 -263
- package/docs/dropdown-button.md +15 -146
- package/docs/dropdown-list.md +29 -332
- package/docs/editor.md +10 -164
- package/docs/expansion-panel.md +7 -69
- package/docs/fieldset.md +5 -24
- package/docs/grid-columns.md +12 -92
- package/docs/grid-editing.md +29 -291
- package/docs/grid-grouping.md +11 -50
- package/docs/grid-rows.md +10 -74
- package/docs/grid-selection.md +7 -36
- package/docs/grid-server.md +8 -293
- package/docs/grid-sorting-filtering.md +10 -333
- package/docs/grid-state-export.md +17 -228
- package/docs/grid.md +23 -216
- package/docs/input.md +7 -19
- package/docs/installation.md +147 -15
- package/docs/introduction.md +37 -15
- package/docs/label.md +8 -39
- package/docs/list-box.md +21 -253
- package/docs/list-view.md +25 -232
- package/docs/menubar.md +21 -167
- package/docs/multi-select.md +31 -350
- package/docs/notification.md +17 -116
- package/docs/numeric-textbox.md +9 -78
- package/docs/otp-input.md +9 -95
- package/docs/pager.md +19 -239
- package/docs/placeholder.md +5 -18
- package/docs/popover.md +13 -123
- package/docs/popup-menu.md +22 -243
- package/docs/popup.md +24 -248
- package/docs/progress-bar.md +10 -75
- package/docs/radio-button.md +8 -96
- package/docs/range-slider.md +9 -82
- package/docs/rating.md +15 -163
- package/docs/scroll-view.md +9 -86
- package/docs/segmented.md +8 -90
- package/docs/sheet.md +10 -74
- package/docs/sidebar-menus.md +20 -155
- package/docs/sidebar-state.md +16 -134
- package/docs/sidebar.md +18 -218
- package/docs/skeleton.md +5 -26
- package/docs/slider.md +9 -97
- package/docs/spinner.md +15 -95
- package/docs/split-button.md +21 -166
- package/docs/splitter.md +9 -56
- package/docs/stepper.md +13 -127
- package/docs/switch.md +8 -58
- package/docs/tabs.md +13 -111
- package/docs/textarea.md +4 -13
- package/docs/textbox.md +10 -77
- package/docs/theming-built-in-themes.md +67 -0
- package/docs/theming-custom-colors.md +274 -0
- package/docs/theming-custom-themes.md +168 -0
- package/docs/theming.md +164 -248
- package/docs/time-picker.md +7 -112
- package/docs/tooltip-directive.md +12 -96
- package/docs/tooltip.md +12 -96
- package/docs/tree-view.md +42 -495
- package/docs/window.md +19 -230
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
- package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
- package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -389
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
- package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
- package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -740
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -254
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -729
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
- package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5068
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
- package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
- package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
- package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
- package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
- package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
- package/llms.txt +80 -2
- package/package.json +62 -23
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
- package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
- package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
- package/types/nanahoshi-mona-ui-button.d.ts +227 -166
- package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
- package/types/nanahoshi-mona-ui-card.d.ts +125 -111
- package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
- package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
- package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
- package/types/nanahoshi-mona-ui-collapsible.d.ts +105 -87
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
- package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
- package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
- package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
- package/types/nanahoshi-mona-ui-command.d.ts +279 -191
- package/types/nanahoshi-mona-ui-common.d.ts +360 -385
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
- package/types/nanahoshi-mona-ui-date-input.d.ts +97 -97
- package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
- package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +255 -235
- package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
- package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
- package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
- package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
- package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
- package/types/nanahoshi-mona-ui-i18n.d.ts +999 -1052
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
- package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
- package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
- package/types/nanahoshi-mona-ui-label.d.ts +108 -78
- package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
- package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
- package/types/nanahoshi-mona-ui-list.d.ts +2 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
- package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
- package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
- package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
- package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
- package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
- package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
- package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
- package/types/nanahoshi-mona-ui-query.d.ts +82 -88
- package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
- package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
- package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
- package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
- package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
- package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
- package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
- package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
- package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
- package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
- package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
- package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
- package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
- package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
- package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
- package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
- package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
- package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
- package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
- package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
- package/types/nanahoshi-mona-ui-window.d.ts +494 -399
- package/types/nanahoshi-mona-ui.d.ts +1 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
package/docs/chart.md
CHANGED
|
@@ -511,6 +511,20 @@ Resolution precedence is chart disable, series disable, series preference, then
|
|
|
511
511
|
|
|
512
512
|
Hidden items the data no longer has are dropped from the binding when the data changes. A chart with no data keeps them, so a value set before the data loads still applies.
|
|
513
513
|
|
|
514
|
+
### Export
|
|
515
|
+
|
|
516
|
+
`exportChart(options)` returns the chart as a PNG, SVG or PDF `Blob`, and `downloadChart(options)` also saves it as a file. Export needs the `jspdf`, `svg2pdf.js` and `html2canvas-pro` packages, which aren't installed with Mona UI. See [Export Charts](installation.md#export-charts).
|
|
517
|
+
|
|
518
|
+
```typescript
|
|
519
|
+
private readonly chart = viewChild.required(ChartComponent);
|
|
520
|
+
|
|
521
|
+
protected async downloadReport(): Promise<void> {
|
|
522
|
+
await this.chart().downloadChart({ fileName: "visitors.pdf", format: "pdf" });
|
|
523
|
+
}
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
A PDF keeps the chart as vector graphics when it can, and falls back to an image otherwise. Set `mode` to `"vector"` or `"raster"` to choose. `width`, `height` and `background` set the output size and fill, and `page` sets a PDF's page size and margins.
|
|
527
|
+
|
|
514
528
|
### Locale
|
|
515
529
|
|
|
516
530
|
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.
|
|
@@ -565,1901 +579,163 @@ Keys pressed inside the legend or other projected content are left to that conte
|
|
|
565
579
|
|
|
566
580
|
## API
|
|
567
581
|
|
|
568
|
-
Everything below is imported from `@nanahoshi/mona-ui/chart`.
|
|
569
|
-
|
|
570
|
-
### `ChartComponent`
|
|
571
|
-
|
|
572
|
-
Root visualization container coordinating coordinate layouts, canvas rendering, theme styles, and interactions.
|
|
573
|
-
|
|
574
|
-
**Selector:** `mona-chart`
|
|
575
|
-
|
|
576
|
-
#### Inputs
|
|
577
|
-
|
|
578
|
-
| Name | Type | Default | Description |
|
|
579
|
-
| --- | --- | --- | --- |
|
|
580
|
-
| `animation` | `ChartAnimationInput` | `true` | Animation settings for initial render and subsequent data or visibility transitions. |
|
|
581
|
-
| `aria-description` | `string` | `""` | Detailed accessible description explaining the chart's purpose and trends. |
|
|
582
|
-
| `aria-label` | `string` | `""` | Accessible name for the chart container. |
|
|
583
|
-
| `class` | `string` | `""` | Additional CSS classes applied to chart root container. |
|
|
584
|
-
| `data` | `readonly unknown[]` | `[]` | Primary dataset shared across all child series. |
|
|
585
|
-
| `dataTable` | `boolean` | `false` | Renders a visually hidden table of the chart's data (its first 100 rows) for screen readers. |
|
|
586
|
-
| `defaultViewport` | `ChartViewportState \| undefined` | `undefined` | Initial default viewport window state for chart axes. |
|
|
587
|
-
| `downsampling` | `ChartDownsamplingInput` | `true` | High-density downsampling policy for eligible dense series. |
|
|
588
|
-
| `landmark` | `boolean` | `false` | Makes the chart a `region` landmark instead of an `application`. A landmark keeps screen readers in browse mode, so they read the arrow keys themselves; give each landmark chart a unique name. |
|
|
589
|
-
| `navigation` | `ChartNavigationInput` | `false` | Navigation, panning, and zooming options for the chart. |
|
|
590
|
-
| `renderer` | `ChartRendererMode` | `"canvas"` | The rendering engine used to draw the chart surface ("canvas" \| "svg"). |
|
|
591
|
-
| `subtitle` | `string` | `""` | Subtitle text rendered beneath the title. |
|
|
592
|
-
| `synchronization` | `ChartSynchronizationInput` | `false` | Cross-chart synchronization configuration. Accepts `false`, a group name shorthand, or full options. |
|
|
593
|
-
| `title` | `string` | `""` | Title text rendered above the plot area. |
|
|
594
|
-
| `titleAlign` | `ChartHeaderAlignment` | `"start"` | Horizontal alignment of the title and subtitle ('center', 'left', or 'right'). |
|
|
595
|
-
| `viewport` | `ChartViewportState \| undefined` | `undefined` | Active viewport window state for chart axes. Bind `[(viewport)]` for two-way binding. While it is defined the parent owns the viewport: a change applies once the parent writes it back. |
|
|
596
|
-
| `xField` | `ChartField` | `""` | Property key or accessor extracting the X-axis coordinate for each data item. |
|
|
597
|
-
|
|
598
|
-
#### Outputs
|
|
599
|
-
|
|
600
|
-
| Name | Type | Description |
|
|
601
|
-
| --- | --- | --- |
|
|
602
|
-
| `pointClick` | `ChartPointEvent<unknown>` | Emits when a data point, vertex, or bar in the chart is clicked. |
|
|
603
|
-
| `pointFocusChange` | `ChartPointFocusEvent<unknown>` | Emits when the keyboard focus moves to a new data point, spoke, or series. |
|
|
604
|
-
| `seriesVisibilityChange` | `ChartSeriesVisibilityEvent` | Emits when a series visibility state is toggled via legend interaction. |
|
|
605
|
-
| `viewportChange` | `ChartViewportState` | Emits the new viewport state when it changes via pan, zoom, fit, reset, or keyboard navigation. |
|
|
606
|
-
| `viewportChangeDetails` | `ChartViewportChangeEvent` | Emits with each viewport change, along with the previous state, source, gesture phase and changed axes. |
|
|
607
|
-
|
|
608
|
-
#### Methods
|
|
609
|
-
|
|
610
|
-
| Signature | Description |
|
|
611
|
-
| --- | --- |
|
|
612
|
-
| `downloadChart(options: ChartDownloadOptions): Promise<ChartExportResult>` | Exports and triggers a browser file download of the chart in PNG, SVG, or PDF format. |
|
|
613
|
-
| `exportChart(options: ChartExportOptions): Promise<ChartExportResult>` | Exports the chart as a binary Blob in PNG, SVG, or PDF format. |
|
|
614
|
-
| `fit(window: ChartViewportWindow \| readonly ChartViewportWindow[]): void` | **Deprecated.** Use 'setViewportWindow' instead. Fits the viewport window to a specified continuous range or category indices. |
|
|
615
|
-
| `fitViewport(target?: ChartNavigationAxisTarget): void` | Fits target axes (or all axes) to full canonical base domain. |
|
|
616
|
-
| `getViewport(): ChartViewportState \| null` | Returns the current active viewport window state, or null if chart is not Cartesian XY. |
|
|
617
|
-
| `invalidate(): void` | Schedules a new layout and paint, for changes the chart can't see, such as a mutated data array. |
|
|
618
|
-
| `pan(delta: { x: number; y: number }, target?: ChartNavigationAxisTarget): void` | Pans the viewport by pixel delta vector { x, y }. |
|
|
619
|
-
| `resetViewport(target?: ChartNavigationAxisTarget): void` | Resets the viewport window back to the default viewport (or base domain) for target axes. |
|
|
620
|
-
| `setViewport(viewport: ChartViewportState): void` | Sets the active viewport window state (full replacement). |
|
|
621
|
-
| `setViewportWindow(window: ChartViewportWindow \| readonly ChartViewportWindow[]): void` | Sets the viewport window for specific axis/axes (partial mutation). |
|
|
622
|
-
| `toggleSeriesVisibility(seriesId: string): void` | Toggles the visibility of a series. |
|
|
623
|
-
| `zoom(factor: number, anchor?: ChartPoint, target?: ChartNavigationAxisTarget): void` | Zooms the viewport by a scale factor around an optional pixel anchor point. |
|
|
624
|
-
|
|
625
|
-
### `ChartXAxisComponent`
|
|
626
|
-
|
|
627
|
-
Configures an X axis in Cartesian charts. Add more than one with distinct `axisId` values for multiple axes.
|
|
628
|
-
|
|
629
|
-
**Selector:** `mona-chart-x-axis`
|
|
630
|
-
|
|
631
|
-
#### Inputs
|
|
632
|
-
|
|
633
|
-
| Name | Type | Default | Description |
|
|
634
|
-
| --- | --- | --- | --- |
|
|
635
|
-
| `axisId` | `string \| undefined` | `undefined` | Optional semantic identifier for the X axis, referenced by series `xAxisId`. |
|
|
636
|
-
| `axisLine` | `boolean` | `true` | Whether the solid baseline axis border line is rendered. |
|
|
637
|
-
| `exponent` | `number` | `1` | Exponent for power scale (`type="pow"`). Must be a positive finite number. |
|
|
638
|
-
| `field` | `ChartField \| undefined` | `undefined` | Optional data field name for the X axis categories or values. |
|
|
639
|
-
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for axis tick labels. |
|
|
640
|
-
| `gridLines` | `boolean \| undefined` | `undefined` | Whether vertical grid lines aligned with X-axis ticks are visible. Defaults to false in standard Cartesian and true for horizontal value axes. |
|
|
641
|
-
| `labelMaxWidth` | `number \| undefined` | `undefined` | Maximum unrotated width in pixels for tick labels before truncation. |
|
|
642
|
-
| `labelPadding` | `number \| undefined` | `undefined` | Spacing in pixels between the axis baseline / tick marks and tick labels. |
|
|
643
|
-
| `labelRotation` | `ChartAxisLabelRotation` | `0` | Explicit rotation angle in degrees for tick labels (-90 to 90), or 'auto' for responsive automatic angling. |
|
|
644
|
-
| `labels` | `boolean` | `true` | Whether the axis tick labels are rendered in the DOM. |
|
|
645
|
-
| `logBase` | `number` | `10` | Base logarithm for log scale (`type="log"`). Must be a positive finite number not equal to 1. |
|
|
646
|
-
| `max` | `number \| Date \| undefined` | `undefined` | Explicit upper bound for the axis range. |
|
|
647
|
-
| `min` | `number \| Date \| undefined` | `undefined` | Explicit lower bound for the axis range. |
|
|
648
|
-
| `nice` | `boolean` | `true` | Automatically extends the axis domain to round, pleasant values. |
|
|
649
|
-
| `position` | `ChartXAxisPosition` | `"bottom"` | Position of the X axis relative to the plot area. |
|
|
650
|
-
| `symlogConstant` | `number` | `1` | Constant for symlog scale (`type="symlog"`). Must be a positive finite number. |
|
|
651
|
-
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of ticks to display along the axis (acts as preferred label count for category axes). |
|
|
652
|
-
| `tickMarks` | `boolean` | `false` | Whether tick mark lines extending outward from the baseline are drawn. |
|
|
653
|
-
| `tickSize` | `number \| undefined` | `undefined` | Length in pixels of outward tick mark lines. |
|
|
654
|
-
| `title` | `string` | `""` | Title text rendered alongside the axis. |
|
|
655
|
-
| `titlePadding` | `number \| undefined` | `undefined` | Spacing in pixels between the outward extent of tick labels and the axis title. |
|
|
656
|
-
| `type` | `ChartXAxisType` | `"auto"` | Scale type for the X axis (`"auto"`, `"category"`, `"linear"`, `"log"`, `"symlog"`, `"pow"`, `"sqrt"`, `"time"`, or `"utc"`). |
|
|
657
|
-
| `visible` | `boolean` | `true` | Whether the axis and its labels are visible. |
|
|
658
|
-
|
|
659
|
-
### `ChartYAxisComponent`
|
|
660
|
-
|
|
661
|
-
Configures a Y axis in Cartesian charts. Add more than one with distinct `axisId` values for multiple axes.
|
|
662
|
-
|
|
663
|
-
**Selector:** `mona-chart-y-axis`
|
|
664
|
-
|
|
665
|
-
#### Inputs
|
|
666
|
-
|
|
667
|
-
| Name | Type | Default | Description |
|
|
668
|
-
| --- | --- | --- | --- |
|
|
669
|
-
| `axisId` | `string \| undefined` | `undefined` | Optional semantic identifier for the Y axis, referenced by series `yAxisId`. |
|
|
670
|
-
| `axisLine` | `boolean` | `true` | Whether the solid baseline axis border line is rendered. |
|
|
671
|
-
| `exponent` | `number` | `1` | Exponent for power scale (`type="pow"`). Must be a positive finite number. |
|
|
672
|
-
| `formatter` | `ChartAxisFormatter \| undefined` | `undefined` | Custom formatter function for axis tick labels. |
|
|
673
|
-
| `gridLines` | `boolean \| undefined` | `undefined` | Whether horizontal grid lines aligned with Y-axis ticks are visible. Defaults to true in standard Cartesian and false for horizontal value axes. |
|
|
674
|
-
| `labelMaxWidth` | `number \| undefined` | `undefined` | Maximum unrotated width in pixels for tick labels before truncation. |
|
|
675
|
-
| `labelPadding` | `number \| undefined` | `undefined` | Spacing in pixels between the axis baseline / tick marks and tick labels. |
|
|
676
|
-
| `labelRotation` | `ChartAxisLabelRotation` | `0` | Explicit rotation angle in degrees for tick labels (-90 to 90), or 'auto' for responsive automatic angling. |
|
|
677
|
-
| `labels` | `boolean` | `true` | Whether the axis tick labels are rendered in the DOM. |
|
|
678
|
-
| `logBase` | `number` | `10` | Base logarithm for log scale (`type="log"`). Must be a positive finite number not equal to 1. |
|
|
679
|
-
| `max` | `number \| undefined` | `undefined` | Explicit upper bound for the numeric value range. |
|
|
680
|
-
| `min` | `number \| undefined` | `undefined` | Explicit lower bound for the numeric value range. |
|
|
681
|
-
| `nice` | `boolean` | `true` | Automatically extends the axis domain to round, pleasant values. |
|
|
682
|
-
| `position` | `ChartYAxisPosition` | `"start"` | Position of the Y axis relative to the plot area. `start` and `end` follow the direction; `left` and `right` stay on that side. |
|
|
683
|
-
| `symlogConstant` | `number` | `1` | Constant for symlog scale (`type="symlog"`). Must be a positive finite number. |
|
|
684
|
-
| `tickCount` | `number \| undefined` | `undefined` | Suggested number of ticks to display along the axis (acts as preferred label count for category axes). |
|
|
685
|
-
| `tickMarks` | `boolean` | `false` | Whether tick mark lines extending outward from the baseline are drawn. |
|
|
686
|
-
| `tickSize` | `number \| undefined` | `undefined` | Length in pixels of outward tick mark lines. |
|
|
687
|
-
| `title` | `string` | `""` | Title text rendered alongside the axis. |
|
|
688
|
-
| `titlePadding` | `number \| undefined` | `undefined` | Spacing in pixels between the outward extent of tick labels and the axis title. |
|
|
689
|
-
| `type` | `ChartYAxisType` | `"auto"` | Scale type for the Y axis (`"auto"`, `"category"`, `"linear"`, `"log"`, `"symlog"`, `"pow"`, or `"sqrt"`). |
|
|
690
|
-
| `visible` | `boolean` | `true` | Whether the axis and its labels are visible. |
|
|
691
|
-
|
|
692
|
-
### `ChartAnnotationComponent`
|
|
693
|
-
|
|
694
|
-
Renders callouts, milestone badges, and outlier markers anchored to specific (X, Y) coordinates.
|
|
695
|
-
|
|
696
|
-
**Selector:** `mona-chart-annotation`
|
|
697
|
-
|
|
698
|
-
#### Inputs
|
|
699
|
-
|
|
700
|
-
| Name | Type | Default | Description |
|
|
701
|
-
| --- | --- | --- | --- |
|
|
702
|
-
| `class` | `string` | `""` | Custom CSS class name applied to the annotation host. |
|
|
703
|
-
| `color` | `string \| undefined` | `undefined` | Stroke and marker color for the annotation. |
|
|
704
|
-
| `connector` | `boolean` | `true` | Sets whether a connector line is drawn between the anchor point and the label. |
|
|
705
|
-
| `connectorWidth` | `number` | `1` | Connector stroke width in pixels. |
|
|
706
|
-
| `data` | `unknown` | `undefined` | Custom data object provided to template context. |
|
|
707
|
-
| `label` | `string` | `""` | Text label displayed for the annotation. |
|
|
708
|
-
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
709
|
-
| `labelPlacement` | `ChartAnnotationLabelPlacement` | `"top"` | Relative placement of the label from the anchor point: 'top', 'bottom', 'left', or 'right'. |
|
|
710
|
-
| `marker` | `ChartAnnotationMarker` | `"circle"` | Marker shape drawn at the anchor point: 'circle', 'diamond', or 'none'. |
|
|
711
|
-
| `markerRadius` | `number` | `4` | Marker radius in pixels. |
|
|
712
|
-
| `markerStrokeWidth` | `number` | `1.5` | Marker stroke width in pixels. |
|
|
713
|
-
| `offsetX` | `number` | `0` | Additional horizontal pixel offset for label positioning. |
|
|
714
|
-
| `offsetY` | `number` | `0` | Additional vertical pixel offset for label positioning. |
|
|
715
|
-
| `visible` | `boolean` | `true` | Sets whether the annotation is visible. |
|
|
716
|
-
| `x` (required) | `ChartAnnotationAxisValue` | — | X coordinate value or category key for the annotation anchor. |
|
|
717
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Explicit target X axis identifier. Defaults to primary X axis. |
|
|
718
|
-
| `y` (required) | `ChartAnnotationAxisValue` | — | Y coordinate value or category key for the annotation anchor. |
|
|
719
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Explicit target Y axis identifier. Defaults to primary Y axis. |
|
|
720
|
-
|
|
721
|
-
### `ChartCrosshairComponent`
|
|
722
|
-
|
|
723
|
-
Renders dynamic crosshair guide lines and axis label badges for pointer and keyboard navigation in Cartesian XY
|
|
724
|
-
charts.
|
|
725
|
-
|
|
726
|
-
**Selector:** `mona-chart-crosshair`
|
|
727
|
-
|
|
728
|
-
#### Inputs
|
|
729
|
-
|
|
730
|
-
| Name | Type | Default | Description |
|
|
731
|
-
| --- | --- | --- | --- |
|
|
732
|
-
| `class` | `string` | `""` | Custom CSS class name applied to the crosshair. |
|
|
733
|
-
| `color` | `string \| undefined` | `undefined` | Stroke color for the crosshair line. |
|
|
734
|
-
| `enabled` | `boolean` | `true` | Sets whether crosshair interaction is enabled. |
|
|
735
|
-
| `labelOffset` | `number` | `4` | Pixel offset between axis line and crosshair label badge. |
|
|
736
|
-
| `lineStyle` | `ChartCrosshairLineStyle` | `"dashed"` | Line dash style for the crosshair. |
|
|
737
|
-
| `lineWidth` | `number \| undefined` | `undefined` | Line stroke width in pixels. |
|
|
738
|
-
| `maxSnapDistance` | `number` | `32` | Maximum pixel distance for nearest mark snapping. |
|
|
739
|
-
| `mode` | `ChartCrosshairMode` | `"auto"` | Crosshair display mode: auto (follows interaction axis), x, y, or xy. |
|
|
740
|
-
| `opacity` | `number \| undefined` | `undefined` | Stroke opacity for the crosshair line (0 to 1). |
|
|
741
|
-
| `showAxisLabels` | `boolean` | `true` | Sets whether axis value badges are displayed. |
|
|
742
|
-
| `showXLabel` | `boolean \| undefined` | `undefined` | Sets whether the X axis label badge is displayed. |
|
|
743
|
-
| `showYLabel` | `boolean \| undefined` | `undefined` | Sets whether the Y axis label badge is displayed. |
|
|
744
|
-
| `snap` | `ChartCrosshairSnapMode` | `"nearest"` | Snapping mode: nearest semantic mark or raw pointer position. |
|
|
745
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Explicit target X axis identifier. |
|
|
746
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Explicit target Y axis identifier. |
|
|
747
|
-
|
|
748
|
-
### `ChartReferenceBandComponent`
|
|
749
|
-
|
|
750
|
-
Renders highlighted threshold intervals and target regions in Cartesian XY charts.
|
|
751
|
-
|
|
752
|
-
**Selector:** `mona-chart-reference-band`
|
|
753
|
-
|
|
754
|
-
#### Inputs
|
|
755
|
-
|
|
756
|
-
| Name | Type | Default | Description |
|
|
757
|
-
| --- | --- | --- | --- |
|
|
758
|
-
| `axis` (required) | `"x" \| "y"` | — | Target Cartesian axis dimension: 'x' or 'y'. |
|
|
759
|
-
| `axisId` | `string \| undefined` | `undefined` | Explicit identifier of the target axis. Defaults to primary axis for the dimension. |
|
|
760
|
-
| `borderColor` | `string \| undefined` | `undefined` | Border stroke color of the reference band. |
|
|
761
|
-
| `borderWidth` | `number \| undefined` | `undefined` | Border stroke width of the reference band in pixels. |
|
|
762
|
-
| `class` | `string` | `""` | Custom CSS class name applied to the reference band host. |
|
|
763
|
-
| `fillColor` | `string \| undefined` | `undefined` | Fill color of the reference band. |
|
|
764
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity of the reference band (0 to 1). |
|
|
765
|
-
| `from` (required) | `ChartAnnotationAxisValue` | — | Starting coordinate value or category key for the reference band. |
|
|
766
|
-
| `label` | `string` | `""` | Text label displayed inside or alongside the reference band. |
|
|
767
|
-
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
768
|
-
| `labelOffset` | `number` | `6` | Pixel offset between the band boundary and the label. |
|
|
769
|
-
| `labelPosition` | `ChartReferenceLabelPosition` | `"center"` | Alignment position for the label: 'start', 'center', or 'end'. |
|
|
770
|
-
| `layer` | `ChartOverlayLayer` | `"underlay"` | Render layer: 'underlay' (behind series) or 'overlay' (in front of series). |
|
|
771
|
-
| `to` (required) | `ChartAnnotationAxisValue` | — | Ending coordinate value or category key for the reference band. |
|
|
772
|
-
| `visible` | `boolean` | `true` | Sets whether the reference band is visible. |
|
|
773
|
-
|
|
774
|
-
### `ChartBrushComponent`
|
|
775
|
-
|
|
776
|
-
Selects a region of a Cartesian plot by dragging, or from the keyboard with `Shift` + arrows from a focused point.
|
|
777
|
-
|
|
778
|
-
**Selector:** `mona-chart-brush`
|
|
779
|
-
|
|
780
|
-
#### Inputs
|
|
781
|
-
|
|
782
|
-
| Name | Type | Default | Description |
|
|
783
|
-
| --- | --- | --- | --- |
|
|
784
|
-
| `activation` | `ChartBrushActivation` | `"shift-drag"` | Activation trigger gesture ('drag' or 'shift-drag'). |
|
|
785
|
-
| `borderColor` | `string \| undefined` | `undefined` | Border color of the brush rectangle. |
|
|
786
|
-
| `borderWidth` | `number \| undefined` | `undefined` | Border width in pixels of the brush rectangle. |
|
|
787
|
-
| `enabled` | `boolean` | `true` | Whether brush gesture interaction is enabled. |
|
|
788
|
-
| `fillColor` | `string \| undefined` | `undefined` | Background fill color of the brush rectangle. |
|
|
789
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Fill opacity of the brush rectangle. |
|
|
790
|
-
| `hitPolicy` | `ChartBrushHitPolicy` | `"intersect"` | Mark spatial hit policy ('center' or 'intersect'). |
|
|
791
|
-
| `lineStyle` | `ChartBrushLineStyle \| undefined` | `undefined` | Stroke dash style of the brush rectangle border ('solid', 'dashed', or 'dotted'). |
|
|
792
|
-
| `minDragDistance` | `number` | `4` | Minimum drag distance in pixels before brush gesture activates. |
|
|
793
|
-
| `mode` | `ChartBrushMode` | `"xy"` | Brush dimension constraint mode ('x', 'y', or 'xy'). |
|
|
794
|
-
| `selectionBehavior` | `ChartBrushSelectionBehavior` | `"none"` | Selection interaction behavior when brushing over marks. |
|
|
795
|
-
| `xAxisId` | `string \| undefined` | `undefined` | Optional Cartesian X axis ID to target. |
|
|
796
|
-
| `yAxisId` | `string \| undefined` | `undefined` | Optional Cartesian Y axis ID to target. |
|
|
797
|
-
|
|
798
|
-
#### Outputs
|
|
799
|
-
|
|
800
|
-
| Name | Type | Description |
|
|
801
|
-
| --- | --- | --- |
|
|
802
|
-
| `brushChange` | `ChartBrushChangeEvent<unknown>` | Emitted during brush lifecycle phases ('start', 'update', 'end', 'cancel'). |
|
|
803
|
-
|
|
804
|
-
### `ChartReferenceLineComponent`
|
|
805
|
-
|
|
806
|
-
Renders static horizontal or vertical benchmark lines in Cartesian XY charts.
|
|
807
|
-
|
|
808
|
-
**Selector:** `mona-chart-reference-line`
|
|
809
|
-
|
|
810
|
-
#### Inputs
|
|
811
|
-
|
|
812
|
-
| Name | Type | Default | Description |
|
|
813
|
-
| --- | --- | --- | --- |
|
|
814
|
-
| `axis` (required) | `"x" \| "y"` | — | Target Cartesian axis dimension: 'x' or 'y'. |
|
|
815
|
-
| `axisId` | `string \| undefined` | `undefined` | Explicit identifier of the target axis. Defaults to primary axis for the dimension. |
|
|
816
|
-
| `class` | `string` | `""` | Custom CSS class name applied to the reference line host. |
|
|
817
|
-
| `color` | `string \| undefined` | `undefined` | Stroke color of the reference line. |
|
|
818
|
-
| `label` | `string` | `""` | Text label displayed alongside the reference line. |
|
|
819
|
-
| `labelClass` | `string` | `""` | Custom CSS class name applied to the label badge. |
|
|
820
|
-
| `labelOffset` | `number` | `6` | Pixel offset between the reference line and the label. |
|
|
821
|
-
| `labelPosition` | `ChartReferenceLabelPosition` | `"end"` | Alignment position for the label: 'start', 'center', or 'end'. |
|
|
822
|
-
| `layer` | `ChartOverlayLayer` | `"overlay"` | Render layer: 'underlay' (behind series) or 'overlay' (in front of series). |
|
|
823
|
-
| `lineStyle` | `ChartReferenceLineStyle` | `"dashed"` | Line dash style: 'dashed', 'dotted', or 'solid'. |
|
|
824
|
-
| `opacity` | `number \| undefined` | `undefined` | Stroke opacity of the reference line (0 to 1). |
|
|
825
|
-
| `value` (required) | `ChartAnnotationAxisValue` | — | Semantic coordinate value or category key for the reference line. |
|
|
826
|
-
| `visible` | `boolean` | `true` | Sets whether the reference line is visible. |
|
|
827
|
-
| `width` | `number \| undefined` | `undefined` | Stroke width of the reference line in pixels. |
|
|
828
|
-
|
|
829
|
-
### `ChartSelectionComponent`
|
|
830
|
-
|
|
831
|
-
Lets users select marks with the pointer and keyboard, and holds the selected mark IDs.
|
|
832
|
-
|
|
833
|
-
**Selector:** `mona-chart-selection`
|
|
834
|
-
|
|
835
|
-
#### Inputs
|
|
836
|
-
|
|
837
|
-
| Name | Type | Default | Description |
|
|
838
|
-
| --- | --- | --- | --- |
|
|
839
|
-
| `clearOnBackgroundClick` | `boolean` | `true` | Whether clicking plot background clears active selection. |
|
|
840
|
-
| `clickSelection` | `boolean` | `true` | Whether clicking marks selects/toggles them. |
|
|
841
|
-
| `color` | `string \| undefined` | `undefined` | Selection highlight stroke color override. |
|
|
842
|
-
| `defaultSelectedMarkIds` | `readonly string[]` | `[]` | Default selected mark IDs to seed initial uncontrolled selection. |
|
|
843
|
-
| `enabled` | `boolean` | `true` | Whether selection interaction is enabled. |
|
|
844
|
-
| `fillOpacity` | `number \| undefined` | `undefined` | Selection highlight fill opacity override. |
|
|
845
|
-
| `keyboardSelection` | `boolean` | `true` | Whether keyboard Enter / Space on focused marks selects/toggles them. |
|
|
846
|
-
| `mode` | `ChartSelectionMode` | `"single"` | Selection mode ('single' or 'multiple'). |
|
|
847
|
-
| `retainOnDataChange` | `boolean` | `true` | Whether selected mark IDs are retained across dataset changes. |
|
|
848
|
-
| `selectedMarkIds` | `readonly string[] \| undefined` | `undefined` | Controlled selected mark IDs. When defined, component acts as controlled state. Bind `[(selectedMarkIds)]` for two-way binding. |
|
|
849
|
-
| `strokeWidth` | `number \| undefined` | `undefined` | Selection highlight stroke width override. |
|
|
850
|
-
|
|
851
|
-
#### Outputs
|
|
852
|
-
|
|
853
|
-
| Name | Type | Description |
|
|
854
|
-
| --- | --- | --- |
|
|
855
|
-
| `selectedMarkIdsChange` | `readonly string[]` | Emits the proposed selected mark IDs. |
|
|
856
|
-
| `selectionChange` | `ChartSelectionChangeEvent<unknown>` | Emitted when mark selection is proposed or changed. |
|
|
857
|
-
|
|
858
|
-
### `ChartLegendComponent`
|
|
859
|
-
|
|
860
|
-
Adds a legend. Items toggle what they represent unless `interactive` is off.
|
|
861
|
-
|
|
862
|
-
**Selector:** `mona-chart-legend`
|
|
863
|
-
|
|
864
|
-
#### Inputs
|
|
865
|
-
|
|
866
|
-
| Name | Type | Default | Description |
|
|
867
|
-
| --- | --- | --- | --- |
|
|
868
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the legend container. |
|
|
869
|
-
| `interactive` | `boolean` | `true` | Whether clicking or pressing Enter/Space on legend items toggles series visibility. |
|
|
870
|
-
| `mode` | `ChartLegendMode` | `"auto"` | Legend display mode: 'auto' (series items for standard charts, color scale for heatmap), 'series' (always series items), or 'color' (color gradient scale). |
|
|
871
|
-
| `position` | `ChartLegendPosition` | `"bottom"` | Layout position of the legend (`"top"`, `"bottom"`, `"start"`, `"end"`, `"left"`, or `"right"`). `start` and `end` follow the direction; `left` and `right` stay on that side. |
|
|
872
|
-
|
|
873
|
-
### `ChartTooltipComponent`
|
|
874
|
-
|
|
875
|
-
Adds a tooltip for pointer and keyboard interaction. Use `ng-template[monaChartTooltipTemplate]` for custom content.
|
|
876
|
-
|
|
877
|
-
**Selector:** `mona-chart-tooltip`
|
|
582
|
+
Everything below is imported from `@nanahoshi/mona-ui/chart`. Each name links to its reference page, with every input, output, property and method.
|
|
878
583
|
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
| Name | Type | Default | Description |
|
|
882
|
-
| --- | --- | --- | --- |
|
|
883
|
-
| `class` | `string` | `""` | Additional CSS classes applied to the tooltip popup container. |
|
|
884
|
-
| `enabled` | `boolean` | `true` | Whether the tooltip is enabled and will appear during interaction. |
|
|
885
|
-
| `shared` | `boolean` | `false` | In shared mode, displays values for all visible series matching the active X coordinate. |
|
|
886
|
-
|
|
887
|
-
### `ChartAnnotationLabelTemplateDirective`
|
|
888
|
-
|
|
889
|
-
**Selector:** `ng-template[monaChartAnnotationLabelTemplate], ng-template[monaChartAnnotationLabel]`
|
|
890
|
-
|
|
891
|
-
#### Template context
|
|
892
|
-
|
|
893
|
-
| Name | Type |
|
|
894
|
-
| --- | --- |
|
|
895
|
-
| `$implicit` | `unknown` |
|
|
896
|
-
| `data` | `unknown` |
|
|
897
|
-
| `formattedX` | `string` |
|
|
898
|
-
| `formattedY` | `string` |
|
|
899
|
-
| `point` | `ChartPoint` |
|
|
900
|
-
| `x` | `ChartAnnotationAxisValue` |
|
|
901
|
-
| `xAxisId` | `string` |
|
|
902
|
-
| `y` | `ChartAnnotationAxisValue` |
|
|
903
|
-
| `yAxisId` | `string` |
|
|
904
|
-
|
|
905
|
-
### `ChartAxisLabelTemplateDirective`
|
|
906
|
-
|
|
907
|
-
**Selector:** `ng-template[monaChartAxisLabelTemplate]`
|
|
908
|
-
|
|
909
|
-
#### Template context
|
|
910
|
-
|
|
911
|
-
| Name | Type |
|
|
912
|
-
| --- | --- |
|
|
913
|
-
| `$implicit` | `unknown` |
|
|
914
|
-
| `axis` | `"angular" \| "radial" \| "x" \| "y"` |
|
|
915
|
-
| `axisId?` | `string \| undefined` |
|
|
916
|
-
| `index` | `number` |
|
|
917
|
-
| `position?` | `ChartAxisPosition \| undefined` |
|
|
918
|
-
| `scaleType?` | `string \| undefined` |
|
|
919
|
-
| `value` | `unknown` |
|
|
920
|
-
|
|
921
|
-
### `ChartCrosshairLabelTemplateDirective`
|
|
922
|
-
|
|
923
|
-
**Selector:** `ng-template[monaChartCrosshairLabelTemplate], ng-template[monaChartCrosshairLabel]`
|
|
924
|
-
|
|
925
|
-
#### Template context
|
|
926
|
-
|
|
927
|
-
| Name | Type |
|
|
928
|
-
| --- | --- |
|
|
929
|
-
| `$implicit` | `unknown` |
|
|
930
|
-
| `axis` | `"x" \| "y"` |
|
|
931
|
-
| `axisId` | `string` |
|
|
932
|
-
| `coordinate` | `number` |
|
|
933
|
-
| `formattedValue` | `string` |
|
|
934
|
-
| `snapped` | `boolean` |
|
|
935
|
-
| `source` | `"keyboard" \| "pointer" \| "sync"` |
|
|
936
|
-
| `value` | `unknown` |
|
|
937
|
-
|
|
938
|
-
### `ChartDataLabelTemplateDirective`
|
|
939
|
-
|
|
940
|
-
**Selector:** `ng-template[monaChartDataLabelTemplate], ng-template[monaChartDataLabel]`
|
|
941
|
-
**Type parameters:** `T = unknown`
|
|
942
|
-
|
|
943
|
-
#### Template context
|
|
944
|
-
|
|
945
|
-
| Name | Type | Description |
|
|
584
|
+
| Name | Kind | Description |
|
|
946
585
|
| --- | --- | --- |
|
|
947
|
-
|
|
|
948
|
-
| `
|
|
949
|
-
| `
|
|
950
|
-
| `
|
|
951
|
-
| `
|
|
952
|
-
| `
|
|
953
|
-
| `
|
|
954
|
-
| `
|
|
955
|
-
| `
|
|
956
|
-
| `
|
|
957
|
-
| `
|
|
958
|
-
| `
|
|
959
|
-
| `
|
|
960
|
-
| `
|
|
961
|
-
| `
|
|
962
|
-
| `
|
|
963
|
-
| `
|
|
964
|
-
| `
|
|
965
|
-
| `
|
|
966
|
-
| `
|
|
967
|
-
| `
|
|
968
|
-
| `
|
|
969
|
-
| `
|
|
970
|
-
| `
|
|
971
|
-
| `
|
|
972
|
-
| `
|
|
973
|
-
| `
|
|
974
|
-
| `
|
|
975
|
-
| `
|
|
976
|
-
| `stackMode?` | `ChartStackMode \| undefined` | The stacking mode of the series, when the series is stacked. |
|
|
977
|
-
| `stackPercentage?` | `number \| undefined` | The mark's share of its stack total, as a percentage. |
|
|
978
|
-
| `stackStart?` | `number \| undefined` | The value where the mark starts on its stack. |
|
|
979
|
-
| `stackTotal?` | `number \| undefined` | The total of the stack the mark belongs to. |
|
|
980
|
-
| `toValue?` | `number \| undefined` | The end value of a range bar or range area mark. |
|
|
981
|
-
| `value?` | `unknown` | The value of the mark. A `[from, to]` pair for range marks, the aggregate value for hierarchical marks, and the y value otherwise. |
|
|
982
|
-
| `xValue?` | `unknown` | The x value of the mark. |
|
|
983
|
-
| `yValue?` | `unknown` | The y value of the mark. |
|
|
984
|
-
|
|
985
|
-
### `ChartLegendItemTemplateDirective`
|
|
986
|
-
|
|
987
|
-
**Selector:** `ng-template[monaChartLegendItemTemplate]`
|
|
988
|
-
|
|
989
|
-
#### Template context
|
|
990
|
-
|
|
991
|
-
| Name | Type |
|
|
992
|
-
| --- | --- |
|
|
993
|
-
| `$implicit` | `ChartLegendItem` |
|
|
994
|
-
| `color` | `string` |
|
|
995
|
-
| `dataIndex?` | `number \| undefined` |
|
|
996
|
-
| `datum?` | `unknown` |
|
|
997
|
-
| `interactive?` | `boolean \| undefined` |
|
|
998
|
-
| `itemId` | `string` |
|
|
999
|
-
| `kind?` | `ChartLegendItemKind \| undefined` |
|
|
1000
|
-
| `name` | `string` |
|
|
1001
|
-
| `percentage?` | `number \| undefined` |
|
|
1002
|
-
| `secondaryColor?` | `string \| undefined` |
|
|
1003
|
-
| `series` | `ChartLegendItem` |
|
|
1004
|
-
| `seriesId` | `string` |
|
|
1005
|
-
| `seriesType` | `ChartSeriesType` |
|
|
1006
|
-
| `value?` | `number \| undefined` |
|
|
1007
|
-
| `visible` | `boolean` |
|
|
1008
|
-
|
|
1009
|
-
### `ChartNoDataTemplateDirective`
|
|
1010
|
-
|
|
1011
|
-
**Selector:** `ng-template[monaChartNoDataTemplate]`
|
|
1012
|
-
|
|
1013
|
-
### `ChartReferenceLabelTemplateDirective`
|
|
1014
|
-
|
|
1015
|
-
**Selector:** `ng-template[monaChartReferenceLabelTemplate], ng-template[monaChartReferenceLabel]`
|
|
1016
|
-
|
|
1017
|
-
#### Template context
|
|
1018
|
-
|
|
1019
|
-
| Name | Type |
|
|
1020
|
-
| --- | --- |
|
|
1021
|
-
| `$implicit` | `ChartAnnotationAxisValue \| { readonly from: ChartAnnotationAxisValue; readonly to: ChartAnnotationAxisValue; }` |
|
|
1022
|
-
| `axis` | `"x" \| "y"` |
|
|
1023
|
-
| `axisId` | `string` |
|
|
1024
|
-
| `bounds?` | `ChartRect \| undefined` |
|
|
1025
|
-
| `coordinate?` | `number \| undefined` |
|
|
1026
|
-
| `formattedFrom?` | `string \| undefined` |
|
|
1027
|
-
| `formattedTo?` | `string \| undefined` |
|
|
1028
|
-
| `formattedValue?` | `string \| undefined` |
|
|
1029
|
-
| `from?` | `ChartAnnotationAxisValue \| undefined` |
|
|
1030
|
-
| `kind` | `"line" \| "band"` |
|
|
1031
|
-
| `to?` | `ChartAnnotationAxisValue \| undefined` |
|
|
1032
|
-
| `value?` | `ChartAnnotationAxisValue \| undefined` |
|
|
1033
|
-
|
|
1034
|
-
### `ChartSubtitleTemplateDirective`
|
|
1035
|
-
|
|
1036
|
-
**Selector:** `ng-template[monaChartSubtitleTemplate]`
|
|
1037
|
-
|
|
1038
|
-
#### Template context
|
|
1039
|
-
|
|
1040
|
-
| Name | Type |
|
|
1041
|
-
| --- | --- |
|
|
1042
|
-
| `$implicit` | `string` |
|
|
1043
|
-
| `subtitle` | `string` |
|
|
1044
|
-
|
|
1045
|
-
### `ChartTitleTemplateDirective`
|
|
1046
|
-
|
|
1047
|
-
**Selector:** `ng-template[monaChartTitleTemplate]`
|
|
1048
|
-
|
|
1049
|
-
#### Template context
|
|
1050
|
-
|
|
1051
|
-
| Name | Type |
|
|
1052
|
-
| --- | --- |
|
|
1053
|
-
| `$implicit` | `string` |
|
|
1054
|
-
| `title` | `string` |
|
|
1055
|
-
|
|
1056
|
-
### `ChartTooltipTemplateDirective`
|
|
1057
|
-
|
|
1058
|
-
**Selector:** `ng-template[monaChartTooltipTemplate]`
|
|
1059
|
-
|
|
1060
|
-
#### Template context
|
|
1061
|
-
|
|
1062
|
-
| Name | Type |
|
|
1063
|
-
| --- | --- |
|
|
1064
|
-
| `$implicit` | `ChartTooltipPointContext<unknown>` |
|
|
1065
|
-
| `point` | `ChartTooltipPointContext<unknown>` |
|
|
1066
|
-
| `points` | `readonly ChartTooltipPointContext<unknown>[]` |
|
|
1067
|
-
| `series` | `readonly string[]` |
|
|
1068
|
-
| `shared` | `boolean` |
|
|
1069
|
-
|
|
1070
|
-
### `ChartExportError`
|
|
1071
|
-
|
|
1072
|
-
Error thrown when a chart export operation fails.
|
|
1073
|
-
|
|
1074
|
-
#### Properties
|
|
1075
|
-
|
|
1076
|
-
| Name | Type |
|
|
1077
|
-
| --- | --- |
|
|
1078
|
-
| `code` (read-only) | `ChartExportErrorCode` |
|
|
1079
|
-
|
|
1080
|
-
### `chartItemCategoryId`
|
|
1081
|
-
|
|
1082
|
-
The ID of the item whose category is `category`, as a radial bar or rose series gives an item without a `keyField`
|
|
1083
|
-
value. Use it in `hiddenItemIds`. Returns `undefined` for a number that isn't finite or a date that isn't valid,
|
|
1084
|
-
which can't identify an item.
|
|
1085
|
-
|
|
1086
|
-
```typescript
|
|
1087
|
-
function chartItemCategoryId(category: boolean | string): string;
|
|
1088
|
-
function chartItemCategoryId(category: ChartItemKey): string | undefined;
|
|
1089
|
-
```
|
|
1090
|
-
|
|
1091
|
-
### `chartItemIndexId`
|
|
1092
|
-
|
|
1093
|
-
The ID of the item in row `index`, as a funnel stage, waterfall step, or radial bar or rose item gets it when it has
|
|
1094
|
-
no `keyField` value (and, for a radial series, no category). It follows the position, not the row.
|
|
1095
|
-
|
|
1096
|
-
```typescript
|
|
1097
|
-
function chartItemIndexId(index: number): string;
|
|
1098
|
-
```
|
|
1099
|
-
|
|
1100
|
-
### `chartItemKeyId`
|
|
1101
|
-
|
|
1102
|
-
The ID of the item whose `keyField` value is `key`, as funnel stages, treemap nodes, waterfall steps and radial bar
|
|
1103
|
-
and rose items use it. Use it in `hiddenStageIds`, `hiddenNodeIds` or `hiddenItemIds`, or to compare with an ID an
|
|
1104
|
-
event gives. Returns `undefined` for a number that isn't finite or a date that isn't valid, which can't be a key.
|
|
1105
|
-
|
|
1106
|
-
```typescript
|
|
1107
|
-
function chartItemKeyId(key: boolean | string): string;
|
|
1108
|
-
function chartItemKeyId(key: ChartItemKey): string | undefined;
|
|
1109
|
-
```
|
|
1110
|
-
|
|
1111
|
-
### `getChartSeriesFamily`
|
|
1112
|
-
|
|
1113
|
-
```typescript
|
|
1114
|
-
function getChartSeriesFamily(type: ChartSeriesType): ChartSeriesFamily;
|
|
1115
|
-
```
|
|
1116
|
-
|
|
1117
|
-
### `isCartesianCoordinateFamily`
|
|
1118
|
-
|
|
1119
|
-
```typescript
|
|
1120
|
-
function isCartesianCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
1121
|
-
```
|
|
1122
|
-
|
|
1123
|
-
### `isHierarchicalCoordinateFamily`
|
|
1124
|
-
|
|
1125
|
-
```typescript
|
|
1126
|
-
function isHierarchicalCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
1127
|
-
```
|
|
1128
|
-
|
|
1129
|
-
### `isPolarCoordinateFamily`
|
|
1130
|
-
|
|
1131
|
-
```typescript
|
|
1132
|
-
function isPolarCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
1133
|
-
```
|
|
586
|
+
| [`ChartComponent`](api/chart.md#chartcomponent) | Component | Root visualization container coordinating coordinate layouts, canvas rendering, theme styles, and interactions. |
|
|
587
|
+
| [`ChartXAxisComponent`](api/chart.md#chartxaxiscomponent) | Component | Configures an X axis in Cartesian charts. |
|
|
588
|
+
| [`ChartYAxisComponent`](api/chart.md#chartyaxiscomponent) | Component | Configures a Y axis in Cartesian charts. |
|
|
589
|
+
| [`ChartAnnotationComponent`](api/chart.md#chartannotationcomponent) | Component | Renders callouts, milestone badges, and outlier markers anchored to specific (X, Y) coordinates. |
|
|
590
|
+
| [`ChartCrosshairComponent`](api/chart.md#chartcrosshaircomponent) | Component | Renders dynamic crosshair guide lines and axis label badges for pointer and keyboard navigation in Cartesian XY charts. |
|
|
591
|
+
| [`ChartReferenceBandComponent`](api/chart.md#chartreferencebandcomponent) | Component | Renders highlighted threshold intervals and target regions in Cartesian XY charts. |
|
|
592
|
+
| [`ChartBrushComponent`](api/chart.md#chartbrushcomponent) | Component | Selects a region of a Cartesian plot by dragging, or from the keyboard with `Shift` + arrows from a focused point. |
|
|
593
|
+
| [`ChartReferenceLineComponent`](api/chart.md#chartreferencelinecomponent) | Component | Renders static horizontal or vertical benchmark lines in Cartesian XY charts. |
|
|
594
|
+
| [`ChartSelectionComponent`](api/chart.md#chartselectioncomponent) | Component | Lets users select marks with the pointer and keyboard, and holds the selected mark IDs. |
|
|
595
|
+
| [`ChartLegendComponent`](api/chart.md#chartlegendcomponent) | Component | Adds a legend. |
|
|
596
|
+
| [`ChartTooltipComponent`](api/chart.md#charttooltipcomponent) | Component | Adds a tooltip for pointer and keyboard interaction. |
|
|
597
|
+
| [`ChartAnnotationLabelTemplateDirective`](api/chart.md#chartannotationlabeltemplatedirective) | Directive | |
|
|
598
|
+
| [`ChartAxisLabelTemplateDirective`](api/chart.md#chartaxislabeltemplatedirective) | Directive | |
|
|
599
|
+
| [`ChartCrosshairLabelTemplateDirective`](api/chart.md#chartcrosshairlabeltemplatedirective) | Directive | |
|
|
600
|
+
| [`ChartDataLabelTemplateDirective`](api/chart.md#chartdatalabeltemplatedirective) | Directive | |
|
|
601
|
+
| [`ChartLegendItemTemplateDirective`](api/chart.md#chartlegenditemtemplatedirective) | Directive | |
|
|
602
|
+
| [`ChartNoDataTemplateDirective`](api/chart.md#chartnodatatemplatedirective) | Directive | |
|
|
603
|
+
| [`ChartReferenceLabelTemplateDirective`](api/chart.md#chartreferencelabeltemplatedirective) | Directive | |
|
|
604
|
+
| [`ChartSubtitleTemplateDirective`](api/chart.md#chartsubtitletemplatedirective) | Directive | |
|
|
605
|
+
| [`ChartTitleTemplateDirective`](api/chart.md#charttitletemplatedirective) | Directive | |
|
|
606
|
+
| [`ChartTooltipTemplateDirective`](api/chart.md#charttooltiptemplatedirective) | Directive | |
|
|
607
|
+
| [`ChartExportError`](api/chart.md#chartexporterror) | Class | Error thrown when a chart export operation fails. |
|
|
608
|
+
| [`chartItemCategoryId`](api/chart.md#chartitemcategoryid) | Function | The ID of the item whose category is `category`, as a radial bar or rose series gives an item without a `keyField` value. |
|
|
609
|
+
| [`chartItemIndexId`](api/chart.md#chartitemindexid) | Function | The ID of the item in row `index`, as a funnel stage, waterfall step, or radial bar or rose item gets it when it has no `keyField` value (and, for a radial series, no category). |
|
|
610
|
+
| [`chartItemKeyId`](api/chart.md#chartitemkeyid) | Function | The ID of the item whose `keyField` value is `key`, as funnel stages, treemap nodes, waterfall steps and radial bar and rose items use it. |
|
|
611
|
+
| [`getChartSeriesFamily`](api/chart.md#getchartseriesfamily) | Function | |
|
|
612
|
+
| [`isCartesianCoordinateFamily`](api/chart.md#iscartesiancoordinatefamily) | Function | |
|
|
613
|
+
| [`isHierarchicalCoordinateFamily`](api/chart.md#ishierarchicalcoordinatefamily) | Function | |
|
|
614
|
+
| [`isPolarCoordinateFamily`](api/chart.md#ispolarcoordinatefamily) | Function | |
|
|
1134
615
|
|
|
1135
616
|
### Types
|
|
1136
617
|
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
```typescript
|
|
1140
|
-
const CHART_DEFAULT_MESSAGES: MonaChartMessages;
|
|
1141
|
-
```
|
|
1142
|
-
|
|
1143
|
-
#### `ChartAnimationOptions`
|
|
1144
|
-
|
|
1145
|
-
| Name | Type |
|
|
1146
|
-
| --- | --- |
|
|
1147
|
-
| `data?` (read-only) | `boolean` |
|
|
1148
|
-
| `duration?` (read-only) | `number` |
|
|
1149
|
-
| `easing?` (read-only) | `ChartAnimationEasing` |
|
|
1150
|
-
| `enabled?` (read-only) | `boolean` |
|
|
1151
|
-
| `initial?` (read-only) | `boolean` |
|
|
1152
|
-
| `visibility?` (read-only) | `boolean` |
|
|
1153
|
-
|
|
1154
|
-
#### `ChartAnnotationLabelTemplateContext`
|
|
1155
|
-
|
|
1156
|
-
**Type parameters:** `TData = unknown`
|
|
1157
|
-
|
|
1158
|
-
| Name | Type |
|
|
1159
|
-
| --- | --- |
|
|
1160
|
-
| `$implicit` (read-only) | `TData` |
|
|
1161
|
-
| `data` (read-only) | `TData` |
|
|
1162
|
-
| `formattedX` (read-only) | `string` |
|
|
1163
|
-
| `formattedY` (read-only) | `string` |
|
|
1164
|
-
| `point` (read-only) | `ChartPoint` |
|
|
1165
|
-
| `x` (read-only) | `ChartAnnotationAxisValue` |
|
|
1166
|
-
| `xAxisId` (read-only) | `string` |
|
|
1167
|
-
| `y` (read-only) | `ChartAnnotationAxisValue` |
|
|
1168
|
-
| `yAxisId` (read-only) | `string` |
|
|
1169
|
-
|
|
1170
|
-
#### `ChartAxisLabelTemplateContext`
|
|
1171
|
-
|
|
1172
|
-
**Type parameters:** `T = unknown`
|
|
1173
|
-
|
|
1174
|
-
| Name | Type |
|
|
1175
|
-
| --- | --- |
|
|
1176
|
-
| `$implicit` | `T` |
|
|
1177
|
-
| `axis` | `"angular" \| "radial" \| "x" \| "y"` |
|
|
1178
|
-
| `axisId?` | `string` |
|
|
1179
|
-
| `index` | `number` |
|
|
1180
|
-
| `position?` | `ChartAxisPosition` |
|
|
1181
|
-
| `scaleType?` | `ChartXAxisType \| string` |
|
|
1182
|
-
| `value` | `T` |
|
|
1183
|
-
|
|
1184
|
-
#### `ChartAxisTick`
|
|
1185
|
-
|
|
1186
|
-
**Type parameters:** `T = unknown`
|
|
1187
|
-
|
|
1188
|
-
| Name | Type |
|
|
1189
|
-
| --- | --- |
|
|
1190
|
-
| `coordinate` | `number` |
|
|
1191
|
-
| `formattedValue` | `string` |
|
|
1192
|
-
| `index` | `number` |
|
|
1193
|
-
| `value` | `T` |
|
|
1194
|
-
|
|
1195
|
-
#### `ChartBrushCategoryRange`
|
|
1196
|
-
|
|
1197
|
-
| Name | Type |
|
|
1198
|
-
| --- | --- |
|
|
1199
|
-
| `axis` (read-only) | `"x" \| "y"` |
|
|
1200
|
-
| `axisId` (read-only) | `string` |
|
|
1201
|
-
| `fromIndex` (read-only) | `number` |
|
|
1202
|
-
| `fromValue` (read-only) | `unknown` |
|
|
1203
|
-
| `kind` (read-only) | `"category"` |
|
|
1204
|
-
| `toIndex` (read-only) | `number` |
|
|
1205
|
-
| `toValue` (read-only) | `unknown` |
|
|
1206
|
-
|
|
1207
|
-
#### `ChartBrushChangeEvent`
|
|
1208
|
-
|
|
1209
|
-
**Type parameters:** `T = unknown`
|
|
1210
|
-
|
|
1211
|
-
| Name | Type |
|
|
1212
|
-
| --- | --- |
|
|
1213
|
-
| `cancelReason?` (read-only) | `ChartBrushCancelReason` |
|
|
1214
|
-
| `matchedMarkIds?` (read-only) | `readonly string[]` |
|
|
1215
|
-
| `matchedPoints?` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
1216
|
-
| `mode` (read-only) | `ChartBrushMode` |
|
|
1217
|
-
| `phase` (read-only) | `ChartBrushPhase` |
|
|
1218
|
-
| `pixelBounds` (read-only) | `ChartRect \| null` |
|
|
1219
|
-
| `xRange?` (read-only) | `ChartBrushAxisRange` |
|
|
1220
|
-
| `yRange?` (read-only) | `ChartBrushAxisRange` |
|
|
1221
|
-
|
|
1222
|
-
#### `ChartBrushContinuousRange`
|
|
1223
|
-
|
|
1224
|
-
| Name | Type |
|
|
1225
|
-
| --- | --- |
|
|
1226
|
-
| `axis` (read-only) | `"x" \| "y"` |
|
|
1227
|
-
| `axisId` (read-only) | `string` |
|
|
1228
|
-
| `from` (read-only) | `number \| Date` |
|
|
1229
|
-
| `kind` (read-only) | `"continuous"` |
|
|
1230
|
-
| `scaleType` (read-only) | `"linear" \| "log" \| "pow" \| "sqrt" \| "symlog" \| "time" \| "utc"` |
|
|
1231
|
-
| `to` (read-only) | `number \| Date` |
|
|
1232
|
-
|
|
1233
|
-
#### `ChartCategoryViewportWindow`
|
|
1234
|
-
|
|
1235
|
-
**Extends:** `ChartViewportAxisRef`
|
|
1236
|
-
|
|
1237
|
-
| Name | Type |
|
|
1238
|
-
| --- | --- |
|
|
1239
|
-
| `endIndexExclusive` (read-only) | `number` |
|
|
1240
|
-
| `kind` (read-only) | `"category"` |
|
|
1241
|
-
| `startIndex` (read-only) | `number` |
|
|
1242
|
-
|
|
1243
|
-
#### `ChartContinuousViewportWindow`
|
|
1244
|
-
|
|
1245
|
-
**Extends:** `ChartViewportAxisRef`
|
|
1246
|
-
|
|
1247
|
-
| Name | Type |
|
|
1248
|
-
| --- | --- |
|
|
1249
|
-
| `kind` (read-only) | `"continuous"` |
|
|
1250
|
-
| `max` (read-only) | `Date \| number` |
|
|
1251
|
-
| `min` (read-only) | `Date \| number` |
|
|
1252
|
-
|
|
1253
|
-
#### `ChartCrosshairAxisLabelContext`
|
|
1254
|
-
|
|
1255
|
-
**Type parameters:** `T = unknown`
|
|
1256
|
-
|
|
1257
|
-
| Name | Type |
|
|
1258
|
-
| --- | --- |
|
|
1259
|
-
| `$implicit` (read-only) | `T` |
|
|
1260
|
-
| `axis` (read-only) | `"x" \| "y"` |
|
|
1261
|
-
| `axisId` (read-only) | `string` |
|
|
1262
|
-
| `coordinate` (read-only) | `number` |
|
|
1263
|
-
| `formattedValue` (read-only) | `string` |
|
|
1264
|
-
| `snapped` (read-only) | `boolean` |
|
|
1265
|
-
| `source` (read-only) | `"keyboard" \| "pointer" \| "sync"` |
|
|
1266
|
-
| `value` (read-only) | `T` |
|
|
1267
|
-
|
|
1268
|
-
#### `ChartCrosshairResolvedAxisValue`
|
|
1269
|
-
|
|
1270
|
-
**Type parameters:** `T = unknown`
|
|
1271
|
-
|
|
1272
|
-
| Name | Type |
|
|
1273
|
-
| --- | --- |
|
|
1274
|
-
| `axis` (read-only) | `"x" \| "y"` |
|
|
1275
|
-
| `axisId` (read-only) | `string` |
|
|
1276
|
-
| `coordinate` (read-only) | `number` |
|
|
1277
|
-
| `formattedValue` (read-only) | `string` |
|
|
1278
|
-
| `value` (read-only) | `T` |
|
|
1279
|
-
|
|
1280
|
-
#### `ChartCrosshairSynchronizationOptions`
|
|
1281
|
-
|
|
1282
|
-
| Name | Type |
|
|
1283
|
-
| --- | --- |
|
|
1284
|
-
| `axes?` (read-only) | `"auto" \| "x" \| "xy" \| "y"` |
|
|
1285
|
-
| `clearOnLeave?` (read-only) | `boolean` |
|
|
1286
|
-
| `enabled?` (read-only) | `boolean` |
|
|
1287
|
-
| `match?` (read-only) | `"axis-value" \| "nearest-point"` |
|
|
1288
|
-
| `mode?` (read-only) | `ChartSynchronizationMode` |
|
|
1289
|
-
| `showTooltip?` (read-only) | `boolean` |
|
|
1290
|
-
|
|
1291
|
-
#### `ChartDataLabelContext`
|
|
1292
|
-
|
|
1293
|
-
**Type parameters:** `T = unknown`
|
|
1294
|
-
|
|
1295
|
-
| Name | Type | Description |
|
|
1296
|
-
| --- | --- | --- |
|
|
1297
|
-
| `$implicit` (read-only) | `ChartDataLabelContext<T>` | The same context object, so `let-context` in the template receives every field below. |
|
|
1298
|
-
| `close?` (read-only) | `number` | The closing price of a candlestick or OHLC mark. |
|
|
1299
|
-
| `color` (read-only) | `string` | The color of the mark the label belongs to. Falls back to the series color, then to black. |
|
|
1300
|
-
| `dataIndex` (read-only) | `number` | The index of the data item in the series data. |
|
|
1301
|
-
| `datum` (read-only) | `T` | The data item the mark was drawn from. |
|
|
1302
|
-
| `formattedClose?` (read-only) | `string` | The closing price of a candlestick or OHLC mark, formatted for display. |
|
|
1303
|
-
| `formattedFrom?` (read-only) | `string` | The start value of a range bar or range area mark, formatted for display. |
|
|
1304
|
-
| `formattedHigh?` (read-only) | `string` | The high price of a candlestick or OHLC mark, formatted for display. |
|
|
1305
|
-
| `formattedLow?` (read-only) | `string` | The low price of a candlestick or OHLC mark, formatted for display. |
|
|
1306
|
-
| `formattedOpen?` (read-only) | `string` | The opening price of a candlestick or OHLC mark, formatted for display. |
|
|
1307
|
-
| `formattedSize?` (read-only) | `string` | The size value of a bubble mark, formatted for display. |
|
|
1308
|
-
| `formattedStackPercentage?` (read-only) | `string` | The mark's share of its stack total, formatted for display. The default label text for percent-stacked bar and area series. |
|
|
1309
|
-
| `formattedStackTotal?` (read-only) | `string` | The total of the stack the mark belongs to, formatted for display. |
|
|
1310
|
-
| `formattedTo?` (read-only) | `string` | The end value of a range bar or range area mark, formatted for display. |
|
|
1311
|
-
| `formattedValue` (read-only) | `string` | The value text the chart shows for the mark. For range marks it joins the start and end values; for horizontal bars it is the formatted x value. |
|
|
1312
|
-
| `formattedX` (read-only) | `string` | The x value of the mark, formatted for display. Empty when the mark has no x value. |
|
|
1313
|
-
| `formattedY` (read-only) | `string` | The y value of the mark, formatted for display. Empty when the mark has no y value. |
|
|
1314
|
-
| `fromValue?` (read-only) | `number` | The start value of a range bar or range area mark. |
|
|
1315
|
-
| `high?` (read-only) | `number` | The high price of a candlestick or OHLC mark. |
|
|
1316
|
-
| `low?` (read-only) | `number` | The low price of a candlestick or OHLC mark. |
|
|
1317
|
-
| `markId` (read-only) | `string` | A stable identifier of the mark within the chart, the same one selection events report. |
|
|
1318
|
-
| `open?` (read-only) | `number` | The opening price of a candlestick or OHLC mark. |
|
|
1319
|
-
| `rawValue?` (read-only) | `unknown` | The value read from the data item before stacking or other processing, when the series provides one. |
|
|
1320
|
-
| `selected` (read-only) | `boolean` | Persistent selection state for this mark. |
|
|
1321
|
-
| `seriesId` (read-only) | `string` | The identifier of the series the mark belongs to. |
|
|
1322
|
-
| `seriesName` (read-only) | `string` | The display name of the series the mark belongs to. |
|
|
1323
|
-
| `seriesType` (read-only) | `ChartSeriesType` | The type of the series the mark belongs to, such as `"bar"` or `"line"`. |
|
|
1324
|
-
| `sizeValue?` (read-only) | `number` | The size value of a bubble mark. |
|
|
1325
|
-
| `stackEnd?` (read-only) | `number` | The value where the mark ends on its stack. |
|
|
1326
|
-
| `stackMode?` (read-only) | `ChartStackMode` | The stacking mode of the series, when the series is stacked. |
|
|
1327
|
-
| `stackPercentage?` (read-only) | `number` | The mark's share of its stack total, as a percentage. |
|
|
1328
|
-
| `stackStart?` (read-only) | `number` | The value where the mark starts on its stack. |
|
|
1329
|
-
| `stackTotal?` (read-only) | `number` | The total of the stack the mark belongs to. |
|
|
1330
|
-
| `toValue?` (read-only) | `number` | The end value of a range bar or range area mark. |
|
|
1331
|
-
| `value?` (read-only) | `unknown` | The value of the mark. A `[from, to]` pair for range marks, the aggregate value for hierarchical marks, and the y value otherwise. |
|
|
1332
|
-
| `xValue?` (read-only) | `unknown` | The x value of the mark. |
|
|
1333
|
-
| `yValue?` (read-only) | `unknown` | The y value of the mark. |
|
|
1334
|
-
|
|
1335
|
-
#### `ChartDataLabelOptions`
|
|
1336
|
-
|
|
1337
|
-
| Name | Type | Description |
|
|
1338
|
-
| --- | --- | --- |
|
|
1339
|
-
| `allowOverlap?` | `boolean` | Whether labels may overlap other generic data labels. Default: false |
|
|
1340
|
-
| `collisionPadding?` | `number` | Collision padding around the label bounds. Default: 2 |
|
|
1341
|
-
| `color?` | `string` | Optional text color override. |
|
|
1342
|
-
| `formatter?` | `ChartDataLabelFormatter` | Optional semantic formatter. Returning null/undefined/"" suppresses that label. |
|
|
1343
|
-
| `maxLabels?` | `number` | Maximum accepted labels for this series. Default: 200 |
|
|
1344
|
-
| `offset?` | `number` | Distance in CSS pixels between the mark anchor and label. Default: 6 |
|
|
1345
|
-
| `overflow?` | `"clip" \| "hide"` | Plot-boundary behavior. Default: "hide" |
|
|
1346
|
-
| `position?` | `ChartDataLabelPosition` | Placement strategy. Default: "auto" |
|
|
1347
|
-
|
|
1348
|
-
#### `ChartDownsamplingOptions`
|
|
1349
|
-
|
|
1350
|
-
| Name | Type |
|
|
1351
|
-
| --- | --- |
|
|
1352
|
-
| `algorithm?` (read-only) | `ChartDownsamplingAlgorithm` |
|
|
1353
|
-
| `enabled?` (read-only) | `boolean` |
|
|
1354
|
-
| `maxPoints?` (read-only) | `number` |
|
|
1355
|
-
| `samplesPerPixel?` (read-only) | `number` |
|
|
1356
|
-
| `threshold?` (read-only) | `number` |
|
|
1357
|
-
|
|
1358
|
-
#### `ChartExportBaseOptions`
|
|
1359
|
-
|
|
1360
|
-
Shared base options for all chart export formats.
|
|
1361
|
-
|
|
1362
|
-
| Name | Type | Description |
|
|
1363
|
-
| --- | --- | --- |
|
|
1364
|
-
| `background?` (read-only) | `ChartExportBackground` | Background color policy or explicit CSS color. Default: "auto". |
|
|
1365
|
-
| `height?` (read-only) | `number` | Optional logical output height in CSS pixels. When omitted, the current chart aspect ratio or source height is preserved. |
|
|
1366
|
-
| `presentation?` (read-only) | `ChartExportPresentationOptions` | Optional presentation options controlling selection, crosshair, and brush inclusion. |
|
|
1367
|
-
| `signal?` (read-only) | `AbortSignal` | Optional AbortSignal for aborting the export operation. |
|
|
1368
|
-
| `width?` (read-only) | `number` | Optional logical output width in CSS pixels. When omitted, the current chart width is preserved. |
|
|
1369
|
-
|
|
1370
|
-
#### `ChartExportPresentationOptions`
|
|
1371
|
-
|
|
1372
|
-
Options controlling which interactive/presentation elements are included in the export.
|
|
1373
|
-
|
|
1374
|
-
| Name | Type | Description |
|
|
1375
|
-
| --- | --- | --- |
|
|
1376
|
-
| `brush?` (read-only) | `boolean` | Whether to include active brush marquee overlay. Default: false. |
|
|
1377
|
-
| `crosshair?` (read-only) | `boolean` | Whether to include active crosshair overlay and axis badges. Default: false. |
|
|
1378
|
-
| `selection?` (read-only) | `boolean` | Whether to include persistent mark selection visuals. Default: true. |
|
|
1379
|
-
|
|
1380
|
-
#### `ChartExportResult`
|
|
1381
|
-
|
|
1382
|
-
Result of a chart export operation.
|
|
1383
|
-
|
|
1384
|
-
| Name | Type | Description |
|
|
1385
|
-
| --- | --- | --- |
|
|
1386
|
-
| `blob` (read-only) | `Blob` | The generated binary Blob containing the exported chart. |
|
|
1387
|
-
| `format` (read-only) | `ChartExportFormat` | The export format that was produced. |
|
|
1388
|
-
| `height` (read-only) | `number` | The logical output height in CSS pixels. |
|
|
1389
|
-
| `mimeType` (read-only) | `string` | The MIME type of the exported blob (e.g. "image/png", "image/svg+xml", "application/pdf"). |
|
|
1390
|
-
| `width` (read-only) | `number` | The logical output width in CSS pixels. |
|
|
1391
|
-
|
|
1392
|
-
#### `ChartLabelMeasurement`
|
|
1393
|
-
|
|
1394
|
-
| Name | Type |
|
|
1395
|
-
| --- | --- |
|
|
1396
|
-
| `height` | `number` |
|
|
1397
|
-
| `width` | `number` |
|
|
1398
|
-
|
|
1399
|
-
#### `ChartLegendItem`
|
|
1400
|
-
|
|
1401
|
-
| Name | Type |
|
|
1402
|
-
| --- | --- |
|
|
1403
|
-
| `color` (read-only) | `string` |
|
|
1404
|
-
| `dataIndex?` (read-only) | `number` |
|
|
1405
|
-
| `datum?` (read-only) | `unknown` |
|
|
1406
|
-
| `interactive?` (read-only) | `boolean` |
|
|
1407
|
-
| `itemId` (read-only) | `string` |
|
|
1408
|
-
| `kind?` (read-only) | `ChartLegendItemKind` |
|
|
1409
|
-
| `name` (read-only) | `string` |
|
|
1410
|
-
| `percentage?` (read-only) | `number` |
|
|
1411
|
-
| `secondaryColor?` (read-only) | `string` |
|
|
1412
|
-
| `seriesId` (read-only) | `string` |
|
|
1413
|
-
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
1414
|
-
| `value?` (read-only) | `number` |
|
|
1415
|
-
| `visible` (read-only) | `boolean` |
|
|
1416
|
-
|
|
1417
|
-
#### `ChartLegendItemTemplateContext`
|
|
1418
|
-
|
|
1419
|
-
| Name | Type |
|
|
1420
|
-
| --- | --- |
|
|
1421
|
-
| `$implicit` | `ChartLegendItem` |
|
|
1422
|
-
| `color` | `string` |
|
|
1423
|
-
| `dataIndex?` | `number` |
|
|
1424
|
-
| `datum?` | `unknown` |
|
|
1425
|
-
| `interactive?` | `boolean` |
|
|
1426
|
-
| `itemId` | `string` |
|
|
1427
|
-
| `kind?` | `ChartLegendItemKind` |
|
|
1428
|
-
| `name` | `string` |
|
|
1429
|
-
| `percentage?` | `number` |
|
|
1430
|
-
| `secondaryColor?` | `string` |
|
|
1431
|
-
| `series` | `ChartLegendItem` |
|
|
1432
|
-
| `seriesId` | `string` |
|
|
1433
|
-
| `seriesType` | `ChartSeriesType` |
|
|
1434
|
-
| `value?` | `number` |
|
|
1435
|
-
| `visible` | `boolean` |
|
|
1436
|
-
|
|
1437
|
-
#### `ChartNavigationOptions`
|
|
1438
|
-
|
|
1439
|
-
| Name | Type |
|
|
1440
|
-
| --- | --- |
|
|
1441
|
-
| `clampToData?` (read-only) | `boolean` |
|
|
1442
|
-
| `constraints?` (read-only) | `readonly ChartViewportConstraint[]` |
|
|
1443
|
-
| `dragPan?` (read-only) | `boolean` |
|
|
1444
|
-
| `keyboard?` (read-only) | `boolean` |
|
|
1445
|
-
| `keyboardPanRatio?` (read-only) | `number` |
|
|
1446
|
-
| `keyboardZoomFactor?` (read-only) | `number` |
|
|
1447
|
-
| `linkGroups?` (read-only) | `readonly ChartViewportLinkGroup[]` |
|
|
1448
|
-
| `minVisibleCategories?` (read-only) | `number` |
|
|
1449
|
-
| `pan?` (read-only) | `boolean` |
|
|
1450
|
-
| `panAxes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
1451
|
-
| `pinchZoom?` (read-only) | `boolean` |
|
|
1452
|
-
| `wheelSensitivity?` (read-only) | `number` |
|
|
1453
|
-
| `wheelZoom?` (read-only) | `boolean` |
|
|
1454
|
-
| `zoom?` (read-only) | `boolean` |
|
|
1455
|
-
| `zoomAxes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
1456
|
-
|
|
1457
|
-
#### `ChartPadding`
|
|
1458
|
-
|
|
1459
|
-
| Name | Type |
|
|
1460
|
-
| --- | --- |
|
|
1461
|
-
| `bottom` | `number` |
|
|
1462
|
-
| `left` | `number` |
|
|
1463
|
-
| `right` | `number` |
|
|
1464
|
-
| `top` | `number` |
|
|
1465
|
-
|
|
1466
|
-
#### `ChartPdfExportOptions`
|
|
1467
|
-
|
|
1468
|
-
Options for exporting a chart as a PDF document.
|
|
1469
|
-
|
|
1470
|
-
**Extends:** `ChartExportBaseOptions`
|
|
1471
|
-
|
|
1472
|
-
| Name | Type | Description |
|
|
1473
|
-
| --- | --- | --- |
|
|
1474
|
-
| `format` (read-only) | `"pdf"` | Selects export as a PDF document. |
|
|
1475
|
-
| `mode?` (read-only) | `ChartPdfRenderMode` | PDF rendering mode ("auto", "vector", or "raster"). Default: "auto". |
|
|
1476
|
-
| `page?` (read-only) | `ChartPdfPageOptions` | PDF page configuration. |
|
|
1477
|
-
|
|
1478
|
-
#### `ChartPdfMargins`
|
|
1479
|
-
|
|
1480
|
-
PDF page margins in PDF points (72 points = 1 inch).
|
|
1481
|
-
|
|
1482
|
-
| Name | Type |
|
|
1483
|
-
| --- | --- |
|
|
1484
|
-
| `bottom?` (read-only) | `number` |
|
|
1485
|
-
| `left?` (read-only) | `number` |
|
|
1486
|
-
| `right?` (read-only) | `number` |
|
|
1487
|
-
| `top?` (read-only) | `number` |
|
|
1488
|
-
|
|
1489
|
-
#### `ChartPdfPageOptions`
|
|
1490
|
-
|
|
1491
|
-
Page layout options for PDF export.
|
|
1492
|
-
|
|
1493
|
-
| Name | Type | Description |
|
|
1494
|
-
| --- | --- | --- |
|
|
1495
|
-
| `margin?` (read-only) | `number \| ChartPdfMargins` | Page margins in PDF points. Default: 0 for "chart" page size, 24 for standard pages if not specified. |
|
|
1496
|
-
| `orientation?` (read-only) | `"auto" \| "portrait" \| "landscape"` | Page orientation. Default: "auto" (derived from the chart aspect ratio). |
|
|
1497
|
-
| `size?` (read-only) | `ChartPdfPageSize` | Target page size. Default: "chart". |
|
|
1498
|
-
|
|
1499
|
-
#### `ChartPngExportOptions`
|
|
1500
|
-
|
|
1501
|
-
Options for exporting a chart as a PNG raster image.
|
|
1502
|
-
|
|
1503
|
-
**Extends:** `ChartExportBaseOptions`
|
|
1504
|
-
|
|
1505
|
-
| Name | Type | Description |
|
|
1506
|
-
| --- | --- | --- |
|
|
1507
|
-
| `format` (read-only) | `"png"` | Selects export as a PNG image. |
|
|
1508
|
-
| `pixelRatio?` (read-only) | `number` | Raster scaling ratio relative to logical CSS pixels. Default: 2. |
|
|
1509
|
-
|
|
1510
|
-
#### `ChartPoint`
|
|
1511
|
-
|
|
1512
|
-
| Name | Type |
|
|
1513
|
-
| --- | --- |
|
|
1514
|
-
| `x` | `number` |
|
|
1515
|
-
| `y` | `number` |
|
|
1516
|
-
|
|
1517
|
-
#### `ChartPointEvent`
|
|
1518
|
-
|
|
1519
|
-
**Type parameters:** `T = unknown`
|
|
1520
|
-
|
|
1521
|
-
| Name | Type |
|
|
1522
|
-
| --- | --- |
|
|
1523
|
-
| `category?` (read-only) | `unknown` |
|
|
1524
|
-
| `categoryX?` (read-only) | `string` |
|
|
1525
|
-
| `categoryY?` (read-only) | `string` |
|
|
1526
|
-
| `change?` (read-only) | `number` |
|
|
1527
|
-
| `changePercentage?` (read-only) | `number` |
|
|
1528
|
-
| `close?` (read-only) | `number` |
|
|
1529
|
-
| `dataIndex` (read-only) | `number` |
|
|
1530
|
-
| `datum` (read-only) | `T` |
|
|
1531
|
-
| `financial?` (read-only) | `ChartOhlcPointValue` |
|
|
1532
|
-
| `financialDirection?` (read-only) | `ChartFinancialDirection` |
|
|
1533
|
-
| `formattedChange?` (read-only) | `string` |
|
|
1534
|
-
| `formattedChangePercentage?` (read-only) | `string` |
|
|
1535
|
-
| `formattedClose?` (read-only) | `string` |
|
|
1536
|
-
| `formattedFrom?` (read-only) | `string` |
|
|
1537
|
-
| `formattedHigh?` (read-only) | `string` |
|
|
1538
|
-
| `formattedLow?` (read-only) | `string` |
|
|
1539
|
-
| `formattedOpen?` (read-only) | `string` |
|
|
1540
|
-
| `formattedTo?` (read-only) | `string` |
|
|
1541
|
-
| `formattedXValue?` (read-only) | `string` |
|
|
1542
|
-
| `formattedYCategory?` (read-only) | `string` |
|
|
1543
|
-
| `fromValue?` (read-only) | `number` |
|
|
1544
|
-
| `funnel?` (read-only) | `ChartFunnelPointMetadata` |
|
|
1545
|
-
| `hierarchy?` (read-only) | `ChartHierarchyPointMetadata` |
|
|
1546
|
-
| `high?` (read-only) | `number` |
|
|
1547
|
-
| `low?` (read-only) | `number` |
|
|
1548
|
-
| `markId?` (read-only) | `string` |
|
|
1549
|
-
| `open?` (read-only) | `number` |
|
|
1550
|
-
| `percentage?` (read-only) | `number` |
|
|
1551
|
-
| `rawValue?` (read-only) | `unknown` |
|
|
1552
|
-
| `seriesId` (read-only) | `string` |
|
|
1553
|
-
| `seriesName` (read-only) | `string` |
|
|
1554
|
-
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
1555
|
-
| `sizeValue?` (read-only) | `number` |
|
|
1556
|
-
| `sliceId?` (read-only) | `string` |
|
|
1557
|
-
| `stackEnd?` (read-only) | `number` |
|
|
1558
|
-
| `stackGroup?` (read-only) | `string` |
|
|
1559
|
-
| `stackMode?` (read-only) | `ChartStackMode` |
|
|
1560
|
-
| `stackPercentage?` (read-only) | `number` |
|
|
1561
|
-
| `stackPosition?` (read-only) | `"inner" \| "outer" \| "single"` |
|
|
1562
|
-
| `stackStart?` (read-only) | `number` |
|
|
1563
|
-
| `stackTotal?` (read-only) | `number` |
|
|
1564
|
-
| `toValue?` (read-only) | `number` |
|
|
1565
|
-
| `value?` (read-only) | `unknown` |
|
|
1566
|
-
| `valueKind?` (read-only) | `ChartPointValueKind` |
|
|
1567
|
-
| `waterfall?` (read-only) | `ChartWaterfallPointValue` |
|
|
1568
|
-
| `xAxisId?` (read-only) | `string` |
|
|
1569
|
-
| `xAxisTitle?` (read-only) | `string` |
|
|
1570
|
-
| `xValue` (read-only) | `unknown` |
|
|
1571
|
-
| `yAxisId?` (read-only) | `string` |
|
|
1572
|
-
| `yAxisTitle?` (read-only) | `string` |
|
|
1573
|
-
| `yCategory?` (read-only) | `unknown` |
|
|
1574
|
-
| `yValue?` (read-only) | `number` |
|
|
1575
|
-
|
|
1576
|
-
#### `ChartPointFocusEvent`
|
|
1577
|
-
|
|
1578
|
-
**Type parameters:** `T = unknown`
|
|
1579
|
-
|
|
1580
|
-
| Name | Type |
|
|
1581
|
-
| --- | --- |
|
|
1582
|
-
| `category?` (read-only) | `unknown` |
|
|
1583
|
-
| `categoryX?` (read-only) | `string` |
|
|
1584
|
-
| `categoryY?` (read-only) | `string` |
|
|
1585
|
-
| `change?` (read-only) | `number` |
|
|
1586
|
-
| `changePercentage?` (read-only) | `number` |
|
|
1587
|
-
| `close?` (read-only) | `number` |
|
|
1588
|
-
| `dataIndex` (read-only) | `number` |
|
|
1589
|
-
| `datum` (read-only) | `T` |
|
|
1590
|
-
| `financial?` (read-only) | `ChartOhlcPointValue` |
|
|
1591
|
-
| `financialDirection?` (read-only) | `ChartFinancialDirection` |
|
|
1592
|
-
| `formattedChange?` (read-only) | `string` |
|
|
1593
|
-
| `formattedChangePercentage?` (read-only) | `string` |
|
|
1594
|
-
| `formattedClose?` (read-only) | `string` |
|
|
1595
|
-
| `formattedFrom?` (read-only) | `string` |
|
|
1596
|
-
| `formattedHigh?` (read-only) | `string` |
|
|
1597
|
-
| `formattedLow?` (read-only) | `string` |
|
|
1598
|
-
| `formattedOpen?` (read-only) | `string` |
|
|
1599
|
-
| `formattedTo?` (read-only) | `string` |
|
|
1600
|
-
| `formattedXValue?` (read-only) | `string` |
|
|
1601
|
-
| `formattedYCategory?` (read-only) | `string` |
|
|
1602
|
-
| `fromValue?` (read-only) | `number` |
|
|
1603
|
-
| `funnel?` (read-only) | `ChartFunnelPointMetadata` |
|
|
1604
|
-
| `hierarchy?` (read-only) | `ChartHierarchyPointMetadata` |
|
|
1605
|
-
| `high?` (read-only) | `number` |
|
|
1606
|
-
| `low?` (read-only) | `number` |
|
|
1607
|
-
| `markId?` (read-only) | `string` |
|
|
1608
|
-
| `open?` (read-only) | `number` |
|
|
1609
|
-
| `percentage?` (read-only) | `number` |
|
|
1610
|
-
| `rawValue?` (read-only) | `unknown` |
|
|
1611
|
-
| `seriesId` (read-only) | `string` |
|
|
1612
|
-
| `seriesName` (read-only) | `string` |
|
|
1613
|
-
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
1614
|
-
| `sizeValue?` (read-only) | `number` |
|
|
1615
|
-
| `sliceId?` (read-only) | `string` |
|
|
1616
|
-
| `stackEnd?` (read-only) | `number` |
|
|
1617
|
-
| `stackGroup?` (read-only) | `string` |
|
|
1618
|
-
| `stackMode?` (read-only) | `ChartStackMode` |
|
|
1619
|
-
| `stackPercentage?` (read-only) | `number` |
|
|
1620
|
-
| `stackPosition?` (read-only) | `"inner" \| "outer" \| "single"` |
|
|
1621
|
-
| `stackStart?` (read-only) | `number` |
|
|
1622
|
-
| `stackTotal?` (read-only) | `number` |
|
|
1623
|
-
| `toValue?` (read-only) | `number` |
|
|
1624
|
-
| `value?` (read-only) | `unknown` |
|
|
1625
|
-
| `valueKind?` (read-only) | `ChartPointValueKind` |
|
|
1626
|
-
| `waterfall?` (read-only) | `ChartWaterfallPointValue` |
|
|
1627
|
-
| `xAxisId?` (read-only) | `string` |
|
|
1628
|
-
| `xAxisTitle?` (read-only) | `string` |
|
|
1629
|
-
| `xValue` (read-only) | `unknown` |
|
|
1630
|
-
| `yAxisId?` (read-only) | `string` |
|
|
1631
|
-
| `yAxisTitle?` (read-only) | `string` |
|
|
1632
|
-
| `yCategory?` (read-only) | `unknown` |
|
|
1633
|
-
| `yValue?` (read-only) | `number` |
|
|
1634
|
-
|
|
1635
|
-
#### `ChartRangePointValue`
|
|
1636
|
-
|
|
1637
|
-
| Name | Type |
|
|
1638
|
-
| --- | --- |
|
|
1639
|
-
| `formattedFrom` (read-only) | `string` |
|
|
1640
|
-
| `formattedTo` (read-only) | `string` |
|
|
1641
|
-
| `fromValue` (read-only) | `number` |
|
|
1642
|
-
| `toValue` (read-only) | `number` |
|
|
1643
|
-
| `valueKind` (read-only) | `"range"` |
|
|
1644
|
-
|
|
1645
|
-
#### `ChartRect`
|
|
1646
|
-
|
|
1647
|
-
| Name | Type |
|
|
1648
|
-
| --- | --- |
|
|
1649
|
-
| `height` | `number` |
|
|
1650
|
-
| `width` | `number` |
|
|
1651
|
-
| `x` | `number` |
|
|
1652
|
-
| `y` | `number` |
|
|
1653
|
-
|
|
1654
|
-
#### `ChartReferenceBandLabelContext`
|
|
1655
|
-
|
|
1656
|
-
**Type parameters:** `TFrom extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`, `TTo extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`
|
|
1657
|
-
|
|
1658
|
-
| Name | Type |
|
|
1659
|
-
| --- | --- |
|
|
1660
|
-
| `$implicit` (read-only) | `{ readonly from: TFrom; readonly to: TTo }` |
|
|
1661
|
-
| `axis` (read-only) | `"x" \| "y"` |
|
|
1662
|
-
| `axisId` (read-only) | `string` |
|
|
1663
|
-
| `bounds` (read-only) | `ChartRect` |
|
|
1664
|
-
| `coordinate?` (read-only) | `undefined` |
|
|
1665
|
-
| `formattedFrom` (read-only) | `string` |
|
|
1666
|
-
| `formattedTo` (read-only) | `string` |
|
|
1667
|
-
| `formattedValue?` (read-only) | `undefined` |
|
|
1668
|
-
| `from` (read-only) | `TFrom` |
|
|
1669
|
-
| `kind` (read-only) | `"band"` |
|
|
1670
|
-
| `to` (read-only) | `TTo` |
|
|
1671
|
-
| `value?` (read-only) | `undefined` |
|
|
1672
|
-
|
|
1673
|
-
#### `ChartReferenceLineLabelContext`
|
|
1674
|
-
|
|
1675
|
-
**Type parameters:** `T extends ChartAnnotationAxisValue = ChartAnnotationAxisValue`
|
|
1676
|
-
|
|
1677
|
-
| Name | Type |
|
|
1678
|
-
| --- | --- |
|
|
1679
|
-
| `$implicit` (read-only) | `T` |
|
|
1680
|
-
| `axis` (read-only) | `"x" \| "y"` |
|
|
1681
|
-
| `axisId` (read-only) | `string` |
|
|
1682
|
-
| `bounds?` (read-only) | `undefined` |
|
|
1683
|
-
| `coordinate` (read-only) | `number` |
|
|
1684
|
-
| `formattedFrom?` (read-only) | `undefined` |
|
|
1685
|
-
| `formattedTo?` (read-only) | `undefined` |
|
|
1686
|
-
| `formattedValue` (read-only) | `string` |
|
|
1687
|
-
| `from?` (read-only) | `undefined` |
|
|
1688
|
-
| `kind` (read-only) | `"line"` |
|
|
1689
|
-
| `to?` (read-only) | `undefined` |
|
|
1690
|
-
| `value` (read-only) | `T` |
|
|
1691
|
-
|
|
1692
|
-
#### `ChartScalarPointValue`
|
|
1693
|
-
|
|
1694
|
-
| Name | Type |
|
|
1695
|
-
| --- | --- |
|
|
1696
|
-
| `valueKind` (read-only) | `"scalar"` |
|
|
1697
|
-
| `yValue` (read-only) | `number` |
|
|
1698
|
-
|
|
1699
|
-
#### `ChartSelectedPoint`
|
|
1700
|
-
|
|
1701
|
-
**Type parameters:** `T = unknown`
|
|
1702
|
-
|
|
1703
|
-
| Name | Type |
|
|
1704
|
-
| --- | --- |
|
|
1705
|
-
| `close?` (read-only) | `number` |
|
|
1706
|
-
| `dataIndex` (read-only) | `number` |
|
|
1707
|
-
| `datum` (read-only) | `T` |
|
|
1708
|
-
| `fromValue?` (read-only) | `number` |
|
|
1709
|
-
| `high?` (read-only) | `number` |
|
|
1710
|
-
| `low?` (read-only) | `number` |
|
|
1711
|
-
| `markId` (read-only) | `string` |
|
|
1712
|
-
| `open?` (read-only) | `number` |
|
|
1713
|
-
| `rawValue?` (read-only) | `unknown` |
|
|
1714
|
-
| `seriesId` (read-only) | `string` |
|
|
1715
|
-
| `seriesName` (read-only) | `string` |
|
|
1716
|
-
| `seriesType` (read-only) | `ChartSeriesType` |
|
|
1717
|
-
| `stackEnd?` (read-only) | `number` |
|
|
1718
|
-
| `stackPercentage?` (read-only) | `number` |
|
|
1719
|
-
| `stackStart?` (read-only) | `number` |
|
|
1720
|
-
| `toValue?` (read-only) | `number` |
|
|
1721
|
-
| `value?` (read-only) | `unknown` |
|
|
1722
|
-
| `xValue?` (read-only) | `unknown` |
|
|
1723
|
-
| `yValue?` (read-only) | `unknown` |
|
|
1724
|
-
|
|
1725
|
-
#### `ChartSelectionChangeEvent`
|
|
1726
|
-
|
|
1727
|
-
**Type parameters:** `T = unknown`
|
|
1728
|
-
|
|
1729
|
-
| Name | Type |
|
|
1730
|
-
| --- | --- |
|
|
1731
|
-
| `addedMarkIds` (read-only) | `readonly string[]` |
|
|
1732
|
-
| `changedPoints` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
1733
|
-
| `previousSelectedMarkIds` (read-only) | `readonly string[]` |
|
|
1734
|
-
| `removedMarkIds` (read-only) | `readonly string[]` |
|
|
1735
|
-
| `selectedMarkIds` (read-only) | `readonly string[]` |
|
|
1736
|
-
| `source` (read-only) | `ChartSelectionChangeSource` |
|
|
1737
|
-
| `visibleSelectedPoints` (read-only) | `readonly ChartSelectedPoint<T>[]` |
|
|
1738
|
-
|
|
1739
|
-
#### `ChartSeriesStyle`
|
|
1740
|
-
|
|
1741
|
-
| Name | Type |
|
|
1742
|
-
| --- | --- |
|
|
1743
|
-
| `areaFillColor` | `string` |
|
|
1744
|
-
| `areaFillOpacity` | `number` |
|
|
1745
|
-
| `color` | `string` |
|
|
1746
|
-
| `fillOpacity` | `number` |
|
|
1747
|
-
| `lineStyle?` | `ChartLineStyle` |
|
|
1748
|
-
| `lineWidth` | `number` |
|
|
1749
|
-
| `opacity` | `number` |
|
|
1750
|
-
| `pointRadius` | `number` |
|
|
1751
|
-
|
|
1752
|
-
#### `ChartSeriesVisibilityEvent`
|
|
1753
|
-
|
|
1754
|
-
| Name | Type |
|
|
1755
|
-
| --- | --- |
|
|
1756
|
-
| `seriesId` (read-only) | `string` |
|
|
1757
|
-
| `seriesName` (read-only) | `string` |
|
|
1758
|
-
| `visible` (read-only) | `boolean` |
|
|
1759
|
-
|
|
1760
|
-
#### `ChartSize`
|
|
1761
|
-
|
|
1762
|
-
| Name | Type |
|
|
1763
|
-
| --- | --- |
|
|
1764
|
-
| `height` | `number` |
|
|
1765
|
-
| `width` | `number` |
|
|
1766
|
-
|
|
1767
|
-
#### `ChartSubtitleTemplateContext`
|
|
1768
|
-
|
|
1769
|
-
| Name | Type |
|
|
1770
|
-
| --- | --- |
|
|
1771
|
-
| `$implicit` (read-only) | `string` |
|
|
1772
|
-
| `subtitle` (read-only) | `string` |
|
|
1773
|
-
|
|
1774
|
-
#### `ChartSvgExportOptions`
|
|
1775
|
-
|
|
1776
|
-
Options for exporting a chart as a standalone SVG vector document.
|
|
1777
|
-
|
|
1778
|
-
**Extends:** `ChartExportBaseOptions`
|
|
1779
|
-
|
|
1780
|
-
| Name | Type | Description |
|
|
1781
|
-
| --- | --- | --- |
|
|
1782
|
-
| `accessibility?` (read-only) | `boolean` | Whether to include accessibility metadata (<title>, <desc>, and ARIA attributes). Default: true. |
|
|
1783
|
-
| `format` (read-only) | `"svg"` | Selects export as a SVG document. |
|
|
1784
|
-
|
|
1785
|
-
#### `ChartSynchronizationAxisMapping`
|
|
1786
|
-
|
|
1787
|
-
| Name | Type |
|
|
1788
|
-
| --- | --- |
|
|
1789
|
-
| `source` (read-only) | `ChartViewportAxisRef` |
|
|
1790
|
-
| `target` (read-only) | `ChartViewportAxisRef` |
|
|
1791
|
-
|
|
1792
|
-
#### `ChartSynchronizationOptions`
|
|
1793
|
-
|
|
1794
|
-
| Name | Type |
|
|
1795
|
-
| --- | --- |
|
|
1796
|
-
| `axisMappings?` (read-only) | `readonly ChartSynchronizationAxisMapping[]` |
|
|
1797
|
-
| `crosshair?` (read-only) | `boolean \| ChartCrosshairSynchronizationOptions` |
|
|
1798
|
-
| `group` (read-only) | `string` |
|
|
1799
|
-
| `viewport?` (read-only) | `boolean \| ChartViewportSynchronizationOptions` |
|
|
1800
|
-
|
|
1801
|
-
#### `ChartTitleTemplateContext`
|
|
1802
|
-
|
|
1803
|
-
| Name | Type |
|
|
1804
|
-
| --- | --- |
|
|
1805
|
-
| `$implicit` (read-only) | `string` |
|
|
1806
|
-
| `title` (read-only) | `string` |
|
|
1807
|
-
|
|
1808
|
-
#### `ChartTooltipPointContext`
|
|
1809
|
-
|
|
1810
|
-
**Type parameters:** `T = unknown`
|
|
1811
|
-
|
|
1812
|
-
| Name | Type |
|
|
1813
|
-
| --- | --- |
|
|
1814
|
-
| `category?` | `unknown` |
|
|
1815
|
-
| `categoryX?` | `string` |
|
|
1816
|
-
| `categoryY?` | `string` |
|
|
1817
|
-
| `change?` | `number` |
|
|
1818
|
-
| `changePercentage?` | `number` |
|
|
1819
|
-
| `close?` | `number` |
|
|
1820
|
-
| `color` | `string` |
|
|
1821
|
-
| `dataIndex` | `number` |
|
|
1822
|
-
| `datum` | `T` |
|
|
1823
|
-
| `financial?` | `ChartOhlcPointValue` |
|
|
1824
|
-
| `financialDirection?` | `ChartFinancialDirection` |
|
|
1825
|
-
| `formattedCategory?` | `string` |
|
|
1826
|
-
| `formattedChange?` | `string` |
|
|
1827
|
-
| `formattedChangePercentage?` | `string` |
|
|
1828
|
-
| `formattedClose?` | `string` |
|
|
1829
|
-
| `formattedFrom?` | `string` |
|
|
1830
|
-
| `formattedHigh?` | `string` |
|
|
1831
|
-
| `formattedLow?` | `string` |
|
|
1832
|
-
| `formattedOpen?` | `string` |
|
|
1833
|
-
| `formattedPercentage?` | `string` |
|
|
1834
|
-
| `formattedRadialMax?` | `string` |
|
|
1835
|
-
| `formattedRadialMin?` | `string` |
|
|
1836
|
-
| `formattedSize?` | `string` |
|
|
1837
|
-
| `formattedStackPercentage?` | `string` |
|
|
1838
|
-
| `formattedStackTotal?` | `string` |
|
|
1839
|
-
| `formattedTo?` | `string` |
|
|
1840
|
-
| `formattedX` | `string` |
|
|
1841
|
-
| `formattedXValue?` | `string` |
|
|
1842
|
-
| `formattedY` | `string` |
|
|
1843
|
-
| `formattedYCategory?` | `string` |
|
|
1844
|
-
| `fromValue?` | `number` |
|
|
1845
|
-
| `funnel?` | `ChartFunnelPointMetadata` |
|
|
1846
|
-
| `hierarchy?` | `ChartHierarchyPointMetadata` |
|
|
1847
|
-
| `high?` | `number` |
|
|
1848
|
-
| `isClamped?` | `boolean` |
|
|
1849
|
-
| `low?` | `number` |
|
|
1850
|
-
| `markId` | `string` |
|
|
1851
|
-
| `open?` | `number` |
|
|
1852
|
-
| `percentage?` | `number` |
|
|
1853
|
-
| `radialMax?` | `number` |
|
|
1854
|
-
| `radialMin?` | `number` |
|
|
1855
|
-
| `radialRatio?` | `number` |
|
|
1856
|
-
| `rawValue?` | `unknown` |
|
|
1857
|
-
| `seriesId` | `string` |
|
|
1858
|
-
| `seriesName` | `string` |
|
|
1859
|
-
| `seriesType` | `ChartSeriesType` |
|
|
1860
|
-
| `sizeValue?` | `number` |
|
|
1861
|
-
| `sliceId?` | `string` |
|
|
1862
|
-
| `stackEnd?` | `number` |
|
|
1863
|
-
| `stackGroup?` | `string` |
|
|
1864
|
-
| `stackMode?` | `ChartStackMode` |
|
|
1865
|
-
| `stackPercentage?` | `number` |
|
|
1866
|
-
| `stackPosition?` | `"inner" \| "outer" \| "single"` |
|
|
1867
|
-
| `stackStart?` | `number` |
|
|
1868
|
-
| `stackTotal?` | `number` |
|
|
1869
|
-
| `toValue?` | `number` |
|
|
1870
|
-
| `value?` | `unknown` |
|
|
1871
|
-
| `valueKind?` | `ChartPointValueKind` |
|
|
1872
|
-
| `waterfall?` | `ChartWaterfallPointValue` |
|
|
1873
|
-
| `xAxisId?` | `string` |
|
|
1874
|
-
| `xAxisTitle?` | `string` |
|
|
1875
|
-
| `xValue` | `unknown` |
|
|
1876
|
-
| `yAxisId?` | `string` |
|
|
1877
|
-
| `yAxisTitle?` | `string` |
|
|
1878
|
-
| `yCategory?` | `unknown` |
|
|
1879
|
-
| `yValue?` | `number` |
|
|
1880
|
-
|
|
1881
|
-
#### `ChartTooltipTemplateContext`
|
|
1882
|
-
|
|
1883
|
-
**Type parameters:** `T = unknown`
|
|
1884
|
-
|
|
1885
|
-
| Name | Type |
|
|
1886
|
-
| --- | --- |
|
|
1887
|
-
| `$implicit` | `ChartTooltipPointContext<T>` |
|
|
1888
|
-
| `point` | `ChartTooltipPointContext<T>` |
|
|
1889
|
-
| `points` | `readonly ChartTooltipPointContext<T>[]` |
|
|
1890
|
-
| `series` | `readonly string[]` |
|
|
1891
|
-
| `shared` | `boolean` |
|
|
1892
|
-
|
|
1893
|
-
#### `ChartViewportAxisRef`
|
|
1894
|
-
|
|
1895
|
-
| Name | Type |
|
|
1896
|
-
| --- | --- |
|
|
1897
|
-
| `axis` (read-only) | `"x" \| "y"` |
|
|
1898
|
-
| `axisId` (read-only) | `string` |
|
|
1899
|
-
|
|
1900
|
-
#### `ChartViewportChangeEvent`
|
|
1901
|
-
|
|
1902
|
-
| Name | Type |
|
|
1903
|
-
| --- | --- |
|
|
1904
|
-
| `changedAxes` (read-only) | `readonly ChartViewportAxisRef[]` |
|
|
1905
|
-
| `phase` (read-only) | `ChartViewportChangePhase` |
|
|
1906
|
-
| `previousViewport` (read-only) | `ChartViewportState` |
|
|
1907
|
-
| `source` (read-only) | `ChartViewportChangeSource` |
|
|
1908
|
-
| `viewport` (read-only) | `ChartViewportState` |
|
|
1909
|
-
|
|
1910
|
-
#### `ChartViewportConstraint`
|
|
1911
|
-
|
|
1912
|
-
**Extends:** `ChartViewportAxisRef`
|
|
1913
|
-
|
|
1914
|
-
| Name | Type |
|
|
1915
|
-
| --- | --- |
|
|
1916
|
-
| `maxSpan?` (read-only) | `number` |
|
|
1917
|
-
| `maxVisibleCategories?` (read-only) | `number` |
|
|
1918
|
-
| `maxZoom?` (read-only) | `number` |
|
|
1919
|
-
| `minSpan?` (read-only) | `number` |
|
|
1920
|
-
| `minVisibleCategories?` (read-only) | `number` |
|
|
1921
|
-
|
|
1922
|
-
#### `ChartViewportLinkGroup`
|
|
1923
|
-
|
|
1924
|
-
| Name | Type |
|
|
1925
|
-
| --- | --- |
|
|
1926
|
-
| `axes` (read-only) | `readonly ChartViewportAxisRef[]` |
|
|
1927
|
-
| `id` (read-only) | `string` |
|
|
1928
|
-
| `mode` (read-only) | `ChartViewportLinkMode` |
|
|
1929
|
-
|
|
1930
|
-
#### `ChartViewportState`
|
|
1931
|
-
|
|
1932
|
-
| Name | Type |
|
|
1933
|
-
| --- | --- |
|
|
1934
|
-
| `axes` (read-only) | `readonly ChartViewportWindow[]` |
|
|
1935
|
-
|
|
1936
|
-
#### `ChartViewportSynchronizationOptions`
|
|
1937
|
-
|
|
1938
|
-
| Name | Type |
|
|
1939
|
-
| --- | --- |
|
|
1940
|
-
| `axes?` (read-only) | `ChartNavigationAxisTarget` |
|
|
1941
|
-
| `enabled?` (read-only) | `boolean` |
|
|
1942
|
-
| `mode?` (read-only) | `ChartSynchronizationMode` |
|
|
1943
|
-
| `phase?` (read-only) | `"continuous" \| "end"` |
|
|
1944
|
-
|
|
1945
|
-
#### `ChartAnimationEasing`
|
|
1946
|
-
|
|
1947
|
-
```typescript
|
|
1948
|
-
type ChartAnimationEasing = "linear" | "ease-in" | "ease-out" | "ease-in-out";
|
|
1949
|
-
```
|
|
1950
|
-
|
|
1951
|
-
#### `ChartAnimationInput`
|
|
1952
|
-
|
|
1953
|
-
```typescript
|
|
1954
|
-
type ChartAnimationInput = boolean | ChartAnimationOptions;
|
|
1955
|
-
```
|
|
1956
|
-
|
|
1957
|
-
#### `ChartAnnotationAxisValue`
|
|
1958
|
-
|
|
1959
|
-
```typescript
|
|
1960
|
-
type ChartAnnotationAxisValue = Date | number | string;
|
|
1961
|
-
```
|
|
1962
|
-
|
|
1963
|
-
#### `ChartAnnotationLabelPlacement`
|
|
1964
|
-
|
|
1965
|
-
```typescript
|
|
1966
|
-
type ChartAnnotationLabelPlacement = "bottom" | "left" | "right" | "top";
|
|
1967
|
-
```
|
|
1968
|
-
|
|
1969
|
-
#### `ChartAnnotationMarker`
|
|
1970
|
-
|
|
1971
|
-
```typescript
|
|
1972
|
-
type ChartAnnotationMarker = "circle" | "diamond" | "none";
|
|
1973
|
-
```
|
|
1974
|
-
|
|
1975
|
-
#### `ChartAxisFormatter`
|
|
1976
|
-
|
|
1977
|
-
```typescript
|
|
1978
|
-
type ChartAxisFormatter<T = unknown> = (value: T, index: number) => string;
|
|
1979
|
-
```
|
|
1980
|
-
|
|
1981
|
-
#### `ChartAxisLabelRotation`
|
|
1982
|
-
|
|
1983
|
-
```typescript
|
|
1984
|
-
type ChartAxisLabelRotation = "auto" | number;
|
|
1985
|
-
```
|
|
1986
|
-
|
|
1987
|
-
#### `ChartAxisPosition`
|
|
1988
|
-
|
|
1989
|
-
```typescript
|
|
1990
|
-
type ChartAxisPosition = ChartXAxisPosition | ChartYAxisSide;
|
|
1991
|
-
```
|
|
1992
|
-
|
|
1993
|
-
#### `ChartBrushActivation`
|
|
1994
|
-
|
|
1995
|
-
```typescript
|
|
1996
|
-
type ChartBrushActivation = "drag" | "shift-drag";
|
|
1997
|
-
```
|
|
1998
|
-
|
|
1999
|
-
#### `ChartBrushAxisRange`
|
|
2000
|
-
|
|
2001
|
-
```typescript
|
|
2002
|
-
type ChartBrushAxisRange = ChartBrushCategoryRange | ChartBrushContinuousRange;
|
|
2003
|
-
```
|
|
2004
|
-
|
|
2005
|
-
#### `ChartBrushCancelReason`
|
|
2006
|
-
|
|
2007
|
-
```typescript
|
|
2008
|
-
type ChartBrushCancelReason = | "authority-change" | "component-disabled" | "data-change" | "destroyed" | "disabled" | "escape" | "lost-pointer-capture" | "pointer-cancel" | "pointer-leave" | "viewport-change";
|
|
2009
|
-
```
|
|
2010
|
-
|
|
2011
|
-
#### `ChartBrushHitPolicy`
|
|
2012
|
-
|
|
2013
|
-
```typescript
|
|
2014
|
-
type ChartBrushHitPolicy = "center" | "intersect";
|
|
2015
|
-
```
|
|
2016
|
-
|
|
2017
|
-
#### `ChartBrushLineStyle`
|
|
2018
|
-
|
|
2019
|
-
```typescript
|
|
2020
|
-
type ChartBrushLineStyle = "solid" | "dashed" | "dotted";
|
|
2021
|
-
```
|
|
2022
|
-
|
|
2023
|
-
#### `ChartBrushMode`
|
|
2024
|
-
|
|
2025
|
-
```typescript
|
|
2026
|
-
type ChartBrushMode = "x" | "y" | "xy";
|
|
2027
|
-
```
|
|
2028
|
-
|
|
2029
|
-
#### `ChartBrushPhase`
|
|
2030
|
-
|
|
2031
|
-
```typescript
|
|
2032
|
-
type ChartBrushPhase = "start" | "update" | "end" | "cancel";
|
|
2033
|
-
```
|
|
2034
|
-
|
|
2035
|
-
#### `ChartBrushSelectionBehavior`
|
|
2036
|
-
|
|
2037
|
-
```typescript
|
|
2038
|
-
type ChartBrushSelectionBehavior = "none" | "replace" | "add" | "remove" | "toggle";
|
|
2039
|
-
```
|
|
2040
|
-
|
|
2041
|
-
#### `ChartCoordinateSystem`
|
|
2042
|
-
|
|
2043
|
-
```typescript
|
|
2044
|
-
type ChartCoordinateSystem = "cartesian" | "hierarchical" | "polar";
|
|
2045
|
-
```
|
|
2046
|
-
|
|
2047
|
-
#### `ChartCrosshairLineStyle`
|
|
2048
|
-
|
|
2049
|
-
```typescript
|
|
2050
|
-
type ChartCrosshairLineStyle = "dashed" | "dotted" | "solid";
|
|
2051
|
-
```
|
|
2052
|
-
|
|
2053
|
-
#### `ChartCrosshairMode`
|
|
2054
|
-
|
|
2055
|
-
```typescript
|
|
2056
|
-
type ChartCrosshairMode = "auto" | "x" | "xy" | "y";
|
|
2057
|
-
```
|
|
2058
|
-
|
|
2059
|
-
#### `ChartCrosshairSnapMode`
|
|
2060
|
-
|
|
2061
|
-
```typescript
|
|
2062
|
-
type ChartCrosshairSnapMode = "nearest" | "pointer";
|
|
2063
|
-
```
|
|
2064
|
-
|
|
2065
|
-
#### `ChartDataLabelFormatter`
|
|
2066
|
-
|
|
2067
|
-
```typescript
|
|
2068
|
-
type ChartDataLabelFormatter<T = unknown> = (context: ChartDataLabelContext<T>) => string | null | undefined;
|
|
2069
|
-
```
|
|
2070
|
-
|
|
2071
|
-
#### `ChartDataLabelPosition`
|
|
2072
|
-
|
|
2073
|
-
```typescript
|
|
2074
|
-
type ChartDataLabelPosition = | "auto" | "top" | "bottom" | "left" | "right" | "center" | "inside-start" | "inside-center" | "inside-end" | "outside-start" | "outside-end";
|
|
2075
|
-
```
|
|
2076
|
-
|
|
2077
|
-
#### `ChartDataLabelsInput`
|
|
2078
|
-
|
|
2079
|
-
```typescript
|
|
2080
|
-
type ChartDataLabelsInput = boolean | ChartDataLabelOptions;
|
|
2081
|
-
```
|
|
2082
|
-
|
|
2083
|
-
#### `ChartDownloadOptions`
|
|
2084
|
-
|
|
2085
|
-
Options for downloading a chart export.
|
|
2086
|
-
|
|
2087
|
-
```typescript
|
|
2088
|
-
type ChartDownloadOptions = ChartExportOptions & { readonly fileName?: string; };
|
|
2089
|
-
```
|
|
2090
|
-
|
|
2091
|
-
#### `ChartDownsamplingAlgorithm`
|
|
2092
|
-
|
|
2093
|
-
```typescript
|
|
2094
|
-
type ChartDownsamplingAlgorithm = "auto" | "lttb" | "minmax" | "pixel";
|
|
2095
|
-
```
|
|
2096
|
-
|
|
2097
|
-
#### `ChartDownsamplingInput`
|
|
2098
|
-
|
|
2099
|
-
```typescript
|
|
2100
|
-
type ChartDownsamplingInput = boolean | ChartDownsamplingOptions;
|
|
2101
|
-
```
|
|
2102
|
-
|
|
2103
|
-
#### `ChartExportBackground`
|
|
2104
|
-
|
|
2105
|
-
Chart export background policy.
|
|
2106
|
-
- "auto": Resolves the effective chart background color from the chart container/theme.
|
|
2107
|
-
- "transparent": Creates a transparent background.
|
|
2108
|
-
- CSS color string: Uses an explicit background color.
|
|
2109
|
-
|
|
2110
|
-
```typescript
|
|
2111
|
-
type ChartExportBackground = "auto" | "transparent" | string;
|
|
2112
|
-
```
|
|
2113
|
-
|
|
2114
|
-
#### `ChartExportErrorCode`
|
|
2115
|
-
|
|
2116
|
-
Error code identifying the cause of a chart export failure.
|
|
2117
|
-
|
|
2118
|
-
```typescript
|
|
2119
|
-
type ChartExportErrorCode = | "not-ready" | "unsupported-environment" | "unsupported-template" | "invalid-size" | "too-large" | "resource-load-failed" | "template-rasterization-failed" | "svg-composition-failed" | "svg-serialization-failed" | "png-rasterization-failed" | "pdf-vector-unsupported" | "pdf-generation-failed";
|
|
2120
|
-
```
|
|
2121
|
-
|
|
2122
|
-
#### `ChartExportFormat`
|
|
2123
|
-
|
|
2124
|
-
Supported chart export formats.
|
|
2125
|
-
|
|
2126
|
-
```typescript
|
|
2127
|
-
type ChartExportFormat = "png" | "svg" | "pdf";
|
|
2128
|
-
```
|
|
2129
|
-
|
|
2130
|
-
#### `ChartExportOptions`
|
|
2131
|
-
|
|
2132
|
-
Discriminated union of chart export options.
|
|
2133
|
-
|
|
2134
|
-
```typescript
|
|
2135
|
-
type ChartExportOptions = ChartPngExportOptions | ChartSvgExportOptions | ChartPdfExportOptions;
|
|
2136
|
-
```
|
|
2137
|
-
|
|
2138
|
-
#### `ChartField`
|
|
2139
|
-
|
|
2140
|
-
```typescript
|
|
2141
|
-
type ChartField<T = any, TResult = unknown> = string | ChartValueAccessor<T, TResult>;
|
|
2142
|
-
```
|
|
2143
|
-
|
|
2144
|
-
#### `ChartHeaderAlignment`
|
|
2145
|
-
|
|
2146
|
-
How the title and subtitle align: `start` and `end` follow the direction, `left` and `right` don't.
|
|
2147
|
-
|
|
2148
|
-
```typescript
|
|
2149
|
-
type ChartHeaderAlignment = "center" | "end" | "left" | "right" | "start";
|
|
2150
|
-
```
|
|
2151
|
-
|
|
2152
|
-
#### `ChartItemKey`
|
|
2153
|
-
|
|
2154
|
-
A value that can identify a chart item: a `keyField` value or a category.
|
|
2155
|
-
|
|
2156
|
-
```typescript
|
|
2157
|
-
type ChartItemKey = boolean | Date | number | string;
|
|
2158
|
-
```
|
|
2159
|
-
|
|
2160
|
-
#### `ChartLegendItemKind`
|
|
2161
|
-
|
|
2162
|
-
```typescript
|
|
2163
|
-
type ChartLegendItemKind = "datum" | "semantic" | "series";
|
|
2164
|
-
```
|
|
2165
|
-
|
|
2166
|
-
#### `ChartLegendMode`
|
|
2167
|
-
|
|
2168
|
-
```typescript
|
|
2169
|
-
type ChartLegendMode = "auto" | "color" | "series";
|
|
2170
|
-
```
|
|
2171
|
-
|
|
2172
|
-
#### `ChartLegendPosition`
|
|
2173
|
-
|
|
2174
|
-
Where a legend goes: `start` and `end` follow the direction, `left` and `right` don't.
|
|
2175
|
-
|
|
2176
|
-
```typescript
|
|
2177
|
-
type ChartLegendPosition = "bottom" | "end" | "left" | "right" | "start" | "top";
|
|
2178
|
-
```
|
|
2179
|
-
|
|
2180
|
-
#### `ChartNavigationAxisTarget`
|
|
2181
|
-
|
|
2182
|
-
```typescript
|
|
2183
|
-
type ChartNavigationAxisTarget = "auto" | "x" | "xy" | "y" | readonly ChartViewportAxisRef[];
|
|
2184
|
-
```
|
|
2185
|
-
|
|
2186
|
-
#### `ChartNavigationInput`
|
|
2187
|
-
|
|
2188
|
-
```typescript
|
|
2189
|
-
type ChartNavigationInput = boolean | ChartNavigationOptions;
|
|
2190
|
-
```
|
|
2191
|
-
|
|
2192
|
-
#### `ChartNumericScaleType`
|
|
2193
|
-
|
|
2194
|
-
```typescript
|
|
2195
|
-
type ChartNumericScaleType = "linear" | "log" | "symlog" | "pow" | "sqrt";
|
|
2196
|
-
```
|
|
2197
|
-
|
|
2198
|
-
#### `ChartOverlayLayer`
|
|
2199
|
-
|
|
2200
|
-
```typescript
|
|
2201
|
-
type ChartOverlayLayer = "overlay" | "underlay";
|
|
2202
|
-
```
|
|
2203
|
-
|
|
2204
|
-
#### `ChartPdfPageSize`
|
|
2205
|
-
|
|
2206
|
-
Standard or custom PDF page size.
|
|
2207
|
-
- "chart": Custom page dimensions sized to exactly match the chart dimensions in PDF points.
|
|
2208
|
-
- "a4": Standard ISO A4 page (595.28 x 841.89 pt).
|
|
2209
|
-
- "letter": Standard North American Letter page (612 x 792 pt).
|
|
2210
|
-
- Custom object: Explicit width and height in PDF points (72 points = 1 inch).
|
|
2211
|
-
|
|
2212
|
-
```typescript
|
|
2213
|
-
type ChartPdfPageSize = | "chart" | "a4" | "letter" | { readonly height: number; readonly width: number; };
|
|
2214
|
-
```
|
|
2215
|
-
|
|
2216
|
-
#### `ChartPdfRenderMode`
|
|
2217
|
-
|
|
2218
|
-
PDF generation rendering mode.
|
|
2219
|
-
- "auto": Prefers vector output, falling back to embedded high-resolution raster image when vector fidelity cannot be guaranteed.
|
|
2220
|
-
- "vector": Requires strict vector conversion; rejects if vector conversion is unsupported.
|
|
2221
|
-
- "raster": Directly renders a rasterized chart image onto the PDF page.
|
|
2222
|
-
|
|
2223
|
-
```typescript
|
|
2224
|
-
type ChartPdfRenderMode = "auto" | "vector" | "raster";
|
|
2225
|
-
```
|
|
2226
|
-
|
|
2227
|
-
#### `ChartPointValue`
|
|
2228
|
-
|
|
2229
|
-
```typescript
|
|
2230
|
-
type ChartPointValue = ChartOhlcPointValue | ChartRangePointValue | ChartScalarPointValue | ChartWaterfallPointValue;
|
|
2231
|
-
```
|
|
2232
|
-
|
|
2233
|
-
#### `ChartPointValueKind`
|
|
2234
|
-
|
|
2235
|
-
```typescript
|
|
2236
|
-
type ChartPointValueKind = "ohlc" | "range" | "scalar" | "waterfall";
|
|
2237
|
-
```
|
|
2238
|
-
|
|
2239
|
-
#### `ChartReferenceLabelPosition`
|
|
2240
|
-
|
|
2241
|
-
```typescript
|
|
2242
|
-
type ChartReferenceLabelPosition = "center" | "end" | "start";
|
|
2243
|
-
```
|
|
2244
|
-
|
|
2245
|
-
#### `ChartReferenceLabelTemplateContext`
|
|
2246
|
-
|
|
2247
|
-
```typescript
|
|
2248
|
-
type ChartReferenceLabelTemplateContext = ChartReferenceLineLabelContext | ChartReferenceBandLabelContext;
|
|
2249
|
-
```
|
|
2250
|
-
|
|
2251
|
-
#### `ChartReferenceLineStyle`
|
|
2252
|
-
|
|
2253
|
-
```typescript
|
|
2254
|
-
type ChartReferenceLineStyle = "dashed" | "dotted" | "solid";
|
|
2255
|
-
```
|
|
2256
|
-
|
|
2257
|
-
#### `ChartRendererMode`
|
|
2258
|
-
|
|
2259
|
-
```typescript
|
|
2260
|
-
type ChartRendererMode = "canvas" | "svg";
|
|
2261
|
-
```
|
|
2262
|
-
|
|
2263
|
-
#### `ChartSelectionChangeSource`
|
|
2264
|
-
|
|
2265
|
-
```typescript
|
|
2266
|
-
type ChartSelectionChangeSource = "brush" | "click" | "keyboard" | "programmatic";
|
|
2267
|
-
```
|
|
2268
|
-
|
|
2269
|
-
#### `ChartSelectionMode`
|
|
2270
|
-
|
|
2271
|
-
```typescript
|
|
2272
|
-
type ChartSelectionMode = "single" | "multiple";
|
|
2273
|
-
```
|
|
2274
|
-
|
|
2275
|
-
#### `ChartSeriesFamily`
|
|
2276
|
-
|
|
2277
|
-
```typescript
|
|
2278
|
-
type ChartSeriesFamily = "cartesian" | "funnel" | "heatmap" | "hierarchy" | "polar" | "radar" | "radialArc" | "sector" | "waterfall";
|
|
2279
|
-
```
|
|
2280
|
-
|
|
2281
|
-
#### `ChartSeriesType`
|
|
2282
|
-
|
|
2283
|
-
```typescript
|
|
2284
|
-
type ChartSeriesType = | "area" | "bar" | "bubble" | "candlestick" | "donut" | "funnel" | "gauge" | "heatmap" | "line" | "ohlc" | "pie" | "polar" | "radar" | "radialBar" | "rangeArea" | "rangeBar" | "rose" | "scatter" | "treemap" | "waterfall";
|
|
2285
|
-
```
|
|
2286
|
-
|
|
2287
|
-
#### `ChartStackMode`
|
|
2288
|
-
|
|
2289
|
-
```typescript
|
|
2290
|
-
type ChartStackMode = "normal" | "percent";
|
|
2291
|
-
```
|
|
2292
|
-
|
|
2293
|
-
#### `ChartSynchronizationInput`
|
|
2294
|
-
|
|
2295
|
-
```typescript
|
|
2296
|
-
type ChartSynchronizationInput = false | string | ChartSynchronizationOptions;
|
|
2297
|
-
```
|
|
2298
|
-
|
|
2299
|
-
#### `ChartSynchronizationMode`
|
|
2300
|
-
|
|
2301
|
-
```typescript
|
|
2302
|
-
type ChartSynchronizationMode = "domain" | "relative";
|
|
2303
|
-
```
|
|
2304
|
-
|
|
2305
|
-
#### `ChartValueAccessor`
|
|
2306
|
-
|
|
2307
|
-
```typescript
|
|
2308
|
-
type ChartValueAccessor<T = any, TResult = unknown> = (item: T, index: number) => TResult;
|
|
2309
|
-
```
|
|
2310
|
-
|
|
2311
|
-
#### `ChartValueFormatter`
|
|
2312
|
-
|
|
2313
|
-
```typescript
|
|
2314
|
-
type ChartValueFormatter<T = unknown> = (value: T, index: number) => string;
|
|
2315
|
-
```
|
|
2316
|
-
|
|
2317
|
-
#### `ChartViewportChangePhase`
|
|
2318
|
-
|
|
2319
|
-
```typescript
|
|
2320
|
-
type ChartViewportChangePhase = "end" | "start" | "update";
|
|
2321
|
-
```
|
|
2322
|
-
|
|
2323
|
-
#### `ChartViewportChangeSource`
|
|
2324
|
-
|
|
2325
|
-
```typescript
|
|
2326
|
-
type ChartViewportChangeSource = "data-reconcile" | "drag" | "fit" | "keyboard" | "pinch" | "programmatic" | "reset" | "sync" | "wheel";
|
|
2327
|
-
```
|
|
2328
|
-
|
|
2329
|
-
#### `ChartViewportLinkMode`
|
|
2330
|
-
|
|
2331
|
-
```typescript
|
|
2332
|
-
type ChartViewportLinkMode = "domain" | "relative";
|
|
2333
|
-
```
|
|
2334
|
-
|
|
2335
|
-
#### `ChartViewportWindow`
|
|
2336
|
-
|
|
2337
|
-
```typescript
|
|
2338
|
-
type ChartViewportWindow = ChartCategoryViewportWindow | ChartContinuousViewportWindow;
|
|
2339
|
-
```
|
|
2340
|
-
|
|
2341
|
-
#### `ChartXAxisPosition`
|
|
2342
|
-
|
|
2343
|
-
```typescript
|
|
2344
|
-
type ChartXAxisPosition = "bottom" | "top";
|
|
2345
|
-
```
|
|
2346
|
-
|
|
2347
|
-
#### `ChartXAxisType`
|
|
2348
|
-
|
|
2349
|
-
```typescript
|
|
2350
|
-
type ChartXAxisType = "auto" | "category" | ChartNumericScaleType | "time" | "utc";
|
|
2351
|
-
```
|
|
2352
|
-
|
|
2353
|
-
#### `ChartYAxisPosition`
|
|
2354
|
-
|
|
2355
|
-
Where a Y axis goes: `start` and `end` follow the direction, `left` and `right` don't.
|
|
2356
|
-
|
|
2357
|
-
```typescript
|
|
2358
|
-
type ChartYAxisPosition = ChartYAxisSide | "end" | "start";
|
|
2359
|
-
```
|
|
2360
|
-
|
|
2361
|
-
#### `ChartYAxisSide`
|
|
2362
|
-
|
|
2363
|
-
The physical side a Y axis is drawn on.
|
|
2364
|
-
|
|
2365
|
-
```typescript
|
|
2366
|
-
type ChartYAxisSide = "left" | "right";
|
|
2367
|
-
```
|
|
2368
|
-
|
|
2369
|
-
#### `ChartYAxisType`
|
|
2370
|
-
|
|
2371
|
-
```typescript
|
|
2372
|
-
type ChartYAxisType = "auto" | "category" | ChartNumericScaleType;
|
|
2373
|
-
```
|
|
2374
|
-
|
|
2375
|
-
#### `MonaChartMessages`
|
|
2376
|
-
|
|
2377
|
-
From `@nanahoshi/mona-ui/i18n`.
|
|
2378
|
-
|
|
2379
|
-
| Name | Type | Description |
|
|
618
|
+
| Type | Kind | Description |
|
|
2380
619
|
| --- | --- | --- |
|
|
2381
|
-
| `
|
|
2382
|
-
| `
|
|
2383
|
-
| `
|
|
2384
|
-
| `
|
|
2385
|
-
| `
|
|
2386
|
-
| `
|
|
2387
|
-
| `
|
|
2388
|
-
| `
|
|
2389
|
-
| `
|
|
2390
|
-
| `
|
|
2391
|
-
| `
|
|
2392
|
-
| `
|
|
2393
|
-
| `
|
|
2394
|
-
| `
|
|
2395
|
-
| `
|
|
2396
|
-
| `
|
|
2397
|
-
| `
|
|
2398
|
-
| `
|
|
2399
|
-
| `
|
|
2400
|
-
| `
|
|
2401
|
-
| `
|
|
2402
|
-
| `
|
|
2403
|
-
| `
|
|
2404
|
-
| `
|
|
2405
|
-
| `
|
|
2406
|
-
| `
|
|
2407
|
-
| `
|
|
2408
|
-
| `
|
|
2409
|
-
| `
|
|
2410
|
-
| `
|
|
2411
|
-
| `
|
|
2412
|
-
| `
|
|
2413
|
-
| `
|
|
2414
|
-
| `
|
|
2415
|
-
| `
|
|
2416
|
-
| `
|
|
2417
|
-
| `
|
|
2418
|
-
| `
|
|
2419
|
-
| `
|
|
2420
|
-
| `
|
|
2421
|
-
| `
|
|
2422
|
-
| `
|
|
2423
|
-
| `
|
|
2424
|
-
| `
|
|
2425
|
-
| `
|
|
2426
|
-
| `
|
|
2427
|
-
| `
|
|
2428
|
-
| `
|
|
2429
|
-
| `
|
|
2430
|
-
| `
|
|
2431
|
-
| `
|
|
2432
|
-
| `
|
|
2433
|
-
| `
|
|
2434
|
-
| `
|
|
2435
|
-
| `
|
|
2436
|
-
| `
|
|
2437
|
-
| `
|
|
2438
|
-
| `
|
|
2439
|
-
| `
|
|
2440
|
-
| `
|
|
2441
|
-
| `
|
|
2442
|
-
| `
|
|
2443
|
-
| `
|
|
2444
|
-
| `
|
|
2445
|
-
| `
|
|
2446
|
-
| `
|
|
2447
|
-
| `
|
|
2448
|
-
| `
|
|
2449
|
-
| `
|
|
2450
|
-
| `
|
|
2451
|
-
| `
|
|
2452
|
-
| `
|
|
2453
|
-
| `
|
|
2454
|
-
| `
|
|
2455
|
-
| `
|
|
2456
|
-
| `
|
|
2457
|
-
| `
|
|
2458
|
-
| `
|
|
2459
|
-
| `
|
|
2460
|
-
| `
|
|
2461
|
-
| `
|
|
2462
|
-
| `
|
|
2463
|
-
| `
|
|
2464
|
-
|
|
2465
|
-
|
|
620
|
+
| [`CHART_DEFAULT_MESSAGES`](api/chart.md#chart-default-messages) | Constant | |
|
|
621
|
+
| [`ChartAnimationOptions`](api/chart.md#chartanimationoptions) | Interface | |
|
|
622
|
+
| [`ChartAnnotationLabelTemplateContext`](api/chart.md#chartannotationlabeltemplatecontext) | Interface | |
|
|
623
|
+
| [`ChartAxisLabelTemplateContext`](api/chart.md#chartaxislabeltemplatecontext) | Interface | |
|
|
624
|
+
| [`ChartAxisTick`](api/chart.md#chartaxistick) | Interface | |
|
|
625
|
+
| [`ChartBrushCategoryRange`](api/chart.md#chartbrushcategoryrange) | Interface | |
|
|
626
|
+
| [`ChartBrushChangeEvent`](api/chart.md#chartbrushchangeevent) | Interface | |
|
|
627
|
+
| [`ChartBrushContinuousRange`](api/chart.md#chartbrushcontinuousrange) | Interface | |
|
|
628
|
+
| [`ChartCategoryViewportWindow`](api/chart.md#chartcategoryviewportwindow) | Interface | |
|
|
629
|
+
| [`ChartContinuousViewportWindow`](api/chart.md#chartcontinuousviewportwindow) | Interface | |
|
|
630
|
+
| [`ChartCrosshairAxisLabelContext`](api/chart.md#chartcrosshairaxislabelcontext) | Interface | |
|
|
631
|
+
| [`ChartCrosshairResolvedAxisValue`](api/chart.md#chartcrosshairresolvedaxisvalue) | Interface | |
|
|
632
|
+
| [`ChartCrosshairSynchronizationOptions`](api/chart.md#chartcrosshairsynchronizationoptions) | Interface | |
|
|
633
|
+
| [`ChartDataLabelContext`](api/chart.md#chartdatalabelcontext) | Interface | |
|
|
634
|
+
| [`ChartDataLabelOptions`](api/chart.md#chartdatalabeloptions) | Interface | |
|
|
635
|
+
| [`ChartDownsamplingOptions`](api/chart.md#chartdownsamplingoptions) | Interface | |
|
|
636
|
+
| [`ChartExportBaseOptions`](api/chart.md#chartexportbaseoptions) | Interface | Shared base options for all chart export formats. |
|
|
637
|
+
| [`ChartExportPresentationOptions`](api/chart.md#chartexportpresentationoptions) | Interface | Options controlling which interactive/presentation elements are included in the export. |
|
|
638
|
+
| [`ChartExportResult`](api/chart.md#chartexportresult) | Interface | Result of a chart export operation. |
|
|
639
|
+
| [`ChartLabelMeasurement`](api/chart.md#chartlabelmeasurement) | Interface | |
|
|
640
|
+
| [`ChartLegendItem`](api/chart.md#chartlegenditem) | Interface | |
|
|
641
|
+
| [`ChartLegendItemTemplateContext`](api/chart.md#chartlegenditemtemplatecontext) | Interface | |
|
|
642
|
+
| [`ChartNavigationOptions`](api/chart.md#chartnavigationoptions) | Interface | |
|
|
643
|
+
| [`ChartPadding`](api/chart.md#chartpadding) | Interface | |
|
|
644
|
+
| [`ChartPdfExportOptions`](api/chart.md#chartpdfexportoptions) | Interface | Options for exporting a chart as a PDF document. |
|
|
645
|
+
| [`ChartPdfMargins`](api/chart.md#chartpdfmargins) | Interface | PDF page margins in PDF points (72 points = 1 inch). |
|
|
646
|
+
| [`ChartPdfPageOptions`](api/chart.md#chartpdfpageoptions) | Interface | Page layout options for PDF export. |
|
|
647
|
+
| [`ChartPngExportOptions`](api/chart.md#chartpngexportoptions) | Interface | Options for exporting a chart as a PNG raster image. |
|
|
648
|
+
| [`ChartPoint`](api/chart.md#chartpoint) | Interface | |
|
|
649
|
+
| [`ChartPointEvent`](api/chart.md#chartpointevent) | Interface | |
|
|
650
|
+
| [`ChartPointFocusEvent`](api/chart.md#chartpointfocusevent) | Interface | |
|
|
651
|
+
| [`ChartRangePointValue`](api/chart.md#chartrangepointvalue) | Interface | |
|
|
652
|
+
| [`ChartRect`](api/chart.md#chartrect) | Interface | |
|
|
653
|
+
| [`ChartReferenceBandLabelContext`](api/chart.md#chartreferencebandlabelcontext) | Interface | |
|
|
654
|
+
| [`ChartReferenceLineLabelContext`](api/chart.md#chartreferencelinelabelcontext) | Interface | |
|
|
655
|
+
| [`ChartScalarPointValue`](api/chart.md#chartscalarpointvalue) | Interface | |
|
|
656
|
+
| [`ChartSelectedPoint`](api/chart.md#chartselectedpoint) | Interface | |
|
|
657
|
+
| [`ChartSelectionChangeEvent`](api/chart.md#chartselectionchangeevent) | Interface | |
|
|
658
|
+
| [`ChartSeriesStyle`](api/chart.md#chartseriesstyle) | Interface | |
|
|
659
|
+
| [`ChartSeriesVisibilityEvent`](api/chart.md#chartseriesvisibilityevent) | Interface | |
|
|
660
|
+
| [`ChartSize`](api/chart.md#chartsize) | Interface | |
|
|
661
|
+
| [`ChartSubtitleTemplateContext`](api/chart.md#chartsubtitletemplatecontext) | Interface | |
|
|
662
|
+
| [`ChartSvgExportOptions`](api/chart.md#chartsvgexportoptions) | Interface | Options for exporting a chart as a standalone SVG vector document. |
|
|
663
|
+
| [`ChartSynchronizationAxisMapping`](api/chart.md#chartsynchronizationaxismapping) | Interface | |
|
|
664
|
+
| [`ChartSynchronizationOptions`](api/chart.md#chartsynchronizationoptions) | Interface | |
|
|
665
|
+
| [`ChartTitleTemplateContext`](api/chart.md#charttitletemplatecontext) | Interface | |
|
|
666
|
+
| [`ChartTooltipPointContext`](api/chart.md#charttooltippointcontext) | Interface | |
|
|
667
|
+
| [`ChartTooltipTemplateContext`](api/chart.md#charttooltiptemplatecontext) | Interface | |
|
|
668
|
+
| [`ChartViewportAxisRef`](api/chart.md#chartviewportaxisref) | Interface | |
|
|
669
|
+
| [`ChartViewportChangeEvent`](api/chart.md#chartviewportchangeevent) | Interface | |
|
|
670
|
+
| [`ChartViewportConstraint`](api/chart.md#chartviewportconstraint) | Interface | |
|
|
671
|
+
| [`ChartViewportLinkGroup`](api/chart.md#chartviewportlinkgroup) | Interface | |
|
|
672
|
+
| [`ChartViewportState`](api/chart.md#chartviewportstate) | Interface | |
|
|
673
|
+
| [`ChartViewportSynchronizationOptions`](api/chart.md#chartviewportsynchronizationoptions) | Interface | |
|
|
674
|
+
| [`ChartAnimationEasing`](api/chart.md#chartanimationeasing) | Type alias | |
|
|
675
|
+
| [`ChartAnimationInput`](api/chart.md#chartanimationinput) | Type alias | |
|
|
676
|
+
| [`ChartAnnotationAxisValue`](api/chart.md#chartannotationaxisvalue) | Type alias | |
|
|
677
|
+
| [`ChartAnnotationLabelPlacement`](api/chart.md#chartannotationlabelplacement) | Type alias | |
|
|
678
|
+
| [`ChartAnnotationMarker`](api/chart.md#chartannotationmarker) | Type alias | |
|
|
679
|
+
| [`ChartAxisFormatter`](api/chart.md#chartaxisformatter) | Type alias | |
|
|
680
|
+
| [`ChartAxisLabelRotation`](api/chart.md#chartaxislabelrotation) | Type alias | |
|
|
681
|
+
| [`ChartAxisPosition`](api/chart.md#chartaxisposition) | Type alias | |
|
|
682
|
+
| [`ChartBrushActivation`](api/chart.md#chartbrushactivation) | Type alias | |
|
|
683
|
+
| [`ChartBrushAxisRange`](api/chart.md#chartbrushaxisrange) | Type alias | |
|
|
684
|
+
| [`ChartBrushCancelReason`](api/chart.md#chartbrushcancelreason) | Type alias | |
|
|
685
|
+
| [`ChartBrushHitPolicy`](api/chart.md#chartbrushhitpolicy) | Type alias | |
|
|
686
|
+
| [`ChartBrushLineStyle`](api/chart.md#chartbrushlinestyle) | Type alias | |
|
|
687
|
+
| [`ChartBrushMode`](api/chart.md#chartbrushmode) | Type alias | |
|
|
688
|
+
| [`ChartBrushPhase`](api/chart.md#chartbrushphase) | Type alias | |
|
|
689
|
+
| [`ChartBrushSelectionBehavior`](api/chart.md#chartbrushselectionbehavior) | Type alias | |
|
|
690
|
+
| [`ChartCoordinateSystem`](api/chart.md#chartcoordinatesystem) | Type alias | |
|
|
691
|
+
| [`ChartCrosshairLineStyle`](api/chart.md#chartcrosshairlinestyle) | Type alias | |
|
|
692
|
+
| [`ChartCrosshairMode`](api/chart.md#chartcrosshairmode) | Type alias | |
|
|
693
|
+
| [`ChartCrosshairSnapMode`](api/chart.md#chartcrosshairsnapmode) | Type alias | |
|
|
694
|
+
| [`ChartDataLabelFormatter`](api/chart.md#chartdatalabelformatter) | Type alias | |
|
|
695
|
+
| [`ChartDataLabelPosition`](api/chart.md#chartdatalabelposition) | Type alias | |
|
|
696
|
+
| [`ChartDataLabelsInput`](api/chart.md#chartdatalabelsinput) | Type alias | |
|
|
697
|
+
| [`ChartDownloadOptions`](api/chart.md#chartdownloadoptions) | Type alias | Options for downloading a chart export. |
|
|
698
|
+
| [`ChartDownsamplingAlgorithm`](api/chart.md#chartdownsamplingalgorithm) | Type alias | |
|
|
699
|
+
| [`ChartDownsamplingInput`](api/chart.md#chartdownsamplinginput) | Type alias | |
|
|
700
|
+
| [`ChartExportBackground`](api/chart.md#chartexportbackground) | Type alias | Chart export background policy. - "auto": Resolves the effective chart background color from the chart container/theme. - "transparent": Creates a transparent background. - CSS color string: Uses an explicit background color. |
|
|
701
|
+
| [`ChartExportErrorCode`](api/chart.md#chartexporterrorcode) | Type alias | Error code identifying the cause of a chart export failure. |
|
|
702
|
+
| [`ChartExportFormat`](api/chart.md#chartexportformat) | Type alias | Supported chart export formats. |
|
|
703
|
+
| [`ChartExportOptions`](api/chart.md#chartexportoptions) | Type alias | Discriminated union of chart export options. |
|
|
704
|
+
| [`ChartField`](api/chart.md#chartfield) | Type alias | |
|
|
705
|
+
| [`ChartHeaderAlignment`](api/chart.md#chartheaderalignment) | Type alias | How the title and subtitle align: `start` and `end` follow the direction, `left` and `right` don't. |
|
|
706
|
+
| [`ChartItemKey`](api/chart.md#chartitemkey) | Type alias | A value that can identify a chart item: a `keyField` value or a category. |
|
|
707
|
+
| [`ChartLegendItemKind`](api/chart.md#chartlegenditemkind) | Type alias | |
|
|
708
|
+
| [`ChartLegendMode`](api/chart.md#chartlegendmode) | Type alias | |
|
|
709
|
+
| [`ChartLegendPosition`](api/chart.md#chartlegendposition) | Type alias | Where a legend goes: `start` and `end` follow the direction, `left` and `right` don't. |
|
|
710
|
+
| [`ChartNavigationAxisTarget`](api/chart.md#chartnavigationaxistarget) | Type alias | |
|
|
711
|
+
| [`ChartNavigationInput`](api/chart.md#chartnavigationinput) | Type alias | |
|
|
712
|
+
| [`ChartNumericScaleType`](api/chart.md#chartnumericscaletype) | Type alias | |
|
|
713
|
+
| [`ChartOverlayLayer`](api/chart.md#chartoverlaylayer) | Type alias | |
|
|
714
|
+
| [`ChartPdfPageSize`](api/chart.md#chartpdfpagesize) | Type alias | Standard or custom PDF page size. - "chart": Custom page dimensions sized to exactly match the chart dimensions in PDF points. - "a4": Standard ISO A4 page (595.28 x 841.89 pt). - "letter": Standard North American Letter page (612 x 792 pt). - Custom object: Explicit width and height in PDF points (72 points = 1 inch). |
|
|
715
|
+
| [`ChartPdfRenderMode`](api/chart.md#chartpdfrendermode) | Type alias | PDF generation rendering mode. - "auto": Prefers vector output, falling back to embedded high-resolution raster image when vector fidelity cannot be guaranteed. - "vector": Requires strict vector conversion; rejects if vector conversion is unsupported. - "raster": Directly renders a rasterized chart image onto the PDF page. |
|
|
716
|
+
| [`ChartPointValue`](api/chart.md#chartpointvalue) | Type alias | |
|
|
717
|
+
| [`ChartPointValueKind`](api/chart.md#chartpointvaluekind) | Type alias | |
|
|
718
|
+
| [`ChartReferenceLabelPosition`](api/chart.md#chartreferencelabelposition) | Type alias | |
|
|
719
|
+
| [`ChartReferenceLabelTemplateContext`](api/chart.md#chartreferencelabeltemplatecontext) | Type alias | |
|
|
720
|
+
| [`ChartReferenceLineStyle`](api/chart.md#chartreferencelinestyle) | Type alias | |
|
|
721
|
+
| [`ChartRendererMode`](api/chart.md#chartrenderermode) | Type alias | |
|
|
722
|
+
| [`ChartSelectionChangeSource`](api/chart.md#chartselectionchangesource) | Type alias | |
|
|
723
|
+
| [`ChartSelectionMode`](api/chart.md#chartselectionmode) | Type alias | |
|
|
724
|
+
| [`ChartSeriesFamily`](api/chart.md#chartseriesfamily) | Type alias | |
|
|
725
|
+
| [`ChartSeriesType`](api/chart.md#chartseriestype) | Type alias | |
|
|
726
|
+
| [`ChartStackMode`](api/chart.md#chartstackmode) | Type alias | |
|
|
727
|
+
| [`ChartSynchronizationInput`](api/chart.md#chartsynchronizationinput) | Type alias | |
|
|
728
|
+
| [`ChartSynchronizationMode`](api/chart.md#chartsynchronizationmode) | Type alias | |
|
|
729
|
+
| [`ChartValueAccessor`](api/chart.md#chartvalueaccessor) | Type alias | |
|
|
730
|
+
| [`ChartValueFormatter`](api/chart.md#chartvalueformatter) | Type alias | |
|
|
731
|
+
| [`ChartViewportChangePhase`](api/chart.md#chartviewportchangephase) | Type alias | |
|
|
732
|
+
| [`ChartViewportChangeSource`](api/chart.md#chartviewportchangesource) | Type alias | |
|
|
733
|
+
| [`ChartViewportLinkMode`](api/chart.md#chartviewportlinkmode) | Type alias | |
|
|
734
|
+
| [`ChartViewportWindow`](api/chart.md#chartviewportwindow) | Type alias | |
|
|
735
|
+
| [`ChartXAxisPosition`](api/chart.md#chartxaxisposition) | Type alias | |
|
|
736
|
+
| [`ChartXAxisType`](api/chart.md#chartxaxistype) | Type alias | |
|
|
737
|
+
| [`ChartYAxisPosition`](api/chart.md#chartyaxisposition) | Type alias | Where a Y axis goes: `start` and `end` follow the direction, `left` and `right` don't. |
|
|
738
|
+
| [`ChartYAxisSide`](api/chart.md#chartyaxisside) | Type alias | The physical side a Y axis is drawn on. |
|
|
739
|
+
| [`ChartYAxisType`](api/chart.md#chartyaxistype) | Type alias | |
|
|
740
|
+
|
|
741
|
+
**Related types:** [`ChartFinancialDirection`](api/chart.md#chartfinancialdirection), [`ChartFunnelPointMetadata`](api/chart.md#chartfunnelpointmetadata), [`ChartHierarchyPointMetadata`](api/chart.md#charthierarchypointmetadata), [`ChartLineStyle`](api/chart.md#chartlinestyle), [`ChartOhlcPointValue`](api/chart.md#chartohlcpointvalue), [`ChartWaterfallPointValue`](api/chart.md#chartwaterfallpointvalue), [`MonaChartMessages`](api/i18n.md#monachartmessages)
|