ngwr 16.4.0 → 16.5.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.
Files changed (258) hide show
  1. package/charts/bar-chart/styles/_index.scss +494 -305
  2. package/charts/boxplot-chart/styles/_index.scss +114 -48
  3. package/charts/bullet-chart/styles/_index.scss +113 -42
  4. package/charts/calendar-heatmap/styles/_index.scss +111 -20
  5. package/charts/candlestick-chart/styles/_index.scss +61 -26
  6. package/charts/chart-legend/styles/_index.scss +119 -1
  7. package/charts/core/styles/_index.scss +201 -5
  8. package/charts/donut-chart/styles/_index.scss +76 -21
  9. package/charts/funnel-chart/styles/_index.scss +66 -38
  10. package/charts/gauge/styles/_index.scss +12 -1
  11. package/charts/heatmap-chart/styles/_index.scss +90 -53
  12. package/charts/line-chart/styles/_index.scss +143 -139
  13. package/charts/meter-group/styles/_index.scss +87 -25
  14. package/charts/radar-chart/styles/_index.scss +82 -40
  15. package/charts/scatter-chart/styles/_index.scss +117 -44
  16. package/charts/sparkline/styles/_index.scss +7 -1
  17. package/charts/treemap-chart/styles/_index.scss +94 -42
  18. package/charts/waterfall-chart/styles/_index.scss +150 -87
  19. package/color-picker/styles/_index.scss +7 -3
  20. package/copy-value/styles/_index.scss +21 -2
  21. package/date-stamp/styles/_index.scss +2 -1
  22. package/dialog/styles/_index.scss +6 -0
  23. package/drawer/styles/_index.scss +5 -1
  24. package/fesm2022/ngwr-carousel-testing.mjs +4 -1
  25. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
  26. package/fesm2022/ngwr-carousel.mjs +21 -2
  27. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  28. package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
  29. package/fesm2022/ngwr-cascader.mjs +48 -4
  30. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  31. package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
  32. package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
  33. package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
  34. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  35. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
  36. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
  37. package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
  38. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
  39. package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
  40. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
  41. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
  42. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  43. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
  44. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
  45. package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
  46. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  47. package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
  48. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  49. package/fesm2022/ngwr-charts-core.mjs +299 -18
  50. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  51. package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
  52. package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
  53. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  54. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
  55. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
  56. package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
  57. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
  58. package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
  59. package/fesm2022/ngwr-charts-gauge.mjs +98 -12
  60. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  61. package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
  62. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
  63. package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
  64. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  65. package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
  66. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  67. package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
  68. package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
  69. package/fesm2022/ngwr-charts-meter-group.mjs +223 -31
  70. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  71. package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
  72. package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
  73. package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
  74. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  75. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
  76. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
  77. package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
  78. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  79. package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
  80. package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
  81. package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
  82. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
  83. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
  84. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
  85. package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
  86. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
  87. package/fesm2022/ngwr-color-picker.mjs +44 -4
  88. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  89. package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
  90. package/fesm2022/ngwr-context-menu.mjs +47 -19
  91. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  92. package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
  93. package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
  94. package/fesm2022/ngwr-copy-value.mjs +38 -2
  95. package/fesm2022/ngwr-copy-value.mjs.map +1 -1
  96. package/fesm2022/ngwr-date-picker.mjs +56 -8
  97. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  98. package/fesm2022/ngwr-dialog.mjs +13 -5
  99. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  100. package/fesm2022/ngwr-drawer.mjs +19 -3
  101. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  102. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  103. package/fesm2022/ngwr-dropdown.mjs +35 -6
  104. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  105. package/fesm2022/ngwr-editor.mjs +1 -0
  106. package/fesm2022/ngwr-editor.mjs.map +1 -1
  107. package/fesm2022/ngwr-graph.mjs +81 -13
  108. package/fesm2022/ngwr-graph.mjs.map +1 -1
  109. package/fesm2022/ngwr-i18n-ar.mjs +5 -0
  110. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  111. package/fesm2022/ngwr-i18n-cs.mjs +5 -0
  112. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  113. package/fesm2022/ngwr-i18n-de.mjs +5 -0
  114. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  115. package/fesm2022/ngwr-i18n-en.mjs +5 -0
  116. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  117. package/fesm2022/ngwr-i18n-es.mjs +5 -0
  118. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  119. package/fesm2022/ngwr-i18n-fr.mjs +5 -0
  120. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  121. package/fesm2022/ngwr-i18n-he.mjs +5 -0
  122. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  123. package/fesm2022/ngwr-i18n-hi.mjs +5 -0
  124. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  125. package/fesm2022/ngwr-i18n-id.mjs +5 -0
  126. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  127. package/fesm2022/ngwr-i18n-it.mjs +5 -0
  128. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  129. package/fesm2022/ngwr-i18n-ja.mjs +5 -0
  130. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  131. package/fesm2022/ngwr-i18n-ko.mjs +5 -0
  132. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  133. package/fesm2022/ngwr-i18n-nl.mjs +5 -0
  134. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  135. package/fesm2022/ngwr-i18n-pl.mjs +5 -0
  136. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  137. package/fesm2022/ngwr-i18n-pt.mjs +5 -0
  138. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  139. package/fesm2022/ngwr-i18n-ru.mjs +5 -0
  140. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-sv.mjs +5 -0
  142. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-tr.mjs +5 -0
  144. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-uk.mjs +5 -0
  146. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-vi.mjs +5 -0
  148. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-zh-tw.mjs +5 -0
  150. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-zh.mjs +5 -0
  152. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  153. package/fesm2022/ngwr-lightbox.mjs +20 -3
  154. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  155. package/fesm2022/ngwr-overlay.mjs +21 -2
  156. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  157. package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
  158. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  159. package/fesm2022/ngwr-popconfirm.mjs +41 -5
  160. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  161. package/fesm2022/ngwr-popover.mjs +67 -12
  162. package/fesm2022/ngwr-popover.mjs.map +1 -1
  163. package/fesm2022/ngwr-schema-form.mjs +2 -0
  164. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  165. package/fesm2022/ngwr-table.mjs +2 -0
  166. package/fesm2022/ngwr-table.mjs.map +1 -1
  167. package/fesm2022/ngwr-tour.mjs +14 -9
  168. package/fesm2022/ngwr-tour.mjs.map +1 -1
  169. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  170. package/fesm2022/ngwr-tree.mjs +49 -16
  171. package/fesm2022/ngwr-tree.mjs.map +1 -1
  172. package/fesm2022/ngwr-version.mjs +1 -1
  173. package/fesm2022/ngwr-version.mjs.map +1 -1
  174. package/fesm2022/ngwr-window.mjs +16 -9
  175. package/fesm2022/ngwr-window.mjs.map +1 -1
  176. package/i18n/ar.json +5 -0
  177. package/i18n/cs.json +5 -0
  178. package/i18n/de.json +5 -0
  179. package/i18n/en.json +5 -0
  180. package/i18n/es.json +5 -0
  181. package/i18n/fr.json +5 -0
  182. package/i18n/he.json +5 -0
  183. package/i18n/hi.json +5 -0
  184. package/i18n/id.json +5 -0
  185. package/i18n/it.json +5 -0
  186. package/i18n/ja.json +5 -0
  187. package/i18n/ko.json +5 -0
  188. package/i18n/nl.json +5 -0
  189. package/i18n/pl.json +5 -0
  190. package/i18n/pt.json +5 -0
  191. package/i18n/ru.json +5 -0
  192. package/i18n/sv.json +5 -0
  193. package/i18n/tr.json +5 -0
  194. package/i18n/uk.json +5 -0
  195. package/i18n/vi.json +5 -0
  196. package/i18n/zh-TW.json +5 -0
  197. package/i18n/zh.json +5 -0
  198. package/llms-full.txt +8 -8
  199. package/llms.txt +7 -3
  200. package/package.json +1 -1
  201. package/popconfirm/styles/_index.scss +6 -0
  202. package/popover/styles/_index.scss +24 -13
  203. package/schematics/use/symbol-map.json +1 -0
  204. package/skills/ngwr/references/catalog.md +1 -1
  205. package/tour/styles/_index.scss +6 -0
  206. package/types/ngwr-carousel-testing.d.ts +6 -4
  207. package/types/ngwr-carousel.d.ts +14 -3
  208. package/types/ngwr-cascader-testing.d.ts +4 -3
  209. package/types/ngwr-cascader.d.ts +27 -3
  210. package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
  211. package/types/ngwr-charts-bar-chart.d.ts +220 -48
  212. package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
  213. package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
  214. package/types/ngwr-charts-bullet-chart.d.ts +72 -12
  215. package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
  216. package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
  217. package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
  218. package/types/ngwr-charts-chart-legend.d.ts +142 -5
  219. package/types/ngwr-charts-core.d.ts +259 -21
  220. package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
  221. package/types/ngwr-charts-donut-chart.d.ts +124 -16
  222. package/types/ngwr-charts-funnel-chart.d.ts +62 -6
  223. package/types/ngwr-charts-gauge-testing.d.ts +5 -1
  224. package/types/ngwr-charts-gauge.d.ts +72 -10
  225. package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
  226. package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
  227. package/types/ngwr-charts-line-chart.d.ts +215 -86
  228. package/types/ngwr-charts-meter-group.d.ts +96 -7
  229. package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
  230. package/types/ngwr-charts-radar-chart.d.ts +148 -28
  231. package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
  232. package/types/ngwr-charts-scatter-chart.d.ts +188 -18
  233. package/types/ngwr-charts-sparkline.d.ts +26 -4
  234. package/types/ngwr-charts-treemap-chart.d.ts +121 -23
  235. package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
  236. package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
  237. package/types/ngwr-color-picker.d.ts +27 -0
  238. package/types/ngwr-context-menu-testing.d.ts +10 -9
  239. package/types/ngwr-context-menu.d.ts +17 -0
  240. package/types/ngwr-copy-value.d.ts +8 -0
  241. package/types/ngwr-date-picker.d.ts +34 -2
  242. package/types/ngwr-dialog.d.ts +30 -10
  243. package/types/ngwr-drawer.d.ts +32 -1
  244. package/types/ngwr-dropdown-testing.d.ts +8 -5
  245. package/types/ngwr-dropdown.d.ts +29 -6
  246. package/types/ngwr-graph.d.ts +22 -6
  247. package/types/ngwr-lightbox.d.ts +15 -0
  248. package/types/ngwr-overlay.d.ts +16 -1
  249. package/types/ngwr-popconfirm-testing.d.ts +11 -2
  250. package/types/ngwr-popconfirm.d.ts +28 -1
  251. package/types/ngwr-popover.d.ts +59 -9
  252. package/types/ngwr-table.d.ts +1 -1
  253. package/types/ngwr-tour.d.ts +21 -2
  254. package/types/ngwr-tree-testing.d.ts +1 -2
  255. package/types/ngwr-tree.d.ts +33 -2
  256. package/types/ngwr-version.d.ts +1 -1
  257. package/types/ngwr-window.d.ts +14 -11
  258. package/window/styles/_index.scss +5 -10
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { WrChartLegendItem } from "ngwr/charts/chart-legend";
2
+ import { WrChartLegendItem, WrChartLegendPosition } from "ngwr/charts/chart-legend";
3
3
  import { WrChartAxis, WrChartMarkerExtent, WrChartMarkerShape, WrChartTableData } from "ngwr/charts/core";
4
4
  /**
5
5
  * @license
@@ -62,9 +62,21 @@ interface DrawnPoint {
62
62
  readonly r: number;
63
63
  /** Its marker's path about the origin. */
64
64
  readonly d: string;
65
+ /** The same path in relative commands, for a path of many markers. */
66
+ readonly relative: string;
67
+ /** Its `x`, `y` and radius, and its `size` when it has one, as one attribute: what a test harness reads a point by. */
68
+ readonly values: string;
65
69
  /** How far its hover ring reaches from its centre, in px: what the tooltip points at and the pointer reads. */
66
70
  readonly halo: WrChartMarkerExtent;
67
71
  }
72
+ /** A stretch of consecutive points of one series, in drawing order: one group in the drawing. */
73
+ interface Run {
74
+ readonly key: string;
75
+ readonly series: number;
76
+ readonly color: string;
77
+ readonly marker: WrChartMarkerShape;
78
+ readonly points: readonly DrawnPoint[];
79
+ }
68
80
  /**
69
81
  * Points on two numeric axes: one series per marker shape, and an optional third value
70
82
  * drawn as each point's area, which makes it a bubble chart. SVG-only — no external
@@ -83,8 +95,9 @@ interface DrawnPoint {
83
95
  * ```
84
96
  *
85
97
  * Each series is told apart by its marker's SHAPE as well as its colour — a circle, a
86
- * square, a triangle, a diamond, a cross, a downward triangle — since the palette's
87
- * colours sit too close in lightness to be read alone. Neither axis is forced to include
98
+ * square, a triangle, a diamond, a cross, a downward triangle — so colour is never the
99
+ * only thing that tells two series apart. Each takes the next colour of the chart
100
+ * palette (`--wr-chart-1` to `--wr-chart-8`). Neither axis is forced to include
88
101
  * zero: each is fitted to its data and snapped outward to a readable step, so no point
89
102
  * lands exactly on the frame, and a single value sits in the middle with a step either
90
103
  * side. A point can still sit a hair inside the frame, so the plot's padding grows to
@@ -92,11 +105,23 @@ interface DrawnPoint {
92
105
  *
93
106
  * The drawing is one named `role="img"` and takes no tab stop; the tooltip is pointer
94
107
  * only. `dataTable` renders every value as a table only assistive technology reaches.
95
- * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), and with
96
- * `toggleableLegend` its rows show and hide their series through `hiddenSeries`.
108
+ * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), placed by
109
+ * `legendPosition` and left out for a single series; with `toggleableLegend` its rows
110
+ * show and hide their series through `hiddenSeries`. Hovering a marker or a legend row
111
+ * dims every other series.
112
+ *
113
+ * **Grid and axes.** Gridlines run across the plot at every y tick (`showGrid`), the
114
+ * one at zero stronger, and both axes print their scale (`showAxis`). The gridlines up
115
+ * the plot at the x ticks are in the DOM and painted `transparent`:
116
+ * `--wr-scatter-chart-grid-x-color` draws them.
97
117
  *
98
- * Hovering finds the nearest point by measuring every one, so a chart meant for more
99
- * than a few thousand points is better served by binning them first.
118
+ * **Empty, loading, error.** With no point to draw the chart keeps its frame and says
119
+ * "No data"; `loading` and `error` put their own message there in place of the points.
120
+ *
121
+ * **Many points.** The pointer finds the nearest point through a grid over the drawing,
122
+ * one lookup a move whatever the count. Up to two thousand points shown each is an
123
+ * element of its own, drawn largest first; past that every series is one path holding
124
+ * all its markers, drawn series by series.
100
125
  *
101
126
  * @see https://ngwr.dev/charts/scatter-chart
102
127
  */
@@ -150,10 +175,49 @@ export declare class WrScatterChart {
150
175
  private readonly ordinals;
151
176
  /** The plot's height in px, at least 80. @default 240 */
152
177
  readonly height: import("@angular/core").InputSignalWithTransform<number, unknown>;
153
- /** Show the gridlines and the tick labels of both axes. @default true */
178
+ /**
179
+ * Draw the gridlines: one across the plot at every tick of the y axis, in
180
+ * `--wr-scatter-chart-grid-color`, which defaults to the chart theme's
181
+ * `--wr-chart-grid`; the one at zero is drawn in `--wr-scatter-chart-zero-color`. The
182
+ * lines up the plot at the x ticks are drawn `transparent` unless
183
+ * `--wr-scatter-chart-grid-x-color` gives them a colour. The scales' numbers are
184
+ * `showAxis`. @default true
185
+ */
154
186
  readonly showGrid: import("@angular/core").InputSignalWithTransform<boolean, any>;
155
- /** Show the legend above the chart. @default true */
156
- readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean, any>;
187
+ /**
188
+ * Print both axes' scales: a number beside the plot at every y tick and under it at
189
+ * every x tick. Off, the gutter and the strip go and the drawing takes their room.
190
+ * The axes' names are `xLabel` and `yLabel`. @default true
191
+ */
192
+ readonly showAxis: import("@angular/core").InputSignalWithTransform<boolean, any>;
193
+ /**
194
+ * Show the legend. `'auto'` shows it when there is something to tell apart - two
195
+ * series or more - and leaves it out for a single series, which has nothing to key;
196
+ * `true` shows it for one series too. @default 'auto'
197
+ */
198
+ readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean | "auto", unknown>;
199
+ /**
200
+ * Where the legend sits: `bottom` or `top` of the chart as a wrapping row, `start` or
201
+ * `end` of it as a column, or `none` for no legend at all - `hiddenSeries` still hides
202
+ * a series from outside. @default 'bottom'
203
+ */
204
+ readonly legendPosition: import("@angular/core").InputSignal<WrChartLegendPosition>;
205
+ /**
206
+ * A request for the chart's data is in flight: the points give way to the loading
207
+ * message, over the grid and the axes the chart keeps. @default false
208
+ */
209
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
210
+ /**
211
+ * The chart's data failed to load: the points give way to the error message. `loading`
212
+ * wins over it. @default false
213
+ */
214
+ readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
215
+ /** The message shown with nothing to draw. Falls back to `chart.empty`, then `'No data'`. */
216
+ readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
217
+ /** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
218
+ readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
219
+ /** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
220
+ readonly errorLabel: import("@angular/core").InputSignal<string | null>;
157
221
  /**
158
222
  * Make each legend row a toggle button that shows and hides its series, through
159
223
  * `hiddenSeries`. A row is a `<button aria-pressed>`, pressed while its series is
@@ -173,8 +237,15 @@ export declare class WrScatterChart {
173
237
  * `series` is kept and ignored.
174
238
  */
175
239
  readonly hiddenSeries: import("@angular/core").ModelSignal<readonly number[]>;
176
- /** Show a tooltip with the series, x, y and size of the point under the pointer. Pointer only. @default true */
177
- readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
240
+ /**
241
+ * Show a tooltip with the series, x, y and size of the point under the pointer.
242
+ * Pointer only.
243
+ *
244
+ * By default the pointer passes under the chip to the chart, so the next section
245
+ * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
246
+ * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
247
+ */
248
+ readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
178
249
  /**
179
250
  * Render every point's values as a table only assistive technology reaches, beside the
180
251
  * drawing: one group of rows per series shown, headed by the series' name, a row per
@@ -190,6 +261,11 @@ export declare class WrScatterChart {
190
261
  */
191
262
  readonly maxRadius: import("@angular/core").InputSignalWithTransform<number, unknown>;
192
263
  private readonly svg;
264
+ private readonly plot;
265
+ /** The drawing's box, on the observer every chart shares: what a path of many markers is written for. */
266
+ private readonly drawingSize;
267
+ /** Each marker's path and reach, built once per shape and radius. */
268
+ private readonly markerOf;
193
269
  /**
194
270
  * Every series, resolved: its palette colour, its marker shape, and its points with
195
271
  * every one dropped whose `x` or `y` is not a finite number. Hidden ones included, since
@@ -215,6 +291,20 @@ export declare class WrScatterChart {
215
291
  }[]>;
216
292
  /** The legend's rows: every series, keyed by its own marker. */
217
293
  protected readonly legendItems: import("@angular/core").Signal<readonly WrChartLegendItem[]>;
294
+ /**
295
+ * Whether the chart draws its legend: with a series to list, unless `legendPosition`
296
+ * is `none` or `showLegend` is off. Under `showLegend="auto"` a single series has
297
+ * nothing to tell apart, and draws none.
298
+ */
299
+ protected readonly legendShown: import("@angular/core").Signal<boolean>;
300
+ /** Whether the legend comes before the plot, in the DOM as on screen: above it, or at inline start. */
301
+ protected readonly legendFirst: import("@angular/core").Signal<boolean>;
302
+ /** Whether the legend sits beside the plot rather than above or below it. */
303
+ protected readonly legendSide: import("@angular/core").Signal<boolean>;
304
+ /** Whether the chart has nothing to draw: no series, or none with a point it can place. Hidden ones count as data. */
305
+ private readonly empty;
306
+ /** What the chart shows in place of its points, or `null` while it draws them. */
307
+ protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
218
308
  /** The series drawn, read and fitted to: every one `hiddenSeries` does not name. */
219
309
  protected readonly visibleSeries: import("@angular/core").Signal<{
220
310
  index: number;
@@ -249,6 +339,38 @@ export declare class WrScatterChart {
249
339
  * the series' order, so a plain scatter draws series by series.
250
340
  */
251
341
  protected readonly points: import("@angular/core").Signal<readonly DrawnPoint[]>;
342
+ /** Whether there are too many points shown for a node each: every series is then one path. */
343
+ protected readonly dense: import("@angular/core").Signal<boolean>;
344
+ /**
345
+ * The points as groups: each stretch of consecutive points of one series, in drawing
346
+ * order. A plain scatter is a group per series; a bubble chart, whose points are drawn
347
+ * largest first across series so no small bubble is buried, breaks a series into as
348
+ * many groups as its sizes interleave with the others'. The group carries what its
349
+ * points share - the colour, the shape and the legend row the hover dims by - so a
350
+ * point carries only its own place and path. None once the chart is {@link dense}.
351
+ */
352
+ protected readonly runs: import("@angular/core").Signal<readonly Run[]>;
353
+ /** The box a path of many markers is written for, in px: the drawing's, once a browser has measured it. */
354
+ private readonly denseSize;
355
+ /** The `viewBox` of the paths of many markers: the size they were written for, so nothing stretches once measured. */
356
+ protected readonly denseBox: import("@angular/core").Signal<string>;
357
+ /**
358
+ * Past {@link DENSE_FROM} points shown, every series as ONE path, a subpath per marker,
359
+ * largest first within the series. A path takes no percentage, so it is written in px
360
+ * for the drawing's measured size and again when that changes; until a browser has
361
+ * measured it, for an assumed one the `viewBox` stretches to fit. Series are drawn in
362
+ * order, so across series a large bubble can cover a smaller one of an earlier series -
363
+ * the price of one element a series, and bubbles are see-through.
364
+ */
365
+ protected readonly densePaths: import("@angular/core").Signal<{
366
+ series: number;
367
+ color: string;
368
+ marker: WrChartMarkerShape;
369
+ count: number;
370
+ d: string;
371
+ }[]>;
372
+ /** The points bucketed over the drawing, for the pointer: built once per change to the points. */
373
+ private readonly index;
252
374
  /**
253
375
  * How far the largest marker drawn reaches past its centre, in px, sideways and up or
254
376
  * down — its hover ring included, so hovering moves nothing. The axes keep a point
@@ -265,10 +387,14 @@ export declare class WrScatterChart {
265
387
  x: number;
266
388
  y: number;
267
389
  }>;
268
- /** The y ticks, top to bottom: each value's label and its gridline's distance from the top, in percent. */
390
+ /**
391
+ * The y ticks, top to bottom: each value's label, its gridline's distance from the top
392
+ * in percent, and whether it is the line at zero, which is drawn stronger.
393
+ */
269
394
  protected readonly yTicks: import("@angular/core").Signal<{
270
395
  label: string;
271
396
  top: number;
397
+ zero: boolean;
272
398
  }[]>;
273
399
  /** The x ticks, left to right: each value's label and its gridline's distance from the left, in percent. */
274
400
  protected readonly xTicks: import("@angular/core").Signal<{
@@ -289,12 +415,17 @@ export declare class WrScatterChart {
289
415
  *
290
416
  * Points are found by POSITION — the nearest within 16px of the pointer, or anywhere a
291
417
  * larger marker reaches — so a point under the open chip can still be reached by
292
- * moving onto it, the way a sparkline is scrubbed.
418
+ * moving onto it, the way a sparkline is scrubbed. The point is the one the pointer's
419
+ * own lookup found: this reads it by its position in `points`, and measures the drawing
420
+ * once to say where it is.
293
421
  */
294
422
  protected readonly tip: import("ngwr/popover").WrChartTooltip;
295
- /** The point the tooltip is reading, ringed in the drawing. */
423
+ /** The point the tooltip is reading, drawn again over the rest. None under a state, which has no point to read. */
296
424
  protected readonly activePoint: import("@angular/core").Signal<DrawnPoint | null>;
297
- /** The ring round the hovered point: its own shape, a little larger. */
425
+ /**
426
+ * The hovered point's marker: its own shape a little larger, which the stylesheet rings
427
+ * in the surface, so the reading stands clear of the points it overlaps.
428
+ */
298
429
  protected readonly haloPath: import("@angular/core").Signal<string>;
299
430
  /**
300
431
  * The figures for `dataTable`: the chart's name as the caption, one group per series
@@ -307,13 +438,17 @@ export declare class WrScatterChart {
307
438
  * The point under the pointer. A MOUSE event, as every chart's is: a tap fires the
308
439
  * compatibility `mousemove` and no `pointermove`. Off every point, the open tooltip
309
440
  * starts its grace period.
441
+ *
442
+ * Only while no chip is up: an open chip follows the pointer by itself, through
443
+ * `pointAt`, so each move is looked up once.
310
444
  */
311
- protected onPointerMove(event: MouseEvent): void;
445
+ private onPointerMove;
312
446
  /**
313
447
  * The point nearest a viewport position: within 16px of its centre, or within the
314
448
  * circle its hover ring fits in where that is larger — a triangle's point or a
315
449
  * diamond's tips reach past its radius — and the nearest centre where several qualify.
316
- * A drawing with no box (nothing laid out yet) answers nothing.
450
+ * A drawing with no box (nothing laid out yet) answers nothing. One layout read, and a
451
+ * look in the few cells of the index the pointer can reach rather than at every point.
317
452
  */
318
453
  private pointAt;
319
454
  /** One axis over the points shown: `wrChartAxis` with both ends kept off the data, and one value centred. */
@@ -360,11 +495,46 @@ export declare class WrScatterChart {
360
495
  "required": false;
361
496
  "isSignal": true;
362
497
  };
498
+ "showAxis": {
499
+ "alias": "showAxis";
500
+ "required": false;
501
+ "isSignal": true;
502
+ };
363
503
  "showLegend": {
364
504
  "alias": "showLegend";
365
505
  "required": false;
366
506
  "isSignal": true;
367
507
  };
508
+ "legendPosition": {
509
+ "alias": "legendPosition";
510
+ "required": false;
511
+ "isSignal": true;
512
+ };
513
+ "loading": {
514
+ "alias": "loading";
515
+ "required": false;
516
+ "isSignal": true;
517
+ };
518
+ "error": {
519
+ "alias": "error";
520
+ "required": false;
521
+ "isSignal": true;
522
+ };
523
+ "emptyLabel": {
524
+ "alias": "emptyLabel";
525
+ "required": false;
526
+ "isSignal": true;
527
+ };
528
+ "loadingLabel": {
529
+ "alias": "loadingLabel";
530
+ "required": false;
531
+ "isSignal": true;
532
+ };
533
+ "errorLabel": {
534
+ "alias": "errorLabel";
535
+ "required": false;
536
+ "isSignal": true;
537
+ };
368
538
  "toggleableLegend": {
369
539
  "alias": "toggleableLegend";
370
540
  "required": false;
@@ -3,6 +3,11 @@ import * as i0 from "@angular/core";
3
3
  * Tiny inline trend line. SVG path drawn from `[data]: number[]` — no
4
4
  * axes, no labels, just the shape. Optional area fill + tip dot.
5
5
  *
6
+ * The line is the first colour of the chart palette (`--wr-chart-1`) unless `color`
7
+ * says otherwise. The drawing is inset from its box by the tip dot's radius, so the dot
8
+ * on a last point at the edge, or on the highest or lowest one, stays inside `width` by
9
+ * `height` and no ancestor that clips at the box cuts it.
10
+ *
6
11
  * @example
7
12
  * ```html
8
13
  * <wr-sparkline [data]="[12, 14, 9, 17, 21, 18, 23]" />
@@ -24,7 +29,10 @@ export declare class WrSparkline {
24
29
  * named `role="img"` only when a consumer says what it shows.
25
30
  */
26
31
  readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
27
- /** Stroke colour. @default 'var(--wr-color-primary)' */
32
+ /**
33
+ * Stroke colour. The first colour of the chart palette, which is the brand colour
34
+ * unless the theme says otherwise. @default 'var(--wr-chart-1)'
35
+ */
28
36
  readonly color: import("@angular/core").InputSignal<string>;
29
37
  /**
30
38
  * Line thickness in CSS pixels — `vector-effect="non-scaling-stroke"` keeps it at
@@ -41,10 +49,14 @@ export declare class WrSparkline {
41
49
  /** CSS height. @default '2rem' */
42
50
  readonly height: import("@angular/core").InputSignal<string>;
43
51
  /**
44
- * Show a tooltip with the value of the point nearest the pointer, marking that
45
- * point, and named by `ariaLabel` when one is given. Pointer only. @default true
52
+ * Show a tooltip with the value of the point nearest the pointer, marking that point,
53
+ * and named by `ariaLabel` when one is given. Pointer only.
54
+ *
55
+ * By default the pointer passes under the chip to the chart, so the next section
56
+ * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
57
+ * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
46
58
  */
47
- readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
59
+ readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
48
60
  /**
49
61
  * Writes the value in the tooltip. `null` uses `Intl.NumberFormat` in `LOCALE_ID`.
50
62
  */
@@ -80,6 +92,16 @@ export declare class WrSparkline {
80
92
  /** A zero-length line at the last point, which a round cap paints as the tip dot. */
81
93
  protected readonly tipPath: import("@angular/core").Signal<string | null>;
82
94
  protected readonly viewBox: string;
95
+ /**
96
+ * How far the drawing sits in from the edge of its box, in px: the radius of the tip
97
+ * dot, three times the line's width across, or half the line's width with no dot. It is
98
+ * the SVG's padding, so the viewport the points are scaled into is that much smaller on
99
+ * every side and nothing drawn at an edge reaches past `width` by `height`. The dot of
100
+ * a last point used to hang over the box, where a table cell or a card cut it off.
101
+ */
102
+ protected readonly inset: import("@angular/core").Signal<number>;
103
+ /** The box the viewBox is stretched over: the SVG's box, less its padding. */
104
+ private drawing;
83
105
  /**
84
106
  * One tooltip, pointing at the hovered point: above its marker, below it when there
85
107
  * is no room. The marker is the anchor element itself, drawn for the point the
@@ -1,4 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
+ import { WrChartLegendItem, WrChartLegendPosition } from "ngwr/charts/chart-legend";
2
3
  import { WrChartTableData } from "ngwr/charts/core";
3
4
  /**
4
5
  * @license
@@ -42,6 +43,8 @@ interface ResolvedNode {
42
43
  /** Every name from the top-level node down to this one. */
43
44
  readonly path: readonly string[];
44
45
  readonly color: string;
46
+ /** The position of the top-level node it sits under: its row in the legend. */
47
+ readonly series: number;
45
48
  /** Its own `value`, when that is a finite number. */
46
49
  readonly own: number | null;
47
50
  /**
@@ -85,22 +88,31 @@ interface ResolvedNode {
85
88
  * sum leaves the rest of its rectangle empty: what the children do not account for. A
86
89
  * group too small to hold its children is drawn as one block.
87
90
  *
88
- * **Colour is the top-level node's**, from the chart's palette, and every node inside it
89
- * takes it unless it has a `color` of its own. It is never the only thing that tells two
90
- * groups apart: each carries its name where there is room, and its tiles sit inside its
91
- * own rectangle; the tooltip and the data table name the ones too small to write in. The
92
- * gap round every tile is a faint separator in the surface colour, not a boundary drawn
93
- * to be read on its own; under `prefers-contrast: more` it is a line at 3:1 or more
94
- * against the tints, and under forced colours an outline in the text colour. With more
95
- * than five top-level nodes the palette repeats, and the names are what tell neighbours
96
- * of one colour apart.
91
+ * **Colour is the top-level node's**, from the chart palette (`--wr-chart-1` to `-8`),
92
+ * and every node inside it takes it unless it has a `color` of its own. A tile is the
93
+ * solid colour, and the line round it is the surface (`--wr-chart-separator`), so two
94
+ * tiles of one colour still read as two. The text on a tile is black or white, whichever
95
+ * reads on that tile's colour. Colour is never the only thing that tells two groups
96
+ * apart: each carries its name where there is room, and its tiles sit inside its own
97
+ * rectangle; the tooltip and the data table name the ones too small to write in, and
98
+ * `showLegend` keys the top-level nodes beside the chart. Under forced colours the line
99
+ * is an outline in the text colour. With more than eight top-level nodes the palette
100
+ * repeats, and the names are what tell neighbours of one colour apart.
97
101
  *
98
102
  * **Names are written inside the tiles that have room** — a group's in its strip, a
99
- * leaf's in its corner with its value under it — and ellipsised past the tile's width.
100
- * A tile smaller than about 36 × 22 px writes nothing; the tooltip and the data table
101
- * name every node in full, with its whole path. A value is never cut: one wider than its
102
- * tile, or than the room its group's name leaves in the strip, is left out, since `$12…`
103
- * reads as another number, and the tooltip and the data table carry it whole.
103
+ * leaf's in its corner with its value under it. A name is written whole where it fits,
104
+ * and cut with an ellipsis only on a tile wide enough to keep about nine letters of it:
105
+ * a narrower tile whose name does not fit, or one smaller than about 36 × 22 px, writes
106
+ * nothing rather than `Le…`. The tooltip and the data table name every node in full,
107
+ * with its whole path. A value is never cut: one wider than its tile, or than the room
108
+ * its group's name leaves in the strip, is left out, since `$12…` reads as another
109
+ * number, and the tooltip and the data table carry it whole.
110
+ *
111
+ * **Hover.** The tile under the pointer is ringed, and every tile outside its top-level
112
+ * node falls back; a legend row does the same for its node.
113
+ *
114
+ * **Empty, loading, error.** With nothing to draw the chart keeps its box and says
115
+ * "No data"; `loading` and `error` put their own message there in place of the tiles.
104
116
  *
105
117
  * **What a screen reader gets.** The drawing is one named `role="img"`, and nothing in it
106
118
  * is announced. The tooltip is pointer only, so say what the chart shows in `ariaLabel`,
@@ -147,11 +159,42 @@ export declare class WrTreemapChart {
147
159
  /** Write each value under its name, and each group's beside its name, where there is room. @default true */
148
160
  readonly showValues: import("@angular/core").InputSignalWithTransform<boolean, any>;
149
161
  /**
150
- * Show a tooltip for the tile under the pointer: its path from the top-level node, its
151
- * value, and its share of the whole. Pointer only — the data table is where the same
152
- * figures are for a keyboard or a screen reader. @default true
162
+ * Key the top-level nodes in a legend: a dot in each one's colour, its name and its
163
+ * value. Off by default, since a tile with room carries its own name. `'auto'` shows
164
+ * it when there are two top-level nodes or more. @default false
165
+ */
166
+ readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean | "auto", unknown>;
167
+ /**
168
+ * Where the legend sits: `bottom` or `top` of the chart as a wrapping row, `start` or
169
+ * `end` of it as a column, or `none` for no legend at all. @default 'bottom'
170
+ */
171
+ readonly legendPosition: import("@angular/core").InputSignal<WrChartLegendPosition>;
172
+ /**
173
+ * A request for the chart's data is in flight: the tiles give way to the loading
174
+ * message, in the box the chart had. @default false
175
+ */
176
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
177
+ /**
178
+ * The chart's data failed to load: the tiles give way to the error message. `loading`
179
+ * wins while both are set. @default false
180
+ */
181
+ readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
182
+ /** The message shown when there is nothing to draw. Falls back to `chart.empty`, then `'No data'`. */
183
+ readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
184
+ /** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
185
+ readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
186
+ /** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
187
+ readonly errorLabel: import("@angular/core").InputSignal<string | null>;
188
+ /**
189
+ * Show a tooltip for the tile under the pointer: its path from the top-level node,
190
+ * its value, and its share of the whole. Pointer only — the data table is where the
191
+ * same figures are for a keyboard or a screen reader.
192
+ *
193
+ * By default the pointer passes under the chip to the chart, so the next section
194
+ * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
195
+ * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
153
196
  */
154
- readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
197
+ readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
155
198
  /**
156
199
  * Writes every value the chart shows: inside the tiles, in the tooltip and in the data
157
200
  * table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, compact inside the tiles
@@ -187,7 +230,16 @@ export declare class WrTreemapChart {
187
230
  private readonly smallShares;
188
231
  private readonly plot;
189
232
  private readonly tileEls;
190
- /** The plot's measured content box, once a browser has laid it out. */
233
+ /**
234
+ * The plot's content box, on the observer every chart shares: one callback a frame for
235
+ * every chart on the page, where each treemap used to make an observer of its own.
236
+ */
237
+ private readonly size;
238
+ /**
239
+ * The last size the plot measured, in whole px, or `null` before it has one. A hidden
240
+ * chart measures nothing and keeps the layout it had rather than collapse it, and a
241
+ * drag that moves the width by a fraction of a pixel cuts no new layout.
242
+ */
191
243
  private readonly box;
192
244
  constructor();
193
245
  /** The data, resolved: top-level nodes with every node below them. */
@@ -206,6 +258,7 @@ export declare class WrTreemapChart {
206
258
  protected readonly tiles: import("@angular/core").Signal<{
207
259
  key: string;
208
260
  node: ResolvedNode;
261
+ series: number;
209
262
  group: boolean;
210
263
  header: boolean;
211
264
  labelled: boolean;
@@ -230,12 +283,22 @@ export declare class WrTreemapChart {
230
283
  * with its total.
231
284
  */
232
285
  protected readonly tip: import("ngwr/popover").WrChartTooltip;
286
+ /** The legend's rows: every top-level node, keyed by a dot in its colour, with its value. */
287
+ protected readonly legendItems: import("@angular/core").Signal<readonly WrChartLegendItem[]>;
233
288
  /**
234
- * The tile under the pointer, heard once on the plot rather than on every tile: the
235
- * nearest tile up from the element the pointer is over. A MOUSE event, as every chart's
236
- * is: a tap fires the compatibility `mousemove` and no `pointermove`.
289
+ * Whether the chart draws its legend: asked for with `showLegend`, unless
290
+ * `legendPosition` is `none` or there is no node. Under `showLegend="auto"` a single
291
+ * top-level node has nothing to tell apart, and draws none.
237
292
  */
238
- protected onPointerMove(event: MouseEvent): void;
293
+ protected readonly legendShown: import("@angular/core").Signal<boolean>;
294
+ /** Whether the legend comes before the plot, in the DOM as on screen: above it, or at inline start. */
295
+ protected readonly legendFirst: import("@angular/core").Signal<boolean>;
296
+ /** Whether the legend sits beside the plot rather than above or below it. */
297
+ protected readonly legendSide: import("@angular/core").Signal<boolean>;
298
+ /** Whether the chart has nothing to draw: no node with an area. */
299
+ private readonly empty;
300
+ /** What the chart shows in place of its tiles, or `null` while it draws them. */
301
+ protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
239
302
  /** A node's share of the whole, through `percentFormat` or as a percentage in `LOCALE_ID`, or `''` for one with no area. */
240
303
  private share;
241
304
  static ɵfac: i0.ɵɵFactoryDeclaration<WrTreemapChart, never>;
@@ -270,6 +333,41 @@ export declare class WrTreemapChart {
270
333
  "required": false;
271
334
  "isSignal": true;
272
335
  };
336
+ "showLegend": {
337
+ "alias": "showLegend";
338
+ "required": false;
339
+ "isSignal": true;
340
+ };
341
+ "legendPosition": {
342
+ "alias": "legendPosition";
343
+ "required": false;
344
+ "isSignal": true;
345
+ };
346
+ "loading": {
347
+ "alias": "loading";
348
+ "required": false;
349
+ "isSignal": true;
350
+ };
351
+ "error": {
352
+ "alias": "error";
353
+ "required": false;
354
+ "isSignal": true;
355
+ };
356
+ "emptyLabel": {
357
+ "alias": "emptyLabel";
358
+ "required": false;
359
+ "isSignal": true;
360
+ };
361
+ "loadingLabel": {
362
+ "alias": "loadingLabel";
363
+ "required": false;
364
+ "isSignal": true;
365
+ };
366
+ "errorLabel": {
367
+ "alias": "errorLabel";
368
+ "required": false;
369
+ "isSignal": true;
370
+ };
273
371
  "tooltip": {
274
372
  "alias": "tooltip";
275
373
  "required": false;
@@ -114,7 +114,14 @@ export declare class WrWaterfallChartHarness extends ComponentHarness {
114
114
  getConnectorCount(): Promise<number>;
115
115
  /** Whether the gridlines are drawn (`showGrid`). */
116
116
  hasGrid(): Promise<boolean>;
117
- /** The value axis' tick labels, top to bottom; `[]` with `showGrid` off. */
117
+ /** Whether the value axis' scale is printed beside the plot (`showAxis`). */
118
+ hasAxis(): Promise<boolean>;
119
+ /**
120
+ * The message the chart shows in place of its bars: "No data" with no step, or the
121
+ * loading or error message. `null` while it draws its bars.
122
+ */
123
+ getStateLabel(): Promise<string | null>;
124
+ /** The value axis' tick labels, top to bottom; `[]` with `showAxis` off. */
118
125
  getYTicks(): Promise<string[]>;
119
126
  /**
120
127
  * Where zero is — the line every total stands on — as the percentage of the drawing's