@howells/hairline 0.0.0-stage → 0.2.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 (456) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +21 -0
  3. package/README.md +148 -2
  4. package/lib/charts/axes.js +5 -0
  5. package/lib/charts/basics/candlestick.data.js +44 -0
  6. package/lib/charts/basics/candlestick.js +180 -0
  7. package/lib/charts/basics/daily-empty.js +24 -0
  8. package/lib/charts/basics/daily-readings.js +16 -0
  9. package/lib/charts/basics/dot-heat.data.js +225 -0
  10. package/lib/charts/basics/dot-heat.js +174 -0
  11. package/lib/charts/basics/dumbbell-queue.js +203 -0
  12. package/lib/charts/basics/hairline-area.js +208 -0
  13. package/lib/charts/basics/hairline-line.js +195 -0
  14. package/lib/charts/basics/nested-treemap.data.js +55 -0
  15. package/lib/charts/basics/nested-treemap.js +191 -0
  16. package/lib/charts/basics/paired-rungs.data.js +31 -0
  17. package/lib/charts/basics/paired-rungs.js +151 -0
  18. package/lib/charts/basics/plumb-scatter.js +229 -0
  19. package/lib/charts/basics/rung-bars.js +178 -0
  20. package/lib/charts/basics/rung-geometry.js +6 -0
  21. package/lib/charts/basics/rung-histogram.data.js +73 -0
  22. package/lib/charts/basics/rung-histogram.js +153 -0
  23. package/lib/charts/basics/rung-waterfall.data.js +30 -0
  24. package/lib/charts/basics/rung-waterfall.js +150 -0
  25. package/lib/charts/basics/rungs.js +22 -0
  26. package/lib/charts/basics/series-key.js +26 -0
  27. package/lib/charts/basics/stacked-rungs.data.js +42 -0
  28. package/lib/charts/basics/stacked-rungs.js +174 -0
  29. package/lib/charts/basics/stream-ribbon.data.js +124 -0
  30. package/lib/charts/basics/stream-ribbon.js +336 -0
  31. package/lib/charts/basics/tick-box.data.js +50 -0
  32. package/lib/charts/basics/tick-box.js +226 -0
  33. package/lib/charts/basics/tick-donut.data.js +30 -0
  34. package/lib/charts/basics/tick-donut.js +210 -0
  35. package/lib/charts/basics/tick-gauge.data.js +8 -0
  36. package/lib/charts/basics/tick-gauge.js +169 -0
  37. package/lib/charts/basics/tick-rows.data.js +30 -0
  38. package/lib/charts/basics/tick-rows.js +121 -0
  39. package/lib/charts/basics/util-a.js +15 -0
  40. package/lib/charts/basics/util-b.js +13 -0
  41. package/lib/charts/big/circular-graph.data.js +827 -0
  42. package/lib/charts/big/circular-graph.js +289 -0
  43. package/lib/charts/big/force-galaxy-model.js +167 -0
  44. package/lib/charts/big/force-galaxy.data.js +813 -0
  45. package/lib/charts/big/force-galaxy.js +276 -0
  46. package/lib/charts/big/thread-triptych.data.js +204 -0
  47. package/lib/charts/big/thread-triptych.js +334 -0
  48. package/lib/charts/board/room.js +6 -0
  49. package/lib/charts/board/slope.js +176 -0
  50. package/lib/charts/board/spread.js +28 -0
  51. package/lib/charts/control.js +18 -0
  52. package/lib/charts/core.js +84 -0
  53. package/lib/charts/data-table.js +34 -0
  54. package/lib/charts/fills.js +153 -0
  55. package/lib/charts/forms/area-difference.data.js +62 -0
  56. package/lib/charts/forms/area-difference.js +192 -0
  57. package/lib/charts/forms/brush-math.js +42 -0
  58. package/lib/charts/forms/brush-strip.js +199 -0
  59. package/lib/charts/forms/brushed-overview.data.js +374 -0
  60. package/lib/charts/forms/brushed-overview.js +162 -0
  61. package/lib/charts/forms/chord-ring.data.js +140 -0
  62. package/lib/charts/forms/chord-ring.js +167 -0
  63. package/lib/charts/forms/circle-pack.data.js +80 -0
  64. package/lib/charts/forms/circle-pack.js +99 -0
  65. package/lib/charts/forms/hatched-stack.data.js +71 -0
  66. package/lib/charts/forms/hatched-stack.js +228 -0
  67. package/lib/charts/forms/radial-year.data.js +13 -0
  68. package/lib/charts/forms/radial-year.js +156 -0
  69. package/lib/charts/frame.js +73 -0
  70. package/lib/charts/glance/aggregate-sankey.data.js +74 -0
  71. package/lib/charts/glance/aggregate-sankey.js +242 -0
  72. package/lib/charts/glance/bar-race.data.js +122 -0
  73. package/lib/charts/glance/bar-race.js +246 -0
  74. package/lib/charts/glance/big-slice.data.js +41 -0
  75. package/lib/charts/glance/big-slice.js +238 -0
  76. package/lib/charts/glance/chunky-bars.data.js +22 -0
  77. package/lib/charts/glance/chunky-bars.js +113 -0
  78. package/lib/charts/glance/circular-graph.data.js +146 -0
  79. package/lib/charts/glance/circular-graph.js +138 -0
  80. package/lib/charts/glance/control-slot.js +9 -0
  81. package/lib/charts/glance/diverging-bar.data.js +34 -0
  82. package/lib/charts/glance/diverging-bar.js +154 -0
  83. package/lib/charts/glance/dot-waffle.data.js +26 -0
  84. package/lib/charts/glance/dot-waffle.js +179 -0
  85. package/lib/charts/glance/draw-in.data.js +9 -0
  86. package/lib/charts/glance/draw-in.goals.json.js +289 -0
  87. package/lib/charts/glance/draw-in.js +214 -0
  88. package/lib/charts/glance/dynamic-stream.data.js +6 -0
  89. package/lib/charts/glance/dynamic-stream.js +189 -0
  90. package/lib/charts/glance/force-graph.data.js +77 -0
  91. package/lib/charts/glance/force-graph.js +211 -0
  92. package/lib/charts/glance/jitter-strip.data.js +10 -0
  93. package/lib/charts/glance/jitter-strip.easter.json.js +430 -0
  94. package/lib/charts/glance/jitter-strip.js +157 -0
  95. package/lib/charts/glance/link-bundle.js +51 -0
  96. package/lib/charts/glance/matrix-heat-glance.data.js +108 -0
  97. package/lib/charts/glance/matrix-heat-glance.js +170 -0
  98. package/lib/charts/glance/pictorial-bar.data.js +22 -0
  99. package/lib/charts/glance/pictorial-bar.js +180 -0
  100. package/lib/charts/glance/rainfall-dual-area.data.js +177 -0
  101. package/lib/charts/glance/rainfall-dual-area.js +192 -0
  102. package/lib/charts/glance/rank-strip.data.js +76 -0
  103. package/lib/charts/glance/rank-strip.js +172 -0
  104. package/lib/charts/glance/scatter-labels.js +60 -0
  105. package/lib/charts/glance/scatter-morph.data.js +78 -0
  106. package/lib/charts/glance/scatter-morph.js +338 -0
  107. package/lib/charts/glance/single-axis.data.js +6 -0
  108. package/lib/charts/glance/single-axis.js +150 -0
  109. package/lib/charts/glance/single-axis.tides.json.js +180 -0
  110. package/lib/charts/glance/stagger-wave.data.js +66 -0
  111. package/lib/charts/glance/stagger-wave.js +132 -0
  112. package/lib/charts/glance/tree-lr.data.js +41 -0
  113. package/lib/charts/glance/tree-lr.js +135 -0
  114. package/lib/charts/glance/util-a.js +49 -0
  115. package/lib/charts/glance/util-b.js +19 -0
  116. package/lib/charts/glance/violin.data.js +9 -0
  117. package/lib/charts/glance/violin.js +185 -0
  118. package/lib/charts/glance/violin.tenors.json.js +5 -0
  119. package/lib/charts/hooks.js +154 -0
  120. package/lib/charts/hover.js +19 -0
  121. package/lib/charts/lupi/arc-matrix.data.js +83 -0
  122. package/lib/charts/lupi/arc-matrix.js +146 -0
  123. package/lib/charts/lupi/ballot-tally.data.js +22 -0
  124. package/lib/charts/lupi/ballot-tally.js +125 -0
  125. package/lib/charts/lupi/barcode-lollipop.data.js +195 -0
  126. package/lib/charts/lupi/barcode-lollipop.js +161 -0
  127. package/lib/charts/lupi/brand-spectrum.data.js +70 -0
  128. package/lib/charts/lupi/brand-spectrum.js +233 -0
  129. package/lib/charts/lupi/bubble-almanac.data.js +689 -0
  130. package/lib/charts/lupi/bubble-almanac.js +164 -0
  131. package/lib/charts/lupi/calendar-heat.data.js +399 -0
  132. package/lib/charts/lupi/calendar-heat.js +175 -0
  133. package/lib/charts/lupi/cluster-field.data.js +83 -0
  134. package/lib/charts/lupi/cluster-field.js +173 -0
  135. package/lib/charts/lupi/dot-cascade.data.js +54 -0
  136. package/lib/charts/lupi/dot-cascade.js +124 -0
  137. package/lib/charts/lupi/dotty-matrix.data.js +170 -0
  138. package/lib/charts/lupi/dotty-matrix.js +126 -0
  139. package/lib/charts/lupi/hourglass-stream.data.js +30 -0
  140. package/lib/charts/lupi/hourglass-stream.js +158 -0
  141. package/lib/charts/lupi/hundred-field.data.js +38 -0
  142. package/lib/charts/lupi/hundred-field.js +237 -0
  143. package/lib/charts/lupi/launch-fan.data.js +315 -0
  144. package/lib/charts/lupi/launch-fan.js +198 -0
  145. package/lib/charts/lupi/matrix-heat.data.js +97 -0
  146. package/lib/charts/lupi/matrix-heat.js +246 -0
  147. package/lib/charts/lupi/parallel-coordinates.data.js +54 -0
  148. package/lib/charts/lupi/parallel-coordinates.js +218 -0
  149. package/lib/charts/lupi/radial-convergence.data.js +178 -0
  150. package/lib/charts/lupi/radial-convergence.js +208 -0
  151. package/lib/charts/lupi/radial-patchwork.data.js +454 -0
  152. package/lib/charts/lupi/radial-patchwork.js +181 -0
  153. package/lib/charts/lupi/ridgeline.data.js +1834 -0
  154. package/lib/charts/lupi/ridgeline.js +195 -0
  155. package/lib/charts/lupi/trend-lineage.data.js +51 -0
  156. package/lib/charts/lupi/trend-lineage.js +198 -0
  157. package/lib/charts/lupi/type-colonnade.data.js +18 -0
  158. package/lib/charts/lupi/type-colonnade.js +198 -0
  159. package/lib/charts/lupi/util-a.js +14 -0
  160. package/lib/charts/lupi/util-b.js +12 -0
  161. package/lib/charts/maps/choropleth.js +295 -0
  162. package/lib/charts/maps/geo.js +84 -0
  163. package/lib/charts/maps/legend.js +83 -0
  164. package/lib/charts/maps/step-fill.js +9 -0
  165. package/lib/charts/maps/us-choropleth.data.js +249 -0
  166. package/lib/charts/maps/us-choropleth.js +41 -0
  167. package/lib/charts/maps/world-choropleth.data.js +681 -0
  168. package/lib/charts/maps/world-choropleth.js +46 -0
  169. package/lib/charts/markers.js +35 -0
  170. package/lib/charts/marks.js +31 -0
  171. package/lib/charts/motion.js +11 -0
  172. package/lib/charts/originals/daily-users.data.js +101 -0
  173. package/lib/charts/originals/daily-users.js +203 -0
  174. package/lib/charts/originals/feature-rank.data.js +92 -0
  175. package/lib/charts/originals/feature-rank.js +167 -0
  176. package/lib/charts/originals/format.js +5 -0
  177. package/lib/charts/originals/key.js +26 -0
  178. package/lib/charts/originals/response-time.data.js +98 -0
  179. package/lib/charts/originals/response-time.js +187 -0
  180. package/lib/charts/originals/revenue-by-plan.data.js +26 -0
  181. package/lib/charts/originals/revenue-by-plan.js +248 -0
  182. package/lib/charts/playback.js +68 -0
  183. package/lib/charts/plot-note.js +27 -0
  184. package/lib/charts/roles.js +5 -0
  185. package/lib/charts/rules.js +66 -0
  186. package/lib/charts/scale-context.js +6 -0
  187. package/lib/charts/shapes.js +8 -0
  188. package/lib/charts/shared-options.js +25 -0
  189. package/lib/charts/svg.js +43 -0
  190. package/lib/charts/text.js +30 -0
  191. package/lib/charts/texture-ids.js +20 -0
  192. package/lib/charts/texture.js +286 -0
  193. package/lib/charts/util.js +43 -0
  194. package/lib/charts/value-grid.js +26 -0
  195. package/lib/draw.js +27 -0
  196. package/lib/entries/dumbbell-queue.js +2 -0
  197. package/lib/entries/hairline-area.js +2 -0
  198. package/lib/entries/hairline-line.js +2 -0
  199. package/lib/entries/plumb-scatter.js +2 -0
  200. package/lib/entries/rung-bars.js +2 -0
  201. package/lib/entries/slope.js +2 -0
  202. package/lib/frame.js +2 -0
  203. package/lib/hairline.css +1385 -0
  204. package/lib/index.js +72 -0
  205. package/lib/json-schema/dumbbell-queue.json +258 -0
  206. package/lib/json-schema/hairline-area.json +262 -0
  207. package/lib/json-schema/hairline-line.json +256 -0
  208. package/lib/json-schema/index.json +50 -0
  209. package/lib/json-schema/plumb-scatter.json +363 -0
  210. package/lib/json-schema/rung-bars.json +230 -0
  211. package/lib/json-schema/slope.json +333 -0
  212. package/lib/kit.js +16 -0
  213. package/lib/lib/format.js +29 -0
  214. package/lib/lib/random.js +8 -0
  215. package/lib/maps.js +4 -0
  216. package/lib/schema/daily.js +9 -0
  217. package/lib/schema/dumbbell-queue.js +28 -0
  218. package/lib/schema/format.js +72 -0
  219. package/lib/schema/hairline-area.js +24 -0
  220. package/lib/schema/hairline-line.js +23 -0
  221. package/lib/schema/key.js +4 -0
  222. package/lib/schema/metrics.js +26 -0
  223. package/lib/schema/motion.js +12 -0
  224. package/lib/schema/options.js +21 -0
  225. package/lib/schema/plumb-scatter.js +48 -0
  226. package/lib/schema/registry.js +132 -0
  227. package/lib/schema/rung-bars.js +25 -0
  228. package/lib/schema/scale.js +9 -0
  229. package/lib/schema/slope.js +28 -0
  230. package/lib/schema/validate.js +25 -0
  231. package/lib/schema.js +16 -0
  232. package/lib/theme/derive.js +98 -0
  233. package/lib/theme.css +443 -0
  234. package/lib/theme.js +1 -0
  235. package/lib/tokens.css +306 -0
  236. package/lib/types/charts/axes.d.ts +14 -0
  237. package/lib/types/charts/basics/candlestick.d.ts +22 -0
  238. package/lib/types/charts/basics/candlestick.data.d.ts +10 -0
  239. package/lib/types/charts/basics/daily-empty.d.ts +7 -0
  240. package/lib/types/charts/basics/daily-readings.d.ts +38 -0
  241. package/lib/types/charts/basics/dot-heat.d.ts +19 -0
  242. package/lib/types/charts/basics/dot-heat.data.d.ts +28 -0
  243. package/lib/types/charts/basics/dumbbell-queue.d.ts +15 -0
  244. package/lib/types/charts/basics/hairline-area.d.ts +18 -0
  245. package/lib/types/charts/basics/hairline-line.d.ts +18 -0
  246. package/lib/types/charts/basics/nested-treemap.d.ts +18 -0
  247. package/lib/types/charts/basics/nested-treemap.data.d.ts +30 -0
  248. package/lib/types/charts/basics/paired-rungs.d.ts +21 -0
  249. package/lib/types/charts/basics/paired-rungs.data.d.ts +43 -0
  250. package/lib/types/charts/basics/plumb-scatter.d.ts +14 -0
  251. package/lib/types/charts/basics/rung-bars.d.ts +16 -0
  252. package/lib/types/charts/basics/rung-geometry.d.ts +6 -0
  253. package/lib/types/charts/basics/rung-histogram.d.ts +22 -0
  254. package/lib/types/charts/basics/rung-histogram.data.d.ts +34 -0
  255. package/lib/types/charts/basics/rung-waterfall.d.ts +19 -0
  256. package/lib/types/charts/basics/rung-waterfall.data.d.ts +31 -0
  257. package/lib/types/charts/basics/rungs.d.ts +28 -0
  258. package/lib/types/charts/basics/series-key.d.ts +19 -0
  259. package/lib/types/charts/basics/stacked-rungs.d.ts +20 -0
  260. package/lib/types/charts/basics/stacked-rungs.data.d.ts +26 -0
  261. package/lib/types/charts/basics/stream-ribbon.d.ts +19 -0
  262. package/lib/types/charts/basics/stream-ribbon.data.d.ts +29 -0
  263. package/lib/types/charts/basics/tick-box.d.ts +19 -0
  264. package/lib/types/charts/basics/tick-box.data.d.ts +30 -0
  265. package/lib/types/charts/basics/tick-donut.d.ts +24 -0
  266. package/lib/types/charts/basics/tick-donut.data.d.ts +25 -0
  267. package/lib/types/charts/basics/tick-gauge.d.ts +22 -0
  268. package/lib/types/charts/basics/tick-gauge.data.d.ts +24 -0
  269. package/lib/types/charts/basics/tick-rows.d.ts +18 -0
  270. package/lib/types/charts/basics/tick-rows.data.d.ts +23 -0
  271. package/lib/types/charts/basics/util-a.d.ts +10 -0
  272. package/lib/types/charts/basics/util-b.d.ts +13 -0
  273. package/lib/types/charts/big/circular-graph.d.ts +20 -0
  274. package/lib/types/charts/big/circular-graph.data.d.ts +46 -0
  275. package/lib/types/charts/big/force-galaxy-model.d.ts +109 -0
  276. package/lib/types/charts/big/force-galaxy.d.ts +18 -0
  277. package/lib/types/charts/big/force-galaxy.data.d.ts +48 -0
  278. package/lib/types/charts/big/thread-triptych.d.ts +17 -0
  279. package/lib/types/charts/big/thread-triptych.data.d.ts +41 -0
  280. package/lib/types/charts/board/room.d.ts +18 -0
  281. package/lib/types/charts/board/slope.d.ts +14 -0
  282. package/lib/types/charts/board/spread.d.ts +5 -0
  283. package/lib/types/charts/control.d.ts +17 -0
  284. package/lib/types/charts/core.d.ts +77 -0
  285. package/lib/types/charts/data-table.d.ts +18 -0
  286. package/lib/types/charts/fills.d.ts +103 -0
  287. package/lib/types/charts/forms/area-difference.d.ts +9 -0
  288. package/lib/types/charts/forms/area-difference.data.d.ts +26 -0
  289. package/lib/types/charts/forms/brush-math.d.ts +19 -0
  290. package/lib/types/charts/forms/brush-strip.d.ts +19 -0
  291. package/lib/types/charts/forms/brushed-overview.d.ts +12 -0
  292. package/lib/types/charts/forms/brushed-overview.data.d.ts +16 -0
  293. package/lib/types/charts/forms/chord-ring.d.ts +12 -0
  294. package/lib/types/charts/forms/chord-ring.data.d.ts +29 -0
  295. package/lib/types/charts/forms/circle-pack.d.ts +9 -0
  296. package/lib/types/charts/forms/circle-pack.data.d.ts +23 -0
  297. package/lib/types/charts/forms/hatched-stack.d.ts +10 -0
  298. package/lib/types/charts/forms/hatched-stack.data.d.ts +36 -0
  299. package/lib/types/charts/forms/radial-year.d.ts +8 -0
  300. package/lib/types/charts/forms/radial-year.data.d.ts +17 -0
  301. package/lib/types/charts/frame.d.ts +21 -0
  302. package/lib/types/charts/glance/aggregate-sankey.d.ts +23 -0
  303. package/lib/types/charts/glance/aggregate-sankey.data.d.ts +32 -0
  304. package/lib/types/charts/glance/bar-race.d.ts +20 -0
  305. package/lib/types/charts/glance/bar-race.data.d.ts +32 -0
  306. package/lib/types/charts/glance/big-slice.d.ts +27 -0
  307. package/lib/types/charts/glance/big-slice.data.d.ts +30 -0
  308. package/lib/types/charts/glance/chunky-bars.d.ts +18 -0
  309. package/lib/types/charts/glance/chunky-bars.data.d.ts +24 -0
  310. package/lib/types/charts/glance/circular-graph.d.ts +19 -0
  311. package/lib/types/charts/glance/circular-graph.data.d.ts +43 -0
  312. package/lib/types/charts/glance/control-slot.d.ts +9 -0
  313. package/lib/types/charts/glance/diverging-bar.d.ts +19 -0
  314. package/lib/types/charts/glance/diverging-bar.data.d.ts +27 -0
  315. package/lib/types/charts/glance/dot-waffle.d.ts +19 -0
  316. package/lib/types/charts/glance/dot-waffle.data.d.ts +31 -0
  317. package/lib/types/charts/glance/draw-in.d.ts +20 -0
  318. package/lib/types/charts/glance/draw-in.data.d.ts +6 -0
  319. package/lib/types/charts/glance/dynamic-stream.d.ts +22 -0
  320. package/lib/types/charts/glance/dynamic-stream.data.d.ts +7 -0
  321. package/lib/types/charts/glance/force-graph.d.ts +16 -0
  322. package/lib/types/charts/glance/force-graph.data.d.ts +45 -0
  323. package/lib/types/charts/glance/jitter-strip.d.ts +24 -0
  324. package/lib/types/charts/glance/jitter-strip.data.d.ts +27 -0
  325. package/lib/types/charts/glance/link-bundle.d.ts +22 -0
  326. package/lib/types/charts/glance/matrix-heat-glance.d.ts +22 -0
  327. package/lib/types/charts/glance/matrix-heat-glance.data.d.ts +35 -0
  328. package/lib/types/charts/glance/pictorial-bar.d.ts +20 -0
  329. package/lib/types/charts/glance/pictorial-bar.data.d.ts +27 -0
  330. package/lib/types/charts/glance/rainfall-dual-area.d.ts +19 -0
  331. package/lib/types/charts/glance/rainfall-dual-area.data.d.ts +32 -0
  332. package/lib/types/charts/glance/rank-strip.d.ts +19 -0
  333. package/lib/types/charts/glance/rank-strip.data.d.ts +36 -0
  334. package/lib/types/charts/glance/scatter-labels.d.ts +23 -0
  335. package/lib/types/charts/glance/scatter-morph.d.ts +22 -0
  336. package/lib/types/charts/glance/scatter-morph.data.d.ts +30 -0
  337. package/lib/types/charts/glance/single-axis.d.ts +27 -0
  338. package/lib/types/charts/glance/single-axis.data.d.ts +6 -0
  339. package/lib/types/charts/glance/stagger-wave.d.ts +18 -0
  340. package/lib/types/charts/glance/stagger-wave.data.d.ts +26 -0
  341. package/lib/types/charts/glance/tree-lr.d.ts +16 -0
  342. package/lib/types/charts/glance/tree-lr.data.d.ts +27 -0
  343. package/lib/types/charts/glance/util-a.d.ts +31 -0
  344. package/lib/types/charts/glance/util-b.d.ts +12 -0
  345. package/lib/types/charts/glance/violin.d.ts +22 -0
  346. package/lib/types/charts/glance/violin.data.d.ts +24 -0
  347. package/lib/types/charts/hooks.d.ts +109 -0
  348. package/lib/types/charts/hover.d.ts +26 -0
  349. package/lib/types/charts/lupi/arc-matrix.d.ts +18 -0
  350. package/lib/types/charts/lupi/arc-matrix.data.d.ts +28 -0
  351. package/lib/types/charts/lupi/ballot-tally.d.ts +19 -0
  352. package/lib/types/charts/lupi/ballot-tally.data.d.ts +28 -0
  353. package/lib/types/charts/lupi/barcode-lollipop.d.ts +19 -0
  354. package/lib/types/charts/lupi/barcode-lollipop.data.d.ts +26 -0
  355. package/lib/types/charts/lupi/brand-spectrum.d.ts +28 -0
  356. package/lib/types/charts/lupi/brand-spectrum.data.d.ts +34 -0
  357. package/lib/types/charts/lupi/bubble-almanac.d.ts +22 -0
  358. package/lib/types/charts/lupi/bubble-almanac.data.d.ts +45 -0
  359. package/lib/types/charts/lupi/calendar-heat.d.ts +19 -0
  360. package/lib/types/charts/lupi/calendar-heat.data.d.ts +20 -0
  361. package/lib/types/charts/lupi/cluster-field.d.ts +21 -0
  362. package/lib/types/charts/lupi/cluster-field.data.d.ts +52 -0
  363. package/lib/types/charts/lupi/dot-cascade.d.ts +22 -0
  364. package/lib/types/charts/lupi/dot-cascade.data.d.ts +24 -0
  365. package/lib/types/charts/lupi/dotty-matrix.d.ts +17 -0
  366. package/lib/types/charts/lupi/dotty-matrix.data.d.ts +32 -0
  367. package/lib/types/charts/lupi/hourglass-stream.d.ts +18 -0
  368. package/lib/types/charts/lupi/hourglass-stream.data.d.ts +27 -0
  369. package/lib/types/charts/lupi/hundred-field.d.ts +18 -0
  370. package/lib/types/charts/lupi/hundred-field.data.d.ts +24 -0
  371. package/lib/types/charts/lupi/launch-fan.d.ts +37 -0
  372. package/lib/types/charts/lupi/launch-fan.data.d.ts +41 -0
  373. package/lib/types/charts/lupi/matrix-heat.d.ts +20 -0
  374. package/lib/types/charts/lupi/matrix-heat.data.d.ts +29 -0
  375. package/lib/types/charts/lupi/parallel-coordinates.d.ts +23 -0
  376. package/lib/types/charts/lupi/parallel-coordinates.data.d.ts +40 -0
  377. package/lib/types/charts/lupi/radial-convergence.d.ts +15 -0
  378. package/lib/types/charts/lupi/radial-convergence.data.d.ts +24 -0
  379. package/lib/types/charts/lupi/radial-patchwork.d.ts +16 -0
  380. package/lib/types/charts/lupi/radial-patchwork.data.d.ts +35 -0
  381. package/lib/types/charts/lupi/ridgeline.d.ts +23 -0
  382. package/lib/types/charts/lupi/ridgeline.data.d.ts +19 -0
  383. package/lib/types/charts/lupi/trend-lineage.d.ts +18 -0
  384. package/lib/types/charts/lupi/trend-lineage.data.d.ts +56 -0
  385. package/lib/types/charts/lupi/type-colonnade.d.ts +20 -0
  386. package/lib/types/charts/lupi/type-colonnade.data.d.ts +30 -0
  387. package/lib/types/charts/lupi/util-a.d.ts +9 -0
  388. package/lib/types/charts/lupi/util-b.d.ts +11 -0
  389. package/lib/types/charts/maps/choropleth.d.ts +33 -0
  390. package/lib/types/charts/maps/geo.d.ts +48 -0
  391. package/lib/types/charts/maps/legend.d.ts +14 -0
  392. package/lib/types/charts/maps/step-fill.d.ts +6 -0
  393. package/lib/types/charts/maps/us-choropleth.d.ts +25 -0
  394. package/lib/types/charts/maps/us-choropleth.data.d.ts +23 -0
  395. package/lib/types/charts/maps/world-choropleth.d.ts +22 -0
  396. package/lib/types/charts/maps/world-choropleth.data.d.ts +35 -0
  397. package/lib/types/charts/markers.d.ts +42 -0
  398. package/lib/types/charts/marks.d.ts +58 -0
  399. package/lib/types/charts/motion.d.ts +12 -0
  400. package/lib/types/charts/originals/daily-users.d.ts +13 -0
  401. package/lib/types/charts/originals/daily-users.data.d.ts +17 -0
  402. package/lib/types/charts/originals/feature-rank.d.ts +13 -0
  403. package/lib/types/charts/originals/feature-rank.data.d.ts +29 -0
  404. package/lib/types/charts/originals/format.d.ts +2 -0
  405. package/lib/types/charts/originals/key.d.ts +16 -0
  406. package/lib/types/charts/originals/response-time.d.ts +11 -0
  407. package/lib/types/charts/originals/response-time.data.d.ts +24 -0
  408. package/lib/types/charts/originals/revenue-by-plan.d.ts +12 -0
  409. package/lib/types/charts/originals/revenue-by-plan.data.d.ts +26 -0
  410. package/lib/types/charts/playback.d.ts +42 -0
  411. package/lib/types/charts/plot-note.d.ts +37 -0
  412. package/lib/types/charts/roles.d.ts +28 -0
  413. package/lib/types/charts/rules.d.ts +62 -0
  414. package/lib/types/charts/scale-context.d.ts +3 -0
  415. package/lib/types/charts/shapes.d.ts +9 -0
  416. package/lib/types/charts/shared-options.d.ts +25 -0
  417. package/lib/types/charts/svg.d.ts +24 -0
  418. package/lib/types/charts/text.d.ts +36 -0
  419. package/lib/types/charts/texture-ids.d.ts +24 -0
  420. package/lib/types/charts/texture.d.ts +185 -0
  421. package/lib/types/charts/util.d.ts +66 -0
  422. package/lib/types/charts/value-grid.d.ts +22 -0
  423. package/lib/types/draw.d.ts +279 -0
  424. package/lib/types/entries/dumbbell-queue.d.ts +2 -0
  425. package/lib/types/entries/hairline-area.d.ts +2 -0
  426. package/lib/types/entries/hairline-line.d.ts +2 -0
  427. package/lib/types/entries/plumb-scatter.d.ts +2 -0
  428. package/lib/types/entries/rung-bars.d.ts +2 -0
  429. package/lib/types/entries/slope.d.ts +2 -0
  430. package/lib/types/frame.d.ts +2 -0
  431. package/lib/types/index.d.ts +82 -0
  432. package/lib/types/kit.d.ts +22 -0
  433. package/lib/types/lib/format.d.ts +58 -0
  434. package/lib/types/lib/random.d.ts +5 -0
  435. package/lib/types/maps.d.ts +2 -0
  436. package/lib/types/schema/daily.d.ts +14 -0
  437. package/lib/types/schema/dumbbell-queue.d.ts +91 -0
  438. package/lib/types/schema/format.d.ts +101 -0
  439. package/lib/types/schema/hairline-area.d.ts +83 -0
  440. package/lib/types/schema/hairline-line.d.ts +85 -0
  441. package/lib/types/schema/key.d.ts +12 -0
  442. package/lib/types/schema/metrics.d.ts +26 -0
  443. package/lib/types/schema/motion.d.ts +22 -0
  444. package/lib/types/schema/options.d.ts +51 -0
  445. package/lib/types/schema/plumb-scatter.d.ts +124 -0
  446. package/lib/types/schema/registry.d.ts +309 -0
  447. package/lib/types/schema/rung-bars.d.ts +84 -0
  448. package/lib/types/schema/scale.d.ts +36 -0
  449. package/lib/types/schema/slope.d.ts +120 -0
  450. package/lib/types/schema/validate.d.ts +29 -0
  451. package/lib/types/schema.d.ts +30 -0
  452. package/lib/types/theme/derive.d.ts +23 -0
  453. package/lib/types/theme.d.ts +2 -0
  454. package/lib/vendor/us-atlas/states-10m.json.js +13855 -0
  455. package/lib/vendor/world-atlas/countries-110m.json.js +9357 -0
  456. package/package.json +160 -3
@@ -0,0 +1,125 @@
1
+ "use client";
2
+ import { useHover as e } from "../hooks.js";
3
+ import { Plot as t, Tooltip as n } from "../core.js";
4
+ import { noteOf as r, noteSpace as i, sansWidth as a, stagger as o } from "../util.js";
5
+ import { DimGroup as s, HitRect as c, TipText as l } from "../hover.js";
6
+ import { TICK as u } from "../marks.js";
7
+ import { FootNote as d } from "../plot-note.js";
8
+ import { ChartSvg as f } from "../svg.js";
9
+ import { Label as p } from "../text.js";
10
+ import { ballotTallyDemo as m } from "./ballot-tally.data.js";
11
+ import { argMax as h } from "./util-b.js";
12
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
13
+ //#region src/charts/lupi/ballot-tally.tsx
14
+ var y = {
15
+ five: u.md,
16
+ one: u.sm,
17
+ ten: u.lg
18
+ }, b = (e, t) => Math.min(t, (Math.floor(Math.max(0, ...e.map((e) => e.value)) / 10) + 1) * 10), x = (e) => (e + 1) % 10 == 0 ? y.ten : (e + 1) % 5 == 0 ? y.five : y.one, S = ({ band: e, format: t, hero: n, index: r, layout: i, row: a, ruler: s }) => {
19
+ let { base: l, pitch: u, tall: d, x0: f } = i, m = Math.round(a.value), h = n ? "fill-hero" : "fill-l2", b = f + u * (m - 1) + 1;
20
+ return /* @__PURE__ */ v(g, { children: [
21
+ /* @__PURE__ */ _(c, {
22
+ height: e.h,
23
+ width: e.w,
24
+ x: e.x,
25
+ y: e.y
26
+ }),
27
+ /* @__PURE__ */ _(p, {
28
+ muted: !n,
29
+ order: r,
30
+ tier: "series",
31
+ voice: "label",
32
+ x: f,
33
+ y: l - d - 12,
34
+ children: a.label
35
+ }),
36
+ /* @__PURE__ */ _("g", {
37
+ className: "fade fill-l5",
38
+ style: o(r, "series"),
39
+ children: Array.from({ length: Math.max(0, s - m) }, (e, t) => {
40
+ let n = m + t, r = x(n);
41
+ return /* @__PURE__ */ _("rect", {
42
+ height: r,
43
+ width: 1,
44
+ x: f + u * n,
45
+ y: l - r
46
+ }, `rule-${a.label}-${n}`);
47
+ })
48
+ }),
49
+ /* @__PURE__ */ _("g", {
50
+ className: h,
51
+ children: Array.from({ length: m }, (e, t) => {
52
+ let n = d - y.ten + x(t);
53
+ return /* @__PURE__ */ _("rect", {
54
+ className: "grow-y",
55
+ height: n,
56
+ style: o(r * 12 + t, "dense"),
57
+ width: 1,
58
+ x: f + u * t,
59
+ y: l - n
60
+ }, `tall-${a.label}-${t}`);
61
+ })
62
+ }),
63
+ /* @__PURE__ */ _(p, {
64
+ order: r + 3,
65
+ tier: "series",
66
+ voice: "value",
67
+ x: b + 6,
68
+ y: l - d + 9,
69
+ children: t(a.value)
70
+ })
71
+ ] });
72
+ }, C = (o) => {
73
+ let c = o.data ?? m, u = o.total ?? 100, p = o.format ?? String, g = o.height ?? 460, y = e(), x = o.highlight ?? h(c.map((e) => e.value)), C = b(c, u);
74
+ return /* @__PURE__ */ _(t, { children: (e) => {
75
+ let t = i(r(o), e - 16, 24), m = c.map((e) => a(p(e.value), 11)), h = (e) => Math.max(e * (C - 1) + 1, ...c.map((t, n) => e * (Math.round(t.value) - 1) + 7 + (m[n] ?? 0))), b = Math.max(2, Math.floor((e - 1) / (C - 1)));
76
+ for (; b > 2 && h(b) > e;) --b;
77
+ let w = Math.round((e - h(b)) / 2), T = (g - t - 8) / Math.max(1, c.length), E = Math.round(Math.min(44, T * .42)), D = (e) => ({
78
+ base: Math.round(T * (e + 1) - T * .22),
79
+ pitch: b,
80
+ tall: E,
81
+ x0: w
82
+ }), O = y.key === null ? void 0 : c[y.key];
83
+ return /* @__PURE__ */ v("div", {
84
+ className: "relative",
85
+ children: [/* @__PURE__ */ v(f, {
86
+ height: g,
87
+ label: c.map((e) => `${e.label}: ${p(e.value)} of ${u}`).join(", "),
88
+ leave: y.clear,
89
+ title: "Days out",
90
+ width: e,
91
+ children: [c.map((t, n) => /* @__PURE__ */ _(s, {
92
+ dim: y.dim(n),
93
+ onPointerEnter: y.enter(n),
94
+ children: /* @__PURE__ */ _(S, {
95
+ band: {
96
+ h: T,
97
+ w: e,
98
+ x: 0,
99
+ y: T * n
100
+ },
101
+ format: p,
102
+ hero: x === n,
103
+ index: n,
104
+ layout: D(n),
105
+ row: t,
106
+ ruler: C
107
+ })
108
+ }, t.label)), /* @__PURE__ */ _(d, {
109
+ height: g,
110
+ text: r(o),
111
+ width: e
112
+ })]
113
+ }), O !== void 0 && y.key !== null && /* @__PURE__ */ _(n, {
114
+ x: w + b * Math.round(O.value) * .5,
115
+ y: D(y.key).base - E - 24,
116
+ children: /* @__PURE__ */ _(l, {
117
+ facts: [`${p(O.value)} of ${u} went`],
118
+ lead: O.label
119
+ })
120
+ })]
121
+ });
122
+ } });
123
+ };
124
+ //#endregion
125
+ export { C as BallotTally };
@@ -0,0 +1,195 @@
1
+ "use client";
2
+ //#region src/charts/lupi/barcode-lollipop.data.ts
3
+ var e = Date.UTC(2026, 9, 1), t = [
4
+ 6.087,
5
+ 5.891,
6
+ 5.689,
7
+ 5.554,
8
+ 5.54,
9
+ 5.638,
10
+ 5.784,
11
+ 5.912,
12
+ 5.973,
13
+ 6.09,
14
+ 6.116,
15
+ 6.051,
16
+ 5.914,
17
+ 5.73,
18
+ 5.522,
19
+ 5.316,
20
+ 5.138,
21
+ 5.022,
22
+ 4.997,
23
+ 5.071,
24
+ 5.227,
25
+ 5.429,
26
+ 5.642,
27
+ 5.873,
28
+ 6.143,
29
+ 6.347,
30
+ 6.459,
31
+ 6.463,
32
+ 6.361,
33
+ 6.175,
34
+ 5.943,
35
+ 5.717,
36
+ 5.556,
37
+ 5.498,
38
+ 5.529,
39
+ 5.613,
40
+ 5.798,
41
+ 5.937,
42
+ 6.009,
43
+ 6.007,
44
+ 5.942,
45
+ 5.828,
46
+ 5.685,
47
+ 5.53,
48
+ 5.377,
49
+ 5.241,
50
+ 5.138,
51
+ 5.087,
52
+ 5.105,
53
+ 5.197,
54
+ 5.405,
55
+ 5.689,
56
+ 5.984,
57
+ 6.251,
58
+ 6.454,
59
+ 6.564,
60
+ 6.566,
61
+ 6.465,
62
+ 6.282,
63
+ 6.048,
64
+ 5.8,
65
+ 5.582,
66
+ 5.477,
67
+ 5.516,
68
+ 5.598,
69
+ 5.692,
70
+ 5.771,
71
+ 5.821,
72
+ 5.835,
73
+ 5.814,
74
+ 5.763,
75
+ 5.691,
76
+ 5.606,
77
+ 5.512,
78
+ 5.416,
79
+ 5.322,
80
+ 5.24,
81
+ 5.248,
82
+ 5.356,
83
+ 5.518,
84
+ 5.729,
85
+ 5.97,
86
+ 6.212,
87
+ 6.421,
88
+ 6.56,
89
+ 6.605,
90
+ 6.544,
91
+ 6.386,
92
+ 6.148,
93
+ 5.86,
94
+ 5.693,
95
+ 5.572
96
+ ], n = [
97
+ -.101,
98
+ .101,
99
+ .276,
100
+ .356,
101
+ .688,
102
+ .312,
103
+ .177,
104
+ .02,
105
+ -.149,
106
+ -.248,
107
+ -.243,
108
+ -.147,
109
+ .015,
110
+ .218,
111
+ .433,
112
+ .634,
113
+ .791,
114
+ .872,
115
+ .858,
116
+ 1.109,
117
+ .75,
118
+ .576,
119
+ .316,
120
+ .002,
121
+ -.268,
122
+ -.458,
123
+ -.544,
124
+ -.519,
125
+ -.395,
126
+ -.204,
127
+ .01,
128
+ .191,
129
+ .294,
130
+ .6,
131
+ .306,
132
+ .257,
133
+ .083,
134
+ -.058,
135
+ -.123,
136
+ -.108,
137
+ -.026,
138
+ .102,
139
+ .251,
140
+ .403,
141
+ .54,
142
+ .649,
143
+ .716,
144
+ .729,
145
+ .682,
146
+ .815,
147
+ .559,
148
+ .254,
149
+ -.059,
150
+ -.334,
151
+ -.532,
152
+ -.628,
153
+ -.618,
154
+ -.516,
155
+ -.349,
156
+ -.147,
157
+ .057,
158
+ .23,
159
+ .352,
160
+ .445,
161
+ .346,
162
+ .229,
163
+ .13,
164
+ .071,
165
+ .058,
166
+ .086,
167
+ .14,
168
+ .209,
169
+ .282,
170
+ .355,
171
+ .425,
172
+ .493,
173
+ .55,
174
+ .583,
175
+ .576,
176
+ .482,
177
+ .247,
178
+ -.019,
179
+ -.282,
180
+ -.501,
181
+ -.643,
182
+ -.691,
183
+ -.641,
184
+ -.503,
185
+ -.292,
186
+ -.033,
187
+ .239,
188
+ .399
189
+ ], r = t.map((t, r) => ({
190
+ date: new Date(e + r * 864e5),
191
+ low: n[r],
192
+ value: t
193
+ }));
194
+ //#endregion
195
+ export { r as barcodeLollipopDemo };
@@ -0,0 +1,161 @@
1
+ "use client";
2
+ import { monthTickLabels as e } from "../../lib/format.js";
3
+ import { useHover as t } from "../hooks.js";
4
+ import { Plot as n, Tooltip as r } from "../core.js";
5
+ import { clamp as i, noteOf as a, noteSpace as o, sansWidth as s, stagger as c } from "../util.js";
6
+ import { DimGroup as l, TipText as u } from "../hover.js";
7
+ import { crisp as d } from "../axes.js";
8
+ import { DOT as f } from "../marks.js";
9
+ import { Dot as p } from "../markers.js";
10
+ import { PlotNote as m } from "../plot-note.js";
11
+ import { Stem as h, VRule as g } from "../rules.js";
12
+ import { ChartSvg as _ } from "../svg.js";
13
+ import { Label as v } from "../text.js";
14
+ import { argMax as y } from "./util-b.js";
15
+ import { barcodeLollipopDemo as b } from "./barcode-lollipop.data.js";
16
+ import { scaleLinear as x } from "d3-scale";
17
+ import { format as S } from "d3-format";
18
+ import { jsx as C, jsxs as w } from "react/jsx-runtime";
19
+ //#region src/charts/lupi/barcode-lollipop.tsx
20
+ var T = S(".2f"), E = (e) => `${T(e)} m`, D = (e) => e.toLocaleString("en-GB", {
21
+ day: "numeric",
22
+ month: "short",
23
+ timeZone: "UTC",
24
+ weekday: "short"
25
+ }), O = (e, t, n) => {
26
+ let r = e.map((e) => ({ ...e })).toSorted((e, t) => e.x - t.x), a = (e, t) => Math.abs(e.y - t.y) < 14;
27
+ for (let e = 0; e < 40; e += 1) {
28
+ let e = !1;
29
+ for (let [t, n] of r.entries()) {
30
+ let i = r[t - 1], o = i === void 0 ? 0 : i.x + i.w / 2 + 6 - (n.x - n.w / 2);
31
+ i !== void 0 && o > .5 && a(i, n) && (i.x -= o / 2, n.x += o / 2, e = !0);
32
+ }
33
+ for (let e of r) e.x = i(e.x, t + e.w / 2, n - e.w / 2);
34
+ if (!e) break;
35
+ }
36
+ return new Map(r.map((e) => [e.i, e.x]));
37
+ }, k = (e, t, n, r, i) => ({
38
+ i: e,
39
+ w: s(n(t.value), 12),
40
+ x: r(e),
41
+ y: i(t.value)
42
+ }), A = ({ datum: e, dim: t, dotSize: n, format: r, hero: i, i: a, isTop: o, labelX: s, low: u, x: m, y: g }) => {
43
+ let _ = g(e.value), y = f[i ? "md" : n], b = i ? Math.round(m) : d(m);
44
+ return /* @__PURE__ */ w(l, {
45
+ dim: t,
46
+ children: [
47
+ /* @__PURE__ */ C(h, {
48
+ className: `grow-y from-top ${i ? "stroke-hero" : "stroke-l4"}`,
49
+ hero: i,
50
+ style: c(a, "dense"),
51
+ x: m,
52
+ y0: _,
53
+ y1: g(u)
54
+ }),
55
+ /* @__PURE__ */ C(p, {
56
+ className: `pop ${i ? "fill-hero" : "fill-l2"}`,
57
+ cx: b,
58
+ cy: _,
59
+ size: i ? "md" : n,
60
+ style: c(a, "dense")
61
+ }),
62
+ o ? /* @__PURE__ */ C(v, {
63
+ anchor: "middle",
64
+ className: "fade",
65
+ halo: !0,
66
+ voice: i ? "value" : "axis",
67
+ x: s ?? m,
68
+ y: _ - y - 8,
69
+ children: r(e.value)
70
+ }) : null
71
+ ]
72
+ });
73
+ }, j = (t) => {
74
+ let n = t.data.flatMap((e, t) => t === 0 || e.date.getUTCDate() === 1 ? [t] : []), r = e(n.map((e) => t.data[e].date));
75
+ return /* @__PURE__ */ C("g", { children: n.map((e, n) => /* @__PURE__ */ C(v, {
76
+ voice: "axis",
77
+ x: t.x(e),
78
+ y: t.floor + 22,
79
+ children: r[n]
80
+ }, `month-${t.data[e].date.toISOString()}`)) });
81
+ }, M = (e) => /* @__PURE__ */ w("g", { children: [e.data.map((t, n) => /* @__PURE__ */ C(g, {
82
+ className: `grow-y ${e.hover === n ? "stroke-l5 shape-crisp" : "grid-line"}`,
83
+ kind: "plain",
84
+ style: c(n, "dense"),
85
+ x: e.x(n),
86
+ y0: e.top,
87
+ y1: e.floor
88
+ }, `bar-${t.date.toISOString()}`)), /* @__PURE__ */ C(j, {
89
+ data: e.data,
90
+ floor: e.floor,
91
+ x: e.x
92
+ })] }), N = (e) => {
93
+ let s = e.data ?? b, c = e.height ?? 440, l = e.format ?? E, d = e.top ?? 3, p = t(), h = s.map((e) => e.low ?? e.value * .9), g = new Set(s.map((e, t) => ({
94
+ i: t,
95
+ v: e.value
96
+ })).toSorted((e, t) => t.v - e.v).slice(0, d).map((e) => e.i)), v = y(s.map((e) => e.value));
97
+ return /* @__PURE__ */ C(n, {
98
+ overlay: p.at === null ? null : /* @__PURE__ */ C(r, {
99
+ x: p.at.x,
100
+ y: p.at.y,
101
+ children: /* @__PURE__ */ C(u, {
102
+ facts: [`high ${l(s[p.at.key].value)}`, `low ${l(h[p.at.key])}`],
103
+ lead: D(s[p.at.key].date)
104
+ })
105
+ }),
106
+ children: (t) => {
107
+ let n = {
108
+ bottom: 30 + o(a(e), t - 12, 20),
109
+ left: 4,
110
+ right: 8,
111
+ top: 10
112
+ }, r = c - n.bottom, u = (t - n.left - n.right) / Math.max(1, s.length - 1), d = (e) => n.left + e * u, y = x().domain([Math.min(...h), Math.max(...s.map((e) => e.value))]).range([r - 6, n.top + 22]), b = u >= 8 ? "sm" : "xs", S = O([...g].map((e) => k(e, s[e], l, d, y)), n.left - u / 2, t - 2), T = (e) => {
113
+ let r = e.clientX - e.currentTarget.getBoundingClientRect().left;
114
+ if (r < n.left - u || r > t - n.right + u) {
115
+ p.clear();
116
+ return;
117
+ }
118
+ let a = i(Math.round((r - n.left) / u), 0, s.length - 1);
119
+ p.show(a, d(a), y(s[a].value) - f[b] - 6);
120
+ };
121
+ return /* @__PURE__ */ w(_, {
122
+ height: c,
123
+ label: `Daily high and low water over ${s.length} days. Highest high water: ${[...g].map((e) => `${D(s[e].date)} ${l(s[e].value)}`).join(", ")}`,
124
+ leave: p.clear,
125
+ onPointerMove: T,
126
+ title: "One hairline per day, a lollipop at each day's high water",
127
+ width: t,
128
+ children: [
129
+ /* @__PURE__ */ C(M, {
130
+ data: s,
131
+ floor: r,
132
+ hover: p.key,
133
+ top: n.top,
134
+ x: d
135
+ }),
136
+ s.map((e, t) => /* @__PURE__ */ C(A, {
137
+ datum: e,
138
+ dim: p.dim(t),
139
+ dotSize: b,
140
+ format: l,
141
+ i: t,
142
+ hero: t === v,
143
+ isTop: g.has(t),
144
+ labelX: S.get(t),
145
+ low: h[t],
146
+ x: d(t),
147
+ y
148
+ }, `day-${e.date.toISOString()}`)),
149
+ /* @__PURE__ */ C(m, {
150
+ text: a(e),
151
+ width: t - n.left - n.right,
152
+ x: (n.left + t - n.right) / 2,
153
+ y: c - 6
154
+ })
155
+ ]
156
+ });
157
+ }
158
+ });
159
+ };
160
+ //#endregion
161
+ export { N as BarcodeLollipop };
@@ -0,0 +1,70 @@
1
+ "use client";
2
+ //#region src/charts/lupi/brand-spectrum.data.ts
3
+ var e = [
4
+ "Snowdon",
5
+ "Scafell Pike",
6
+ "Slieve Donard"
7
+ ], t = [
8
+ {
9
+ left: "Low",
10
+ others: [
11
+ .81,
12
+ .73,
13
+ .63
14
+ ],
15
+ right: "High",
16
+ us: 1
17
+ },
18
+ {
19
+ left: "Minor",
20
+ others: [
21
+ .77,
22
+ .68,
23
+ .61
24
+ ],
25
+ right: "Prominent",
26
+ us: 1
27
+ },
28
+ {
29
+ left: "Low col",
30
+ others: [
31
+ .04,
32
+ .05,
33
+ .02
34
+ ],
35
+ right: "High col",
36
+ us: 0
37
+ },
38
+ {
39
+ left: "Southern",
40
+ others: [
41
+ .33,
42
+ .45,
43
+ .43
44
+ ],
45
+ right: "Northern",
46
+ us: .65
47
+ },
48
+ {
49
+ left: "Western",
50
+ others: [
51
+ .53,
52
+ .6,
53
+ .38
54
+ ],
55
+ right: "Eastern",
56
+ us: .46
57
+ },
58
+ {
59
+ left: "Few lists",
60
+ others: [
61
+ .67,
62
+ 1,
63
+ .58
64
+ ],
65
+ right: "Many lists",
66
+ us: .58
67
+ }
68
+ ];
69
+ //#endregion
70
+ export { e as brandSpectrumCompetitors, t as brandSpectrumDemo };