@nanahoshi/mona-ui 0.25.1 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/README.md +2 -0
  2. package/chart/README.md +2 -2
  3. package/command/package.json +4 -0
  4. package/docs/auto-complete.md +733 -0
  5. package/docs/avatar.md +220 -0
  6. package/docs/breadcrumb.md +320 -0
  7. package/docs/button-group.md +392 -0
  8. package/docs/button.md +256 -0
  9. package/docs/calendar.md +515 -0
  10. package/docs/card.md +292 -0
  11. package/docs/chart-bar.md +714 -0
  12. package/docs/chart-financial.md +567 -0
  13. package/docs/chart-funnel.md +546 -0
  14. package/docs/chart-heatmap.md +535 -0
  15. package/docs/chart-line-area.md +462 -0
  16. package/docs/chart-pie.md +645 -0
  17. package/docs/chart-radar.md +518 -0
  18. package/docs/chart-radial.md +658 -0
  19. package/docs/chart-scatter.md +479 -0
  20. package/docs/chart-treemap.md +651 -0
  21. package/docs/chart.md +2465 -0
  22. package/docs/checkbox.md +374 -0
  23. package/docs/chip.md +339 -0
  24. package/docs/circular-progress-bar.md +287 -0
  25. package/docs/collapsible.md +308 -0
  26. package/docs/color-gradient.md +336 -0
  27. package/docs/color-palette.md +317 -0
  28. package/docs/color-picker.md +387 -0
  29. package/docs/combo-box.md +764 -0
  30. package/docs/command.md +582 -0
  31. package/docs/contextmenu.md +530 -0
  32. package/docs/date-picker.md +251 -0
  33. package/docs/datetime-picker.md +284 -0
  34. package/docs/decimal-textbox.md +260 -0
  35. package/docs/dialog.md +822 -0
  36. package/docs/dropdown-button.md +507 -0
  37. package/docs/dropdown-list.md +779 -0
  38. package/docs/editor.md +374 -0
  39. package/docs/expansion-panel.md +348 -0
  40. package/docs/fieldset.md +217 -0
  41. package/docs/forms.md +162 -0
  42. package/docs/grid.md +2053 -0
  43. package/docs/input.md +197 -0
  44. package/docs/installation.md +54 -0
  45. package/docs/introduction.md +46 -0
  46. package/docs/label.md +340 -0
  47. package/docs/list-box.md +637 -0
  48. package/docs/list-view.md +584 -0
  49. package/docs/menubar.md +559 -0
  50. package/docs/multi-select.md +765 -0
  51. package/docs/notification.md +460 -0
  52. package/docs/numeric-textbox.md +301 -0
  53. package/docs/otp-input.md +539 -0
  54. package/docs/pager.md +513 -0
  55. package/docs/placeholder.md +176 -0
  56. package/docs/popover.md +423 -0
  57. package/docs/popup-menu.md +658 -0
  58. package/docs/popup.md +617 -0
  59. package/docs/progress-bar.md +368 -0
  60. package/docs/radio-button.md +451 -0
  61. package/docs/range-slider.md +367 -0
  62. package/docs/rating.md +518 -0
  63. package/docs/scroll-view.md +375 -0
  64. package/docs/segmented.md +434 -0
  65. package/docs/sheet.md +348 -0
  66. package/docs/sidebar.md +1126 -0
  67. package/docs/skeleton.md +181 -0
  68. package/docs/slider.md +423 -0
  69. package/docs/spinner.md +370 -0
  70. package/docs/split-button.md +522 -0
  71. package/docs/splitter.md +342 -0
  72. package/docs/stepper.md +539 -0
  73. package/docs/switch.md +340 -0
  74. package/docs/tabs.md +542 -0
  75. package/docs/textarea.md +196 -0
  76. package/docs/textbox.md +332 -0
  77. package/docs/theming.md +403 -0
  78. package/docs/time-picker.md +254 -0
  79. package/docs/tooltip-directive.md +340 -0
  80. package/docs/tooltip.md +321 -0
  81. package/docs/tree-view.md +1018 -0
  82. package/docs/window.md +663 -0
  83. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
  84. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +8 -0
  85. package/fesm2022/nanahoshi-mona-ui-button.mjs +12 -0
  86. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
  87. package/fesm2022/nanahoshi-mona-ui-chart.mjs +212 -66
  88. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
  89. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +4 -0
  90. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +16 -2
  91. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
  92. package/fesm2022/nanahoshi-mona-ui-command.mjs +924 -0
  93. package/fesm2022/nanahoshi-mona-ui-common.mjs +4 -0
  94. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +10 -6
  95. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -1
  96. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -1
  97. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +9 -5
  98. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +9 -5
  99. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +55 -1
  100. package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -2
  101. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +13 -0
  102. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +5 -0
  103. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs} +2 -2
  104. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs → nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs} +5 -5
  105. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs → nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs} +18 -35
  106. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs} +5 -5
  107. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs} +4653 -4529
  108. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  109. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
  110. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1 -0
  111. package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +168 -0
  112. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +19 -1
  113. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +14 -0
  114. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +32 -0
  115. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +10 -0
  116. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +10 -0
  117. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +10 -0
  118. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +10 -0
  119. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +10 -0
  120. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +10 -0
  121. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +10 -0
  122. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +10 -0
  123. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +10 -0
  124. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +10 -0
  125. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +10 -0
  126. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +10 -0
  127. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +10 -0
  128. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +15 -8
  129. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +8 -5
  130. package/fesm2022/nanahoshi-mona-ui-notification.mjs +9 -0
  131. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1 -1
  132. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +5 -0
  133. package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -1
  134. package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -6
  135. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +48 -183
  136. package/fesm2022/nanahoshi-mona-ui-popup.mjs +16 -0
  137. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +4 -0
  138. package/fesm2022/nanahoshi-mona-ui-rating.mjs +2 -0
  139. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +1 -0
  140. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +5 -5
  141. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +1 -1
  142. package/fesm2022/nanahoshi-mona-ui-slider.mjs +7 -2
  143. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +9 -6
  144. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +18 -21
  145. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +11 -8
  146. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +9 -1
  147. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -1
  148. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +16 -5
  149. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +13 -11
  150. package/fesm2022/nanahoshi-mona-ui-window.mjs +12 -5
  151. package/i18n/catalogs/en-US.messages.json +10 -0
  152. package/internal/popup-menu/package.json +4 -0
  153. package/llms.txt +133 -0
  154. package/locales/ar-sa/ar-sa.messages.json +10 -0
  155. package/locales/de-de/de-de.messages.json +10 -0
  156. package/locales/es-es/es-es.messages.json +10 -0
  157. package/locales/fr-fr/fr-fr.messages.json +10 -0
  158. package/locales/id-id/id-id.messages.json +10 -0
  159. package/locales/it-it/it-it.messages.json +10 -0
  160. package/locales/ja-jp/ja-jp.messages.json +10 -0
  161. package/locales/ko-kr/ko-kr.messages.json +10 -0
  162. package/locales/pt-br/pt-br.messages.json +10 -0
  163. package/locales/ru-ru/ru-ru.messages.json +10 -0
  164. package/locales/tr-tr/tr-tr.messages.json +10 -0
  165. package/locales/zh-cn/zh-cn.messages.json +10 -0
  166. package/locales/zh-tw/zh-tw.messages.json +10 -0
  167. package/package.json +9 -1
  168. package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -1
  169. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +8 -0
  170. package/types/nanahoshi-mona-ui-button.d.ts +12 -0
  171. package/types/nanahoshi-mona-ui-calendar.d.ts +3 -0
  172. package/types/nanahoshi-mona-ui-chart.d.ts +250 -20
  173. package/types/nanahoshi-mona-ui-check-box.d.ts +4 -0
  174. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +4 -0
  175. package/types/nanahoshi-mona-ui-collapsible.d.ts +10 -0
  176. package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -1
  177. package/types/nanahoshi-mona-ui-command.d.ts +253 -0
  178. package/types/nanahoshi-mona-ui-common.d.ts +17 -1
  179. package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -2
  180. package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -1
  181. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -1
  182. package/types/nanahoshi-mona-ui-dialog.d.ts +58 -1
  183. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +7 -3
  184. package/types/nanahoshi-mona-ui-dropdowns.d.ts +55 -1
  185. package/types/nanahoshi-mona-ui-editor.d.ts +31 -0
  186. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +13 -0
  187. package/types/nanahoshi-mona-ui-fieldset.d.ts +5 -0
  188. package/types/nanahoshi-mona-ui-grid.d.ts +162 -35
  189. package/types/nanahoshi-mona-ui-i18n.d.ts +144 -1
  190. package/types/nanahoshi-mona-ui-internal-list.d.ts +16 -1
  191. package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +165 -0
  192. package/types/nanahoshi-mona-ui-internal-tree.d.ts +21 -2
  193. package/types/nanahoshi-mona-ui-internal.d.ts +4 -5
  194. package/types/nanahoshi-mona-ui-label.d.ts +1 -0
  195. package/types/nanahoshi-mona-ui-list-box.d.ts +27 -4
  196. package/types/nanahoshi-mona-ui-list-view.d.ts +34 -1
  197. package/types/nanahoshi-mona-ui-list.d.ts +1 -1
  198. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +10 -0
  199. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +10 -0
  200. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +10 -0
  201. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +10 -0
  202. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +10 -0
  203. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +10 -0
  204. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +10 -0
  205. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +10 -0
  206. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +10 -0
  207. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +10 -0
  208. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +10 -0
  209. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +10 -0
  210. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +10 -0
  211. package/types/nanahoshi-mona-ui-menubar.d.ts +10 -3
  212. package/types/nanahoshi-mona-ui-multi-select.d.ts +3 -3
  213. package/types/nanahoshi-mona-ui-notification.d.ts +9 -0
  214. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -1
  215. package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
  216. package/types/nanahoshi-mona-ui-pager.d.ts +5 -1
  217. package/types/nanahoshi-mona-ui-popover.d.ts +9 -1
  218. package/types/nanahoshi-mona-ui-popup-menu.d.ts +48 -161
  219. package/types/nanahoshi-mona-ui-popup.d.ts +16 -0
  220. package/types/nanahoshi-mona-ui-progress-bar.d.ts +4 -0
  221. package/types/nanahoshi-mona-ui-rating.d.ts +2 -0
  222. package/types/nanahoshi-mona-ui-segmented.d.ts +1 -0
  223. package/types/nanahoshi-mona-ui-sheet.d.ts +1 -1
  224. package/types/nanahoshi-mona-ui-slider.d.ts +2 -0
  225. package/types/nanahoshi-mona-ui-spinner.d.ts +7 -0
  226. package/types/nanahoshi-mona-ui-split-button.d.ts +7 -4
  227. package/types/nanahoshi-mona-ui-stepper.d.ts +11 -2
  228. package/types/nanahoshi-mona-ui-tabs.d.ts +4 -1
  229. package/types/nanahoshi-mona-ui-text-box.d.ts +9 -1
  230. package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -1
  231. package/types/nanahoshi-mona-ui-tooltip.d.ts +10 -2
  232. package/types/nanahoshi-mona-ui-tree-view.d.ts +6 -5
  233. package/types/nanahoshi-mona-ui-window.d.ts +66 -1
@@ -0,0 +1,567 @@
1
+ # Financial
2
+
3
+ > Candlestick and OHLC series for open, high, low and close prices.
4
+
5
+ Entry point: `@nanahoshi/mona-ui/chart`
6
+
7
+ **Selectors:** `mona-candlestick-series`, `mona-ohlc-series`
8
+
9
+ Candlestick and OHLC series draw the open, high, low and close of each period, such as a trading day, a week or a month. A candlestick shows the range between open and close as a body with wicks reaching to the high and low, and an OHLC bar shows the same four prices as a vertical line with a tick to the left for the open and to the right for the close. Each mark takes the rising, falling or neutral color by its direction. They go inside a `mona-chart` with an X and a Y axis, usually a time axis, and can share the chart with line, area and the other Cartesian series.
10
+
11
+ ## Overview
12
+
13
+ Pick the series by how the reader is used to seeing prices.
14
+
15
+ | Series | Use it for | Reads |
16
+ | :--- | :--- | :--- |
17
+ | `mona-candlestick-series` | Price action at a glance. The body makes the move from open to close easy to compare between periods, and hollow or filled bodies tell rising from falling periods without relying on color. | `openField`, `highField`, `lowField`, `closeField` |
18
+ | `mona-ohlc-series` | Dense or technical price charts, where thin bars leave more room and the open and close ticks keep each price exact. | `openField`, `highField`, `lowField`, `closeField` |
19
+
20
+ **Use something else when:**
21
+
22
+ - You only have one value per period, such as the closing price. A line or area series reads better, see [Line & Area](chart-line-area.md).
23
+ - You need the low and high of each period without the open and close. A range area or range bar shows the band, see [Line & Area](chart-line-area.md) and [Bar & Waterfall](chart-bar.md).
24
+ - You want to show how a value is built up step by step from gains and losses. Use a waterfall series, see [Bar & Waterfall](chart-bar.md).
25
+
26
+ The chart, axes, legend, tooltip and interaction parts these series sit in are described on [Chart Overview](chart.md).
27
+
28
+ ## Import & Quick Start
29
+
30
+ ```typescript
31
+ import {
32
+ CandlestickSeriesComponent,
33
+ ChartComponent,
34
+ ChartTooltipComponent,
35
+ ChartXAxisComponent,
36
+ ChartYAxisComponent
37
+ } from "@nanahoshi/mona-ui/chart";
38
+ ```
39
+
40
+ ```html
41
+ <mona-chart aria-label="ACME share price" class="h-72 w-full" xField="date" [data]="prices">
42
+ <mona-chart-x-axis type="time" />
43
+ <mona-chart-y-axis />
44
+ <mona-candlestick-series closeField="close" highField="high" lowField="low" name="ACME" openField="open" />
45
+ <mona-chart-tooltip />
46
+ </mona-chart>
47
+ ```
48
+
49
+ Give the chart a height. It fills its host, and a host without a height has none.
50
+
51
+ ## Anatomy
52
+
53
+ Each series reads its rows from the chart's `data`, unless it has its own `data`. It takes the X value from the chart's `xField`, or from its own `xField`, and the four prices from `openField`, `highField`, `lowField` and `closeField`, which are all required. A field is a property name or an accessor, `(row, index) => value`. `keyField` gives each row a stable identity, so animations follow the row rather than its X value when the data changes.
54
+
55
+ | Part | Candlestick | OHLC |
56
+ | :--- | :--- | :--- |
57
+ | High to low | A wick through the middle | A vertical stem |
58
+ | Open | The top or bottom of the body | A tick to the left |
59
+ | Close | The other end of the body | A tick to the right |
60
+
61
+ | Input | Candlestick | OHLC |
62
+ | :--- | :---: | :---: |
63
+ | `openField`, `highField`, `lowField`, `closeField` | ✓ | ✓ |
64
+ | `risingColor`, `fallingColor`, `neutralColor`, `color` | ✓ | ✓ |
65
+ | `bodyWidth`, `bodyWidthRatio`, `maxBodyWidth` | ✓ | ✓ |
66
+ | `wickColor`, `wickWidth`, `fillOpacity` | ✓ | ✓ |
67
+ | `fillMode` | ✓ | |
68
+ | `tickLength` | | ✓ |
69
+ | `dataLabels`, `valueFormatter` | ✓ | ✓ |
70
+
71
+ A period is **rising** when it closes above its open, **falling** when it closes below, and **neutral** when the two are equal. The tooltip, the data label context and screen reader announcements carry the direction (`ChartFinancialDirection`), along with the change from open to close and its percentage.
72
+
73
+ ### Templates
74
+
75
+ - `ng-template[monaChartDataLabel]`, inside a series, replaces the text of its data labels. The context is a `ChartDataLabelContext`, with `open`, `high`, `low`, `close` and their `formattedOpen`, `formattedHigh`, `formattedLow` and `formattedClose`. Turn `dataLabels` on as well.
76
+ - `ng-template[monaChartTooltipTemplate]`, inside the tooltip, gets the same prices on each point, along with `financialDirection`, `formattedChange` and `formattedChangePercentage`.
77
+ - The chart, axis, legend and tooltip templates are described on [Chart Overview](chart.md).
78
+
79
+ ## Examples
80
+
81
+ ### Candlestick
82
+
83
+ A candlestick series on a time axis. `valueFormatter` formats the four prices and the change in the tooltip, and the Y axis `formatter` formats its ticks. By default rising candles are hollow and falling ones filled.
84
+
85
+ `candlestick-example.component.ts`
86
+
87
+ ```typescript
88
+ import { Component } from "@angular/core";
89
+ import {
90
+ CandlestickSeriesComponent,
91
+ ChartComponent,
92
+ ChartTooltipComponent,
93
+ ChartXAxisComponent,
94
+ ChartYAxisComponent
95
+ } from "@nanahoshi/mona-ui/chart";
96
+ import type { ChartAxisFormatter } from "@nanahoshi/mona-ui/chart";
97
+
98
+ const usd = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
99
+
100
+ @Component({
101
+ selector: "app-chart-financial-candlestick-example",
102
+ imports: [
103
+ CandlestickSeriesComponent,
104
+ ChartComponent,
105
+ ChartTooltipComponent,
106
+ ChartXAxisComponent,
107
+ ChartYAxisComponent
108
+ ],
109
+ templateUrl: "./candlestick-example.component.html"
110
+ })
111
+ export class ChartCandlestickExampleComponent {
112
+ protected readonly prices = [
113
+ { date: new Date(2026, 2, 2), open: 182.1, high: 185.4, low: 181.2, close: 184.9 },
114
+ { date: new Date(2026, 2, 3), open: 184.9, high: 186.2, low: 182.7, close: 183.1 },
115
+ { date: new Date(2026, 2, 4), open: 183.4, high: 184.0, low: 179.8, close: 180.2 },
116
+ { date: new Date(2026, 2, 5), open: 180.0, high: 182.9, low: 179.5, close: 182.5 },
117
+ { date: new Date(2026, 2, 6), open: 182.5, high: 183.6, low: 181.1, close: 182.5 },
118
+ { date: new Date(2026, 2, 9), open: 183.0, high: 187.8, low: 182.6, close: 187.1 },
119
+ { date: new Date(2026, 2, 10), open: 187.3, high: 189.5, low: 186.4, close: 188.8 },
120
+ { date: new Date(2026, 2, 11), open: 188.6, high: 189.0, low: 184.3, close: 185.0 },
121
+ { date: new Date(2026, 2, 12), open: 185.2, high: 186.1, low: 183.0, close: 183.6 },
122
+ { date: new Date(2026, 2, 13), open: 183.8, high: 187.2, low: 183.5, close: 186.7 }
123
+ ];
124
+ protected readonly dollars: ChartAxisFormatter = value => usd.format(Number(value));
125
+ }
126
+ ```
127
+
128
+ `candlestick-example.component.html`
129
+
130
+ ```html
131
+ <mona-chart aria-label="ACME share price, March 2 to 13" class="h-72 w-full" xField="date" [data]="prices">
132
+ <mona-chart-x-axis type="time" />
133
+ <mona-chart-y-axis title="Price" [formatter]="dollars" />
134
+ <mona-candlestick-series
135
+ closeField="close"
136
+ highField="high"
137
+ lowField="low"
138
+ name="ACME"
139
+ openField="open"
140
+ [valueFormatter]="dollars" />
141
+ <mona-chart-tooltip />
142
+ </mona-chart>
143
+ ```
144
+
145
+ ### Direction colors
146
+
147
+ `risingColor`, `fallingColor` and `neutralColor` replace the green, red and gray defaults. Blue and orange stay apart for readers who can't tell red from green. The OHLC bars use a longer `tickLength` and a thicker `wickWidth`, so the open and close ticks are easier to see.
148
+
149
+ `direction-colors-example.component.ts`
150
+
151
+ ```typescript
152
+ import { Component, signal } from "@angular/core";
153
+ import {
154
+ CandlestickSeriesComponent,
155
+ ChartComponent,
156
+ ChartLegendComponent,
157
+ ChartTooltipComponent,
158
+ ChartXAxisComponent,
159
+ ChartYAxisComponent,
160
+ OhlcSeriesComponent
161
+ } from "@nanahoshi/mona-ui/chart";
162
+ import { SegmentedComponent } from "@nanahoshi/mona-ui/segmented";
163
+ import type { SegmentedOption } from "@nanahoshi/mona-ui/segmented";
164
+
165
+ type PriceSeriesType = "candlestick" | "ohlc";
166
+
167
+ @Component({
168
+ selector: "app-chart-financial-direction-colors-example",
169
+ imports: [
170
+ CandlestickSeriesComponent,
171
+ ChartComponent,
172
+ ChartLegendComponent,
173
+ ChartTooltipComponent,
174
+ ChartXAxisComponent,
175
+ ChartYAxisComponent,
176
+ OhlcSeriesComponent,
177
+ SegmentedComponent
178
+ ],
179
+ templateUrl: "./direction-colors-example.component.html"
180
+ })
181
+ export class ChartDirectionColorsExampleComponent {
182
+ protected readonly prices = [
183
+ { week: "Week 1", open: 41.2, high: 43.8, low: 40.6, close: 43.1 },
184
+ { week: "Week 2", open: 43.1, high: 44.0, low: 41.0, close: 41.5 },
185
+ { week: "Week 3", open: 41.5, high: 42.2, low: 38.9, close: 39.4 },
186
+ { week: "Week 4", open: 39.4, high: 41.7, low: 39.0, close: 41.2 },
187
+ { week: "Week 5", open: 41.2, high: 42.0, low: 40.4, close: 41.2 },
188
+ { week: "Week 6", open: 41.4, high: 45.3, low: 41.1, close: 44.9 },
189
+ { week: "Week 7", open: 44.9, high: 46.2, low: 43.8, close: 45.6 },
190
+ { week: "Week 8", open: 45.6, high: 45.9, low: 42.7, close: 43.0 }
191
+ ];
192
+ protected readonly type = signal<PriceSeriesType>("candlestick");
193
+ protected readonly types: readonly SegmentedOption<PriceSeriesType>[] = [
194
+ { label: "Candlestick", value: "candlestick" },
195
+ { label: "OHLC", value: "ohlc" }
196
+ ];
197
+
198
+ protected onTypeChange(type: PriceSeriesType | null): void {
199
+ if (type) {
200
+ this.type.set(type);
201
+ }
202
+ }
203
+ }
204
+ ```
205
+
206
+ `direction-colors-example.component.html`
207
+
208
+ ```html
209
+ <div class="flex w-full flex-col gap-3">
210
+ <mona-segmented
211
+ aria-label="Series type"
212
+ size="small"
213
+ [options]="types"
214
+ [value]="type()"
215
+ (valueChange)="onTypeChange($event)"></mona-segmented>
216
+ <mona-chart aria-label="Weekly price of a fund" class="h-72 w-full" xField="week" [data]="prices">
217
+ <mona-chart-x-axis />
218
+ <mona-chart-y-axis title="Price" />
219
+ @if (type() === "candlestick") {
220
+ <mona-candlestick-series
221
+ closeField="close"
222
+ fallingColor="#ea580c"
223
+ fillMode="filled"
224
+ highField="high"
225
+ lowField="low"
226
+ name="Fund"
227
+ neutralColor="#64748b"
228
+ openField="open"
229
+ risingColor="#2563eb" />
230
+ } @else {
231
+ <mona-ohlc-series
232
+ closeField="close"
233
+ fallingColor="#ea580c"
234
+ highField="high"
235
+ lowField="low"
236
+ name="Fund"
237
+ neutralColor="#64748b"
238
+ openField="open"
239
+ risingColor="#2563eb"
240
+ [tickLength]="8"
241
+ [wickWidth]="2" />
242
+ }
243
+ <mona-chart-legend />
244
+ <mona-chart-tooltip />
245
+ </mona-chart>
246
+ </div>
247
+ ```
248
+
249
+ ### Moving average
250
+
251
+ A line series shares the chart and its time axis with the candles, here to draw a 20-day moving average. The shared tooltip lists both, and `navigation` lets the reader zoom into the half year with the wheel, a drag or a pinch.
252
+
253
+ `moving-average-example.component.ts`
254
+
255
+ ```typescript
256
+ import { Component } from "@angular/core";
257
+ import {
258
+ CandlestickSeriesComponent,
259
+ ChartComponent,
260
+ ChartLegendComponent,
261
+ ChartTooltipComponent,
262
+ ChartXAxisComponent,
263
+ ChartYAxisComponent,
264
+ LineSeriesComponent
265
+ } from "@nanahoshi/mona-ui/chart";
266
+
267
+ interface PriceRow {
268
+ readonly average: number | null;
269
+ readonly close: number;
270
+ readonly date: Date;
271
+ readonly high: number;
272
+ readonly low: number;
273
+ readonly open: number;
274
+ }
275
+
276
+ const AVERAGE_DAYS = 20;
277
+
278
+ function round(value: number): number {
279
+ return Math.round(value * 100) / 100;
280
+ }
281
+
282
+ /** About six months of weekdays: a random walk with each row's 20-day moving average of the close. */
283
+ function createPrices(): readonly PriceRow[] {
284
+ const rows: PriceRow[] = [];
285
+ let close = 96;
286
+ for (let offset = 0; rows.length < 120; offset++) {
287
+ const date = new Date(2026, 0, 5 + offset);
288
+ if (date.getDay() === 0 || date.getDay() === 6) {
289
+ continue;
290
+ }
291
+ const index = rows.length;
292
+ const open = round(close + Math.sin(index * 1.3) * 0.6);
293
+ close = round(open + Math.sin(index / 9) * 1.5 + Math.cos(index * 2.1) * 1.1 + 0.08);
294
+ const high = round(Math.max(open, close) + 0.4 + Math.abs(Math.sin(index)) * 0.9);
295
+ const low = round(Math.min(open, close) - 0.4 - Math.abs(Math.cos(index)) * 0.9);
296
+ const recent = [...rows.slice(-(AVERAGE_DAYS - 1)).map(row => row.close), close];
297
+ const average =
298
+ recent.length === AVERAGE_DAYS ? round(recent.reduce((sum, value) => sum + value, 0) / AVERAGE_DAYS) : null;
299
+ rows.push({ average, close, date, high, low, open });
300
+ }
301
+ return rows;
302
+ }
303
+
304
+ @Component({
305
+ selector: "app-chart-financial-moving-average-example",
306
+ imports: [
307
+ CandlestickSeriesComponent,
308
+ ChartComponent,
309
+ ChartLegendComponent,
310
+ ChartTooltipComponent,
311
+ ChartXAxisComponent,
312
+ ChartYAxisComponent,
313
+ LineSeriesComponent
314
+ ],
315
+ templateUrl: "./moving-average-example.component.html"
316
+ })
317
+ export class ChartMovingAverageExampleComponent {
318
+ protected readonly prices = createPrices();
319
+ }
320
+ ```
321
+
322
+ `moving-average-example.component.html`
323
+
324
+ ```html
325
+ <mona-chart
326
+ aria-label="Daily share price with its 20-day moving average"
327
+ class="h-80 w-full"
328
+ xField="date"
329
+ [data]="prices"
330
+ [navigation]="true">
331
+ <mona-chart-x-axis type="time" />
332
+ <mona-chart-y-axis title="Price (USD)" />
333
+ <mona-candlestick-series closeField="close" highField="high" lowField="low" name="Price" openField="open" />
334
+ <mona-line-series curve="monotone-x" field="average" lineStyle="dashed" name="20-day average" />
335
+ <mona-chart-legend />
336
+ <mona-chart-tooltip [shared]="true" />
337
+ </mona-chart>
338
+ ```
339
+
340
+ ## Appearance & Styling
341
+
342
+ | Input | Values | Effect |
343
+ | :--- | :--- | :--- |
344
+ | `fillMode` | `"hollow"`, `"filled"` | Candlestick only. `hollow`, the default, draws rising bodies as an outline and fills falling and neutral ones. `filled` fills every body. |
345
+ | `risingColor`, `fallingColor`, `neutralColor` | Any CSS color, or a `var(--token)` | The color of rising, falling and neutral marks. Empty uses the theme tokens, then green, red and gray. |
346
+ | `color` | Any CSS color | One color for every mark, whatever its direction. It wins over the three direction colors. |
347
+ | `wickColor` | Any CSS color | The color of a candle's wicks or an OHLC bar's stem. Empty uses the mark's direction color. |
348
+ | `wickWidth` | Pixels | The width of wicks, stems and OHLC ticks, and of a hollow body's outline. It's never thinner than half a pixel. When unset, it comes from `--mona-chart-financial-wick-width`, or is `1`. |
349
+ | `bodyWidthRatio` | `0.05` to `1` | How much of the room each mark takes. |
350
+ | `bodyWidth` | Pixels | A fixed width for every body, or every pair of OHLC ticks, instead of the ratio. |
351
+ | `maxBodyWidth` | Pixels | The widest a mark gets, `32` by default, so a few marks on a wide chart don't turn into blocks. |
352
+ | `tickLength` | Pixels | OHLC only. The length of each open and close tick. It's never more than half the mark's width, which is also the default. |
353
+ | `fillOpacity` | A number from `0` to `1` | The opacity of the whole mark. |
354
+
355
+ ### Mark width
356
+
357
+ On a category X axis each mark takes `bodyWidthRatio` of its category's band. On a time or numeric X axis it takes that ratio of the gap to its nearest neighbor, so a weekend or holiday gap doesn't make the candles around it wider. Either way the width stays between 2 pixels and `maxBodyWidth`. A neutral candle still draws a body 1 pixel tall.
358
+
359
+ ## Theming
360
+
361
+ These tokens set the colors and wick width of every financial series inside the element they're set on, so they can go on `:root`, on a container or on one chart. An input on the series wins over its token.
362
+
363
+ | Token | Default | Sets |
364
+ | :--- | :--- | :--- |
365
+ | `--mona-chart-financial-rising-color` | `#16a34a` | Rising marks, like `risingColor`. |
366
+ | `--mona-chart-financial-falling-color` | `#ef4444` | Falling marks, like `fallingColor`. |
367
+ | `--mona-chart-financial-neutral-color` | `#6b7280` | Neutral marks, like `neutralColor`. |
368
+ | `--mona-chart-financial-wick-color` | The direction color | Wicks and stems, like `wickColor`. |
369
+ | `--mona-chart-financial-wick-width` | `1` | The width of wicks, stems and ticks, like `wickWidth`. |
370
+ | `--mona-chart-financial-hollow-fill` | The surface color | The inside of hollow candles. Without it, the theme's surface, card or background color is used, so a hollow body matches the chart behind it. |
371
+
372
+ ```css
373
+ .trading-view {
374
+ --mona-chart-financial-rising-color: #2563eb;
375
+ --mona-chart-financial-falling-color: #ea580c;
376
+ }
377
+ ```
378
+
379
+ The legend swatch of a financial series is split diagonally between the rising and falling colors, or the single `color` when one is set.
380
+
381
+ ## Behavior
382
+
383
+ ### Data rules
384
+
385
+ A row is skipped, with a development warning, when:
386
+
387
+ - any of its four prices is missing or not a finite number,
388
+ - its low is above the open or close, or its high is below them,
389
+ - its X value isn't valid for a time or numeric X axis,
390
+ - its X value, or its `keyField` value, repeats an earlier row's. The first row wins.
391
+
392
+ Skipped rows leave no mark and aren't announced. A chart with no valid rows, and no other series to draw, shows its no-data state.
393
+
394
+ ### Axes
395
+
396
+ - The X axis can be a category, time (or `utc`) or numeric axis. With `type="auto"` it becomes a time axis for `Date` values and ISO date strings, and a category axis for other strings. A category axis puts the marks side by side and leaves out the gaps between trading days; a time axis keeps them.
397
+ - On a time or numeric X axis the domain is widened by half a step at each end, so the first and last marks aren't cut in half. An explicit `min` or `max` turns that off for its end.
398
+ - The Y axis spans the lowest low to the highest high. It doesn't stretch to zero, unless a bar or area series shares it.
399
+
400
+ ### One financial series per chart
401
+
402
+ A chart draws one candlestick or OHLC series. Any other financial series in the same chart is ignored, with a development warning. Line, area and other Cartesian series can share the chart with it.
403
+
404
+ ### Value formatting
405
+
406
+ `valueFormatter` formats the open, high, low, close and change in the tooltip, the data labels and screen reader announcements. Without it they use the Y axis `formatter`, and without that the library locale. The change percentage always uses the locale's percent format.
407
+
408
+ ### Data labels
409
+
410
+ `dataLabels` writes each mark's closing price beside it. Automatic placement tries ahead of the mark, behind it, above and below. `inside-*` positions don't apply to these marks and fall back to `right`. Labels suit a few dozen marks at most; on longer series, prefer the tooltip.
411
+
412
+ ### Dense data
413
+
414
+ Candlestick and OHLC series are never downsampled, because merging periods would need to keep the first open, the highest high, the lowest low and the last close. The chart's `downsampling` still applies to the other series in it. On a long series, turn on `navigation` so the reader can zoom in, see [Chart Overview](chart.md).
415
+
416
+ ### Two-way binding
417
+
418
+ `[(visible)]` holds whether the series is shown. The legend sets it when the user toggles the series.
419
+
420
+ ## Accessibility
421
+
422
+ The chart is the focusable element, and these series add no roles of their own. Each mark is announced with its series name, its X value, the open, high, low and close, whether it rose, fell or stayed unchanged, and the change. Give the series a `name`, and use `valueFormatter` to add the currency.
423
+
424
+ - **Don't rely on color alone.** Keep the candlestick's default `fillMode="hollow"`, so rising and falling candles differ in shape as well as color. On an OHLC bar, the open tick is always on the left and the close on the right.
425
+ - **Mind red and green.** The default colors are hard to tell apart for many readers. The tooltip names the direction in words, and `risingColor` and `fallingColor` can switch to a pair such as blue and orange.
426
+ - **Keep custom colors visible.** A rising or falling color needs a 3:1 contrast with the chart background to meet WCAG AA for graphics.
427
+ - **Offer a table for long series.** `dataTable` adds a visually hidden table of the chart's first 100 rows for screen readers.
428
+
429
+ ### Keyboard Navigation
430
+
431
+ | Key | Action |
432
+ | :--- | :--- |
433
+ | `ArrowRight` / `ArrowLeft` | Move to the next or previous period. |
434
+ | `ArrowUp` / `ArrowDown` | Move to another series at the same X value, such as a moving average line. |
435
+ | `Home` / `End` | Move to the first or last period. |
436
+
437
+ The rest of the keys, including selection, brushing and navigation, are listed on [Chart Overview](chart.md).
438
+
439
+ ## API
440
+
441
+ Everything below is imported from `@nanahoshi/mona-ui/chart`.
442
+
443
+ ### `OhlcSeriesComponent`
444
+
445
+ Renders traditional financial OHLC (Open-High-Low-Close) bar series with vertical high/low price spans, left-facing
446
+ open ticks, right-facing close ticks, and directional color coding.
447
+
448
+ **Selector:** `mona-ohlc-series`
449
+
450
+ #### Inputs
451
+
452
+ | Name | Type | Default | Description |
453
+ | --- | --- | --- | --- |
454
+ | `bodyWidth` | `number \| undefined` | `undefined` | Explicit total width in pixels for open/close tick arms. |
455
+ | `bodyWidthRatio` | `number` | `0.7` | Ratio of available category slot or mark spacing allocated to open/close tick arms (0.0 to 1.0). |
456
+ | `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
457
+ | `closeField` (required) | `ChartField` | — | Property key or accessor extracting the closing price for each data item. |
458
+ | `color` | `string \| undefined` | `undefined` | Optional color override applied uniformly across all OHLC ticks and stems. |
459
+ | `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
460
+ | `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
461
+ | `fallingColor` | `string` | `""` | Color for falling / bearish bars (close < open). |
462
+ | `fillOpacity` | `number \| undefined` | `undefined` | Fill and stroke opacity ratio (0 to 1). |
463
+ | `highField` (required) | `ChartField` | — | Property key or accessor extracting the highest price for each data item. |
464
+ | `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
465
+ | `lowField` (required) | `ChartField` | — | Property key or accessor extracting the lowest price for each data item. |
466
+ | `maxBodyWidth` | `number` | `32` | Maximum total tick width in pixels. |
467
+ | `name` | `string` | `"OHLC"` | Name of the series displayed in legends, tooltips, and live region announcements. |
468
+ | `neutralColor` | `string` | `""` | Color for neutral / flat bars (close === open). |
469
+ | `opacity` | `number \| undefined` | `undefined` | **Deprecated.** Use `fillOpacity`, as on the other series. Overall opacity multiplier applied to OHLC stems and tick arms. |
470
+ | `openField` (required) | `ChartField` | — | Property key or accessor extracting the opening price for each data item. |
471
+ | `risingColor` | `string` | `""` | Color for rising / bullish bars (close > open). |
472
+ | `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
473
+ | `tickLength` | `number \| undefined` | `undefined` | Length in pixels for horizontal open and close tick arms. |
474
+ | `tickWidth` | `number \| undefined` | `undefined` | Backward-compatible alias for tickLength. |
475
+ | `valueFormatter` | `ChartAxisFormatter \| undefined` | `undefined` | Formatter callback transforming financial numeric values into custom display strings. |
476
+ | `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
477
+ | `wickColor` | `string` | `""` | Explicit stroke color for the central vertical stem. |
478
+ | `wickWidth` | `number \| undefined` | `undefined` | Pixel stroke width for OHLC stems and tick arms. When unset, the series reads `--mona-chart-financial-wick-width`, or uses `1`. |
479
+ | `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
480
+ | `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
481
+ | `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
482
+
483
+ #### Outputs
484
+
485
+ | Name | Type | Description |
486
+ | --- | --- | --- |
487
+ | `visibleChange` | `boolean` | Emitted when `visible` changes. |
488
+
489
+ ### `CandlestickSeriesComponent`
490
+
491
+ Renders financial Japanese candlestick series with central high/low wicks, rectangular open/close bodies,
492
+ rising/falling/neutral color coding, and solid or hollow rising bodies.
493
+
494
+ **Selector:** `mona-candlestick-series`
495
+
496
+ #### Inputs
497
+
498
+ | Name | Type | Default | Description |
499
+ | --- | --- | --- | --- |
500
+ | `bodyWidth` | `number \| undefined` | `undefined` | Explicit body width in pixels for candlestick candles. |
501
+ | `bodyWidthRatio` | `number` | `0.7` | Ratio of available category slot or mark spacing allocated to candle bodies (0.0 to 1.0). |
502
+ | `class` | `string` | `""` | Additional CSS classes applied to the series host element. |
503
+ | `closeField` (required) | `ChartField` | — | Property key or accessor extracting the closing price for each data item. |
504
+ | `color` | `string \| undefined` | `undefined` | Optional color override applied uniformly across all candle bodies. |
505
+ | `data` | `readonly unknown[] \| undefined` | `undefined` | Series-specific dataset overriding the root chart data. |
506
+ | `dataLabels` | `ChartDataLabelsInput` | `false` | Data label display options or boolean flag enabling default labels. |
507
+ | `fallingColor` | `string` | `""` | Color for falling / bearish candles (close < open). |
508
+ | `fillMode` | `ChartFinancialFillMode` | `"hollow"` | Visual fill mode for candle bodies: 'filled' (solid fill) or 'hollow' (rising hollow, falling filled). |
509
+ | `fillOpacity` | `number \| undefined` | `undefined` | Fill and stroke opacity ratio (0 to 1). |
510
+ | `highField` (required) | `ChartField` | — | Property key or accessor extracting the highest price for each data item. |
511
+ | `keyField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting a stable datum identity across updates. |
512
+ | `lowField` (required) | `ChartField` | — | Property key or accessor extracting the lowest price for each data item. |
513
+ | `maxBodyWidth` | `number` | `32` | Maximum candle body width in pixels. |
514
+ | `name` | `string` | `"Candlestick"` | Name of the series displayed in legends, tooltips, and live region announcements. |
515
+ | `neutralColor` | `string` | `""` | Color for neutral / flat candles (close === open). |
516
+ | `opacity` | `number \| undefined` | `undefined` | **Deprecated.** Use `fillOpacity`, as on the other series. Overall opacity multiplier applied to candle wicks and bodies. |
517
+ | `openField` (required) | `ChartField` | — | Property key or accessor extracting the opening price for each data item. |
518
+ | `risingColor` | `string` | `""` | Color for rising / bullish candles (close > open). |
519
+ | `seriesKey` | `string \| undefined` | `undefined` | Optional stable key identifying this series for mark identity and selection across updates. |
520
+ | `valueFormatter` | `ChartAxisFormatter \| undefined` | `undefined` | Formatter callback transforming financial numeric values into custom display strings. |
521
+ | `visible` (two-way) | `boolean` | `true` | Whether the series is currently visible on the chart and in calculations. |
522
+ | `wickColor` | `string` | `""` | Explicit stroke color for the upper and lower wicks. |
523
+ | `wickWidth` | `number \| undefined` | `undefined` | Pixel stroke width for candle wicks. When unset, the series reads `--mona-chart-financial-wick-width`, or uses `1`. |
524
+ | `xAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian X axis this series binds to. When omitted, the primary X axis is used. |
525
+ | `xField` | `ChartField \| undefined` | `undefined` | Property key or accessor extracting the X coordinate, overriding the root chart X field. |
526
+ | `yAxisId` | `string \| undefined` | `undefined` | Optional ID of the Cartesian Y axis this series binds to. When omitted, the primary Y axis is used. |
527
+
528
+ #### Outputs
529
+
530
+ | Name | Type | Description |
531
+ | --- | --- | --- |
532
+ | `visibleChange` | `boolean` | Emitted when `visible` changes. |
533
+
534
+ ### Types
535
+
536
+ #### `ChartOhlcPointValue`
537
+
538
+ | Name | Type |
539
+ | --- | --- |
540
+ | `change?` (read-only) | `number` |
541
+ | `changePercentage?` (read-only) | `number` |
542
+ | `close` (read-only) | `number` |
543
+ | `direction` (read-only) | `ChartFinancialDirection` |
544
+ | `formattedChange?` (read-only) | `string` |
545
+ | `formattedChangePercentage?` (read-only) | `string` |
546
+ | `formattedClose?` (read-only) | `string` |
547
+ | `formattedHigh?` (read-only) | `string` |
548
+ | `formattedLow?` (read-only) | `string` |
549
+ | `formattedOpen?` (read-only) | `string` |
550
+ | `high` (read-only) | `number` |
551
+ | `low` (read-only) | `number` |
552
+ | `open` (read-only) | `number` |
553
+ | `valueKind` (read-only) | `"ohlc"` |
554
+
555
+ #### `ChartFinancialDirection`
556
+
557
+ ```typescript
558
+ type ChartFinancialDirection = "falling" | "neutral" | "rising";
559
+ ```
560
+
561
+ #### `ChartFinancialFillMode`
562
+
563
+ ```typescript
564
+ type ChartFinancialFillMode = "filled" | "hollow";
565
+ ```
566
+
567
+ **Documented elsewhere:** [`ChartAxisFormatter`](chart.md), [`ChartDataLabelsInput`](chart.md), [`ChartField`](chart.md)