@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.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +148 -2
- package/lib/charts/axes.js +5 -0
- package/lib/charts/basics/candlestick.data.js +44 -0
- package/lib/charts/basics/candlestick.js +180 -0
- package/lib/charts/basics/daily-empty.js +24 -0
- package/lib/charts/basics/daily-readings.js +16 -0
- package/lib/charts/basics/dot-heat.data.js +225 -0
- package/lib/charts/basics/dot-heat.js +174 -0
- package/lib/charts/basics/dumbbell-queue.js +203 -0
- package/lib/charts/basics/hairline-area.js +208 -0
- package/lib/charts/basics/hairline-line.js +195 -0
- package/lib/charts/basics/nested-treemap.data.js +55 -0
- package/lib/charts/basics/nested-treemap.js +191 -0
- package/lib/charts/basics/paired-rungs.data.js +31 -0
- package/lib/charts/basics/paired-rungs.js +151 -0
- package/lib/charts/basics/plumb-scatter.js +229 -0
- package/lib/charts/basics/rung-bars.js +178 -0
- package/lib/charts/basics/rung-geometry.js +6 -0
- package/lib/charts/basics/rung-histogram.data.js +73 -0
- package/lib/charts/basics/rung-histogram.js +153 -0
- package/lib/charts/basics/rung-waterfall.data.js +30 -0
- package/lib/charts/basics/rung-waterfall.js +150 -0
- package/lib/charts/basics/rungs.js +22 -0
- package/lib/charts/basics/series-key.js +26 -0
- package/lib/charts/basics/stacked-rungs.data.js +42 -0
- package/lib/charts/basics/stacked-rungs.js +174 -0
- package/lib/charts/basics/stream-ribbon.data.js +124 -0
- package/lib/charts/basics/stream-ribbon.js +336 -0
- package/lib/charts/basics/tick-box.data.js +50 -0
- package/lib/charts/basics/tick-box.js +226 -0
- package/lib/charts/basics/tick-donut.data.js +30 -0
- package/lib/charts/basics/tick-donut.js +210 -0
- package/lib/charts/basics/tick-gauge.data.js +8 -0
- package/lib/charts/basics/tick-gauge.js +169 -0
- package/lib/charts/basics/tick-rows.data.js +30 -0
- package/lib/charts/basics/tick-rows.js +121 -0
- package/lib/charts/basics/util-a.js +15 -0
- package/lib/charts/basics/util-b.js +13 -0
- package/lib/charts/big/circular-graph.data.js +827 -0
- package/lib/charts/big/circular-graph.js +289 -0
- package/lib/charts/big/force-galaxy-model.js +167 -0
- package/lib/charts/big/force-galaxy.data.js +813 -0
- package/lib/charts/big/force-galaxy.js +276 -0
- package/lib/charts/big/thread-triptych.data.js +204 -0
- package/lib/charts/big/thread-triptych.js +334 -0
- package/lib/charts/board/room.js +6 -0
- package/lib/charts/board/slope.js +176 -0
- package/lib/charts/board/spread.js +28 -0
- package/lib/charts/control.js +18 -0
- package/lib/charts/core.js +84 -0
- package/lib/charts/data-table.js +34 -0
- package/lib/charts/fills.js +153 -0
- package/lib/charts/forms/area-difference.data.js +62 -0
- package/lib/charts/forms/area-difference.js +192 -0
- package/lib/charts/forms/brush-math.js +42 -0
- package/lib/charts/forms/brush-strip.js +199 -0
- package/lib/charts/forms/brushed-overview.data.js +374 -0
- package/lib/charts/forms/brushed-overview.js +162 -0
- package/lib/charts/forms/chord-ring.data.js +140 -0
- package/lib/charts/forms/chord-ring.js +167 -0
- package/lib/charts/forms/circle-pack.data.js +80 -0
- package/lib/charts/forms/circle-pack.js +99 -0
- package/lib/charts/forms/hatched-stack.data.js +71 -0
- package/lib/charts/forms/hatched-stack.js +228 -0
- package/lib/charts/forms/radial-year.data.js +13 -0
- package/lib/charts/forms/radial-year.js +156 -0
- package/lib/charts/frame.js +73 -0
- package/lib/charts/glance/aggregate-sankey.data.js +74 -0
- package/lib/charts/glance/aggregate-sankey.js +242 -0
- package/lib/charts/glance/bar-race.data.js +122 -0
- package/lib/charts/glance/bar-race.js +246 -0
- package/lib/charts/glance/big-slice.data.js +41 -0
- package/lib/charts/glance/big-slice.js +238 -0
- package/lib/charts/glance/chunky-bars.data.js +22 -0
- package/lib/charts/glance/chunky-bars.js +113 -0
- package/lib/charts/glance/circular-graph.data.js +146 -0
- package/lib/charts/glance/circular-graph.js +138 -0
- package/lib/charts/glance/control-slot.js +9 -0
- package/lib/charts/glance/diverging-bar.data.js +34 -0
- package/lib/charts/glance/diverging-bar.js +154 -0
- package/lib/charts/glance/dot-waffle.data.js +26 -0
- package/lib/charts/glance/dot-waffle.js +179 -0
- package/lib/charts/glance/draw-in.data.js +9 -0
- package/lib/charts/glance/draw-in.goals.json.js +289 -0
- package/lib/charts/glance/draw-in.js +214 -0
- package/lib/charts/glance/dynamic-stream.data.js +6 -0
- package/lib/charts/glance/dynamic-stream.js +189 -0
- package/lib/charts/glance/force-graph.data.js +77 -0
- package/lib/charts/glance/force-graph.js +211 -0
- package/lib/charts/glance/jitter-strip.data.js +10 -0
- package/lib/charts/glance/jitter-strip.easter.json.js +430 -0
- package/lib/charts/glance/jitter-strip.js +157 -0
- package/lib/charts/glance/link-bundle.js +51 -0
- package/lib/charts/glance/matrix-heat-glance.data.js +108 -0
- package/lib/charts/glance/matrix-heat-glance.js +170 -0
- package/lib/charts/glance/pictorial-bar.data.js +22 -0
- package/lib/charts/glance/pictorial-bar.js +180 -0
- package/lib/charts/glance/rainfall-dual-area.data.js +177 -0
- package/lib/charts/glance/rainfall-dual-area.js +192 -0
- package/lib/charts/glance/rank-strip.data.js +76 -0
- package/lib/charts/glance/rank-strip.js +172 -0
- package/lib/charts/glance/scatter-labels.js +60 -0
- package/lib/charts/glance/scatter-morph.data.js +78 -0
- package/lib/charts/glance/scatter-morph.js +338 -0
- package/lib/charts/glance/single-axis.data.js +6 -0
- package/lib/charts/glance/single-axis.js +150 -0
- package/lib/charts/glance/single-axis.tides.json.js +180 -0
- package/lib/charts/glance/stagger-wave.data.js +66 -0
- package/lib/charts/glance/stagger-wave.js +132 -0
- package/lib/charts/glance/tree-lr.data.js +41 -0
- package/lib/charts/glance/tree-lr.js +135 -0
- package/lib/charts/glance/util-a.js +49 -0
- package/lib/charts/glance/util-b.js +19 -0
- package/lib/charts/glance/violin.data.js +9 -0
- package/lib/charts/glance/violin.js +185 -0
- package/lib/charts/glance/violin.tenors.json.js +5 -0
- package/lib/charts/hooks.js +154 -0
- package/lib/charts/hover.js +19 -0
- package/lib/charts/lupi/arc-matrix.data.js +83 -0
- package/lib/charts/lupi/arc-matrix.js +146 -0
- package/lib/charts/lupi/ballot-tally.data.js +22 -0
- package/lib/charts/lupi/ballot-tally.js +125 -0
- package/lib/charts/lupi/barcode-lollipop.data.js +195 -0
- package/lib/charts/lupi/barcode-lollipop.js +161 -0
- package/lib/charts/lupi/brand-spectrum.data.js +70 -0
- package/lib/charts/lupi/brand-spectrum.js +233 -0
- package/lib/charts/lupi/bubble-almanac.data.js +689 -0
- package/lib/charts/lupi/bubble-almanac.js +164 -0
- package/lib/charts/lupi/calendar-heat.data.js +399 -0
- package/lib/charts/lupi/calendar-heat.js +175 -0
- package/lib/charts/lupi/cluster-field.data.js +83 -0
- package/lib/charts/lupi/cluster-field.js +173 -0
- package/lib/charts/lupi/dot-cascade.data.js +54 -0
- package/lib/charts/lupi/dot-cascade.js +124 -0
- package/lib/charts/lupi/dotty-matrix.data.js +170 -0
- package/lib/charts/lupi/dotty-matrix.js +126 -0
- package/lib/charts/lupi/hourglass-stream.data.js +30 -0
- package/lib/charts/lupi/hourglass-stream.js +158 -0
- package/lib/charts/lupi/hundred-field.data.js +38 -0
- package/lib/charts/lupi/hundred-field.js +237 -0
- package/lib/charts/lupi/launch-fan.data.js +315 -0
- package/lib/charts/lupi/launch-fan.js +198 -0
- package/lib/charts/lupi/matrix-heat.data.js +97 -0
- package/lib/charts/lupi/matrix-heat.js +246 -0
- package/lib/charts/lupi/parallel-coordinates.data.js +54 -0
- package/lib/charts/lupi/parallel-coordinates.js +218 -0
- package/lib/charts/lupi/radial-convergence.data.js +178 -0
- package/lib/charts/lupi/radial-convergence.js +208 -0
- package/lib/charts/lupi/radial-patchwork.data.js +454 -0
- package/lib/charts/lupi/radial-patchwork.js +181 -0
- package/lib/charts/lupi/ridgeline.data.js +1834 -0
- package/lib/charts/lupi/ridgeline.js +195 -0
- package/lib/charts/lupi/trend-lineage.data.js +51 -0
- package/lib/charts/lupi/trend-lineage.js +198 -0
- package/lib/charts/lupi/type-colonnade.data.js +18 -0
- package/lib/charts/lupi/type-colonnade.js +198 -0
- package/lib/charts/lupi/util-a.js +14 -0
- package/lib/charts/lupi/util-b.js +12 -0
- package/lib/charts/maps/choropleth.js +295 -0
- package/lib/charts/maps/geo.js +84 -0
- package/lib/charts/maps/legend.js +83 -0
- package/lib/charts/maps/step-fill.js +9 -0
- package/lib/charts/maps/us-choropleth.data.js +249 -0
- package/lib/charts/maps/us-choropleth.js +41 -0
- package/lib/charts/maps/world-choropleth.data.js +681 -0
- package/lib/charts/maps/world-choropleth.js +46 -0
- package/lib/charts/markers.js +35 -0
- package/lib/charts/marks.js +31 -0
- package/lib/charts/motion.js +11 -0
- package/lib/charts/originals/daily-users.data.js +101 -0
- package/lib/charts/originals/daily-users.js +203 -0
- package/lib/charts/originals/feature-rank.data.js +92 -0
- package/lib/charts/originals/feature-rank.js +167 -0
- package/lib/charts/originals/format.js +5 -0
- package/lib/charts/originals/key.js +26 -0
- package/lib/charts/originals/response-time.data.js +98 -0
- package/lib/charts/originals/response-time.js +187 -0
- package/lib/charts/originals/revenue-by-plan.data.js +26 -0
- package/lib/charts/originals/revenue-by-plan.js +248 -0
- package/lib/charts/playback.js +68 -0
- package/lib/charts/plot-note.js +27 -0
- package/lib/charts/roles.js +5 -0
- package/lib/charts/rules.js +66 -0
- package/lib/charts/scale-context.js +6 -0
- package/lib/charts/shapes.js +8 -0
- package/lib/charts/shared-options.js +25 -0
- package/lib/charts/svg.js +43 -0
- package/lib/charts/text.js +30 -0
- package/lib/charts/texture-ids.js +20 -0
- package/lib/charts/texture.js +286 -0
- package/lib/charts/util.js +43 -0
- package/lib/charts/value-grid.js +26 -0
- package/lib/draw.js +27 -0
- package/lib/entries/dumbbell-queue.js +2 -0
- package/lib/entries/hairline-area.js +2 -0
- package/lib/entries/hairline-line.js +2 -0
- package/lib/entries/plumb-scatter.js +2 -0
- package/lib/entries/rung-bars.js +2 -0
- package/lib/entries/slope.js +2 -0
- package/lib/frame.js +2 -0
- package/lib/hairline.css +1385 -0
- package/lib/index.js +72 -0
- package/lib/json-schema/dumbbell-queue.json +258 -0
- package/lib/json-schema/hairline-area.json +262 -0
- package/lib/json-schema/hairline-line.json +256 -0
- package/lib/json-schema/index.json +50 -0
- package/lib/json-schema/plumb-scatter.json +363 -0
- package/lib/json-schema/rung-bars.json +230 -0
- package/lib/json-schema/slope.json +333 -0
- package/lib/kit.js +16 -0
- package/lib/lib/format.js +29 -0
- package/lib/lib/random.js +8 -0
- package/lib/maps.js +4 -0
- package/lib/schema/daily.js +9 -0
- package/lib/schema/dumbbell-queue.js +28 -0
- package/lib/schema/format.js +72 -0
- package/lib/schema/hairline-area.js +24 -0
- package/lib/schema/hairline-line.js +23 -0
- package/lib/schema/key.js +4 -0
- package/lib/schema/metrics.js +26 -0
- package/lib/schema/motion.js +12 -0
- package/lib/schema/options.js +21 -0
- package/lib/schema/plumb-scatter.js +48 -0
- package/lib/schema/registry.js +132 -0
- package/lib/schema/rung-bars.js +25 -0
- package/lib/schema/scale.js +9 -0
- package/lib/schema/slope.js +28 -0
- package/lib/schema/validate.js +25 -0
- package/lib/schema.js +16 -0
- package/lib/theme/derive.js +98 -0
- package/lib/theme.css +443 -0
- package/lib/theme.js +1 -0
- package/lib/tokens.css +306 -0
- package/lib/types/charts/axes.d.ts +14 -0
- package/lib/types/charts/basics/candlestick.d.ts +22 -0
- package/lib/types/charts/basics/candlestick.data.d.ts +10 -0
- package/lib/types/charts/basics/daily-empty.d.ts +7 -0
- package/lib/types/charts/basics/daily-readings.d.ts +38 -0
- package/lib/types/charts/basics/dot-heat.d.ts +19 -0
- package/lib/types/charts/basics/dot-heat.data.d.ts +28 -0
- package/lib/types/charts/basics/dumbbell-queue.d.ts +15 -0
- package/lib/types/charts/basics/hairline-area.d.ts +18 -0
- package/lib/types/charts/basics/hairline-line.d.ts +18 -0
- package/lib/types/charts/basics/nested-treemap.d.ts +18 -0
- package/lib/types/charts/basics/nested-treemap.data.d.ts +30 -0
- package/lib/types/charts/basics/paired-rungs.d.ts +21 -0
- package/lib/types/charts/basics/paired-rungs.data.d.ts +43 -0
- package/lib/types/charts/basics/plumb-scatter.d.ts +14 -0
- package/lib/types/charts/basics/rung-bars.d.ts +16 -0
- package/lib/types/charts/basics/rung-geometry.d.ts +6 -0
- package/lib/types/charts/basics/rung-histogram.d.ts +22 -0
- package/lib/types/charts/basics/rung-histogram.data.d.ts +34 -0
- package/lib/types/charts/basics/rung-waterfall.d.ts +19 -0
- package/lib/types/charts/basics/rung-waterfall.data.d.ts +31 -0
- package/lib/types/charts/basics/rungs.d.ts +28 -0
- package/lib/types/charts/basics/series-key.d.ts +19 -0
- package/lib/types/charts/basics/stacked-rungs.d.ts +20 -0
- package/lib/types/charts/basics/stacked-rungs.data.d.ts +26 -0
- package/lib/types/charts/basics/stream-ribbon.d.ts +19 -0
- package/lib/types/charts/basics/stream-ribbon.data.d.ts +29 -0
- package/lib/types/charts/basics/tick-box.d.ts +19 -0
- package/lib/types/charts/basics/tick-box.data.d.ts +30 -0
- package/lib/types/charts/basics/tick-donut.d.ts +24 -0
- package/lib/types/charts/basics/tick-donut.data.d.ts +25 -0
- package/lib/types/charts/basics/tick-gauge.d.ts +22 -0
- package/lib/types/charts/basics/tick-gauge.data.d.ts +24 -0
- package/lib/types/charts/basics/tick-rows.d.ts +18 -0
- package/lib/types/charts/basics/tick-rows.data.d.ts +23 -0
- package/lib/types/charts/basics/util-a.d.ts +10 -0
- package/lib/types/charts/basics/util-b.d.ts +13 -0
- package/lib/types/charts/big/circular-graph.d.ts +20 -0
- package/lib/types/charts/big/circular-graph.data.d.ts +46 -0
- package/lib/types/charts/big/force-galaxy-model.d.ts +109 -0
- package/lib/types/charts/big/force-galaxy.d.ts +18 -0
- package/lib/types/charts/big/force-galaxy.data.d.ts +48 -0
- package/lib/types/charts/big/thread-triptych.d.ts +17 -0
- package/lib/types/charts/big/thread-triptych.data.d.ts +41 -0
- package/lib/types/charts/board/room.d.ts +18 -0
- package/lib/types/charts/board/slope.d.ts +14 -0
- package/lib/types/charts/board/spread.d.ts +5 -0
- package/lib/types/charts/control.d.ts +17 -0
- package/lib/types/charts/core.d.ts +77 -0
- package/lib/types/charts/data-table.d.ts +18 -0
- package/lib/types/charts/fills.d.ts +103 -0
- package/lib/types/charts/forms/area-difference.d.ts +9 -0
- package/lib/types/charts/forms/area-difference.data.d.ts +26 -0
- package/lib/types/charts/forms/brush-math.d.ts +19 -0
- package/lib/types/charts/forms/brush-strip.d.ts +19 -0
- package/lib/types/charts/forms/brushed-overview.d.ts +12 -0
- package/lib/types/charts/forms/brushed-overview.data.d.ts +16 -0
- package/lib/types/charts/forms/chord-ring.d.ts +12 -0
- package/lib/types/charts/forms/chord-ring.data.d.ts +29 -0
- package/lib/types/charts/forms/circle-pack.d.ts +9 -0
- package/lib/types/charts/forms/circle-pack.data.d.ts +23 -0
- package/lib/types/charts/forms/hatched-stack.d.ts +10 -0
- package/lib/types/charts/forms/hatched-stack.data.d.ts +36 -0
- package/lib/types/charts/forms/radial-year.d.ts +8 -0
- package/lib/types/charts/forms/radial-year.data.d.ts +17 -0
- package/lib/types/charts/frame.d.ts +21 -0
- package/lib/types/charts/glance/aggregate-sankey.d.ts +23 -0
- package/lib/types/charts/glance/aggregate-sankey.data.d.ts +32 -0
- package/lib/types/charts/glance/bar-race.d.ts +20 -0
- package/lib/types/charts/glance/bar-race.data.d.ts +32 -0
- package/lib/types/charts/glance/big-slice.d.ts +27 -0
- package/lib/types/charts/glance/big-slice.data.d.ts +30 -0
- package/lib/types/charts/glance/chunky-bars.d.ts +18 -0
- package/lib/types/charts/glance/chunky-bars.data.d.ts +24 -0
- package/lib/types/charts/glance/circular-graph.d.ts +19 -0
- package/lib/types/charts/glance/circular-graph.data.d.ts +43 -0
- package/lib/types/charts/glance/control-slot.d.ts +9 -0
- package/lib/types/charts/glance/diverging-bar.d.ts +19 -0
- package/lib/types/charts/glance/diverging-bar.data.d.ts +27 -0
- package/lib/types/charts/glance/dot-waffle.d.ts +19 -0
- package/lib/types/charts/glance/dot-waffle.data.d.ts +31 -0
- package/lib/types/charts/glance/draw-in.d.ts +20 -0
- package/lib/types/charts/glance/draw-in.data.d.ts +6 -0
- package/lib/types/charts/glance/dynamic-stream.d.ts +22 -0
- package/lib/types/charts/glance/dynamic-stream.data.d.ts +7 -0
- package/lib/types/charts/glance/force-graph.d.ts +16 -0
- package/lib/types/charts/glance/force-graph.data.d.ts +45 -0
- package/lib/types/charts/glance/jitter-strip.d.ts +24 -0
- package/lib/types/charts/glance/jitter-strip.data.d.ts +27 -0
- package/lib/types/charts/glance/link-bundle.d.ts +22 -0
- package/lib/types/charts/glance/matrix-heat-glance.d.ts +22 -0
- package/lib/types/charts/glance/matrix-heat-glance.data.d.ts +35 -0
- package/lib/types/charts/glance/pictorial-bar.d.ts +20 -0
- package/lib/types/charts/glance/pictorial-bar.data.d.ts +27 -0
- package/lib/types/charts/glance/rainfall-dual-area.d.ts +19 -0
- package/lib/types/charts/glance/rainfall-dual-area.data.d.ts +32 -0
- package/lib/types/charts/glance/rank-strip.d.ts +19 -0
- package/lib/types/charts/glance/rank-strip.data.d.ts +36 -0
- package/lib/types/charts/glance/scatter-labels.d.ts +23 -0
- package/lib/types/charts/glance/scatter-morph.d.ts +22 -0
- package/lib/types/charts/glance/scatter-morph.data.d.ts +30 -0
- package/lib/types/charts/glance/single-axis.d.ts +27 -0
- package/lib/types/charts/glance/single-axis.data.d.ts +6 -0
- package/lib/types/charts/glance/stagger-wave.d.ts +18 -0
- package/lib/types/charts/glance/stagger-wave.data.d.ts +26 -0
- package/lib/types/charts/glance/tree-lr.d.ts +16 -0
- package/lib/types/charts/glance/tree-lr.data.d.ts +27 -0
- package/lib/types/charts/glance/util-a.d.ts +31 -0
- package/lib/types/charts/glance/util-b.d.ts +12 -0
- package/lib/types/charts/glance/violin.d.ts +22 -0
- package/lib/types/charts/glance/violin.data.d.ts +24 -0
- package/lib/types/charts/hooks.d.ts +109 -0
- package/lib/types/charts/hover.d.ts +26 -0
- package/lib/types/charts/lupi/arc-matrix.d.ts +18 -0
- package/lib/types/charts/lupi/arc-matrix.data.d.ts +28 -0
- package/lib/types/charts/lupi/ballot-tally.d.ts +19 -0
- package/lib/types/charts/lupi/ballot-tally.data.d.ts +28 -0
- package/lib/types/charts/lupi/barcode-lollipop.d.ts +19 -0
- package/lib/types/charts/lupi/barcode-lollipop.data.d.ts +26 -0
- package/lib/types/charts/lupi/brand-spectrum.d.ts +28 -0
- package/lib/types/charts/lupi/brand-spectrum.data.d.ts +34 -0
- package/lib/types/charts/lupi/bubble-almanac.d.ts +22 -0
- package/lib/types/charts/lupi/bubble-almanac.data.d.ts +45 -0
- package/lib/types/charts/lupi/calendar-heat.d.ts +19 -0
- package/lib/types/charts/lupi/calendar-heat.data.d.ts +20 -0
- package/lib/types/charts/lupi/cluster-field.d.ts +21 -0
- package/lib/types/charts/lupi/cluster-field.data.d.ts +52 -0
- package/lib/types/charts/lupi/dot-cascade.d.ts +22 -0
- package/lib/types/charts/lupi/dot-cascade.data.d.ts +24 -0
- package/lib/types/charts/lupi/dotty-matrix.d.ts +17 -0
- package/lib/types/charts/lupi/dotty-matrix.data.d.ts +32 -0
- package/lib/types/charts/lupi/hourglass-stream.d.ts +18 -0
- package/lib/types/charts/lupi/hourglass-stream.data.d.ts +27 -0
- package/lib/types/charts/lupi/hundred-field.d.ts +18 -0
- package/lib/types/charts/lupi/hundred-field.data.d.ts +24 -0
- package/lib/types/charts/lupi/launch-fan.d.ts +37 -0
- package/lib/types/charts/lupi/launch-fan.data.d.ts +41 -0
- package/lib/types/charts/lupi/matrix-heat.d.ts +20 -0
- package/lib/types/charts/lupi/matrix-heat.data.d.ts +29 -0
- package/lib/types/charts/lupi/parallel-coordinates.d.ts +23 -0
- package/lib/types/charts/lupi/parallel-coordinates.data.d.ts +40 -0
- package/lib/types/charts/lupi/radial-convergence.d.ts +15 -0
- package/lib/types/charts/lupi/radial-convergence.data.d.ts +24 -0
- package/lib/types/charts/lupi/radial-patchwork.d.ts +16 -0
- package/lib/types/charts/lupi/radial-patchwork.data.d.ts +35 -0
- package/lib/types/charts/lupi/ridgeline.d.ts +23 -0
- package/lib/types/charts/lupi/ridgeline.data.d.ts +19 -0
- package/lib/types/charts/lupi/trend-lineage.d.ts +18 -0
- package/lib/types/charts/lupi/trend-lineage.data.d.ts +56 -0
- package/lib/types/charts/lupi/type-colonnade.d.ts +20 -0
- package/lib/types/charts/lupi/type-colonnade.data.d.ts +30 -0
- package/lib/types/charts/lupi/util-a.d.ts +9 -0
- package/lib/types/charts/lupi/util-b.d.ts +11 -0
- package/lib/types/charts/maps/choropleth.d.ts +33 -0
- package/lib/types/charts/maps/geo.d.ts +48 -0
- package/lib/types/charts/maps/legend.d.ts +14 -0
- package/lib/types/charts/maps/step-fill.d.ts +6 -0
- package/lib/types/charts/maps/us-choropleth.d.ts +25 -0
- package/lib/types/charts/maps/us-choropleth.data.d.ts +23 -0
- package/lib/types/charts/maps/world-choropleth.d.ts +22 -0
- package/lib/types/charts/maps/world-choropleth.data.d.ts +35 -0
- package/lib/types/charts/markers.d.ts +42 -0
- package/lib/types/charts/marks.d.ts +58 -0
- package/lib/types/charts/motion.d.ts +12 -0
- package/lib/types/charts/originals/daily-users.d.ts +13 -0
- package/lib/types/charts/originals/daily-users.data.d.ts +17 -0
- package/lib/types/charts/originals/feature-rank.d.ts +13 -0
- package/lib/types/charts/originals/feature-rank.data.d.ts +29 -0
- package/lib/types/charts/originals/format.d.ts +2 -0
- package/lib/types/charts/originals/key.d.ts +16 -0
- package/lib/types/charts/originals/response-time.d.ts +11 -0
- package/lib/types/charts/originals/response-time.data.d.ts +24 -0
- package/lib/types/charts/originals/revenue-by-plan.d.ts +12 -0
- package/lib/types/charts/originals/revenue-by-plan.data.d.ts +26 -0
- package/lib/types/charts/playback.d.ts +42 -0
- package/lib/types/charts/plot-note.d.ts +37 -0
- package/lib/types/charts/roles.d.ts +28 -0
- package/lib/types/charts/rules.d.ts +62 -0
- package/lib/types/charts/scale-context.d.ts +3 -0
- package/lib/types/charts/shapes.d.ts +9 -0
- package/lib/types/charts/shared-options.d.ts +25 -0
- package/lib/types/charts/svg.d.ts +24 -0
- package/lib/types/charts/text.d.ts +36 -0
- package/lib/types/charts/texture-ids.d.ts +24 -0
- package/lib/types/charts/texture.d.ts +185 -0
- package/lib/types/charts/util.d.ts +66 -0
- package/lib/types/charts/value-grid.d.ts +22 -0
- package/lib/types/draw.d.ts +279 -0
- package/lib/types/entries/dumbbell-queue.d.ts +2 -0
- package/lib/types/entries/hairline-area.d.ts +2 -0
- package/lib/types/entries/hairline-line.d.ts +2 -0
- package/lib/types/entries/plumb-scatter.d.ts +2 -0
- package/lib/types/entries/rung-bars.d.ts +2 -0
- package/lib/types/entries/slope.d.ts +2 -0
- package/lib/types/frame.d.ts +2 -0
- package/lib/types/index.d.ts +82 -0
- package/lib/types/kit.d.ts +22 -0
- package/lib/types/lib/format.d.ts +58 -0
- package/lib/types/lib/random.d.ts +5 -0
- package/lib/types/maps.d.ts +2 -0
- package/lib/types/schema/daily.d.ts +14 -0
- package/lib/types/schema/dumbbell-queue.d.ts +91 -0
- package/lib/types/schema/format.d.ts +101 -0
- package/lib/types/schema/hairline-area.d.ts +83 -0
- package/lib/types/schema/hairline-line.d.ts +85 -0
- package/lib/types/schema/key.d.ts +12 -0
- package/lib/types/schema/metrics.d.ts +26 -0
- package/lib/types/schema/motion.d.ts +22 -0
- package/lib/types/schema/options.d.ts +51 -0
- package/lib/types/schema/plumb-scatter.d.ts +124 -0
- package/lib/types/schema/registry.d.ts +309 -0
- package/lib/types/schema/rung-bars.d.ts +84 -0
- package/lib/types/schema/scale.d.ts +36 -0
- package/lib/types/schema/slope.d.ts +120 -0
- package/lib/types/schema/validate.d.ts +29 -0
- package/lib/types/schema.d.ts +30 -0
- package/lib/types/theme/derive.d.ts +23 -0
- package/lib/types/theme.d.ts +2 -0
- package/lib/vendor/us-atlas/states-10m.json.js +13855 -0
- package/lib/vendor/world-atlas/countries-110m.json.js +9357 -0
- package/package.json +160 -3
package/lib/index.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { DumbbellQueue as e } from "./charts/basics/dumbbell-queue.js";
|
|
3
|
+
import { HairlineArea as t } from "./charts/basics/hairline-area.js";
|
|
4
|
+
import { HairlineLine as n } from "./charts/basics/hairline-line.js";
|
|
5
|
+
import { PlumbScatter as r } from "./charts/basics/plumb-scatter.js";
|
|
6
|
+
import { RungBars as i } from "./charts/basics/rung-bars.js";
|
|
7
|
+
import { Slope as a } from "./charts/board/slope.js";
|
|
8
|
+
import { Candlestick as o } from "./charts/basics/candlestick.js";
|
|
9
|
+
import { DotHeat as s } from "./charts/basics/dot-heat.js";
|
|
10
|
+
import { NestedTreemap as c } from "./charts/basics/nested-treemap.js";
|
|
11
|
+
import { PairedRungs as l } from "./charts/basics/paired-rungs.js";
|
|
12
|
+
import { RungHistogram as u } from "./charts/basics/rung-histogram.js";
|
|
13
|
+
import { RungWaterfall as d } from "./charts/basics/rung-waterfall.js";
|
|
14
|
+
import { StackedRungs as f } from "./charts/basics/stacked-rungs.js";
|
|
15
|
+
import { StreamRibbon as p } from "./charts/basics/stream-ribbon.js";
|
|
16
|
+
import { TickBox as m } from "./charts/basics/tick-box.js";
|
|
17
|
+
import { TickDonut as h } from "./charts/basics/tick-donut.js";
|
|
18
|
+
import { TickGauge as g } from "./charts/basics/tick-gauge.js";
|
|
19
|
+
import { TickRows as _ } from "./charts/basics/tick-rows.js";
|
|
20
|
+
import { CircularGraph as v } from "./charts/big/circular-graph.js";
|
|
21
|
+
import { ForceGalaxy as y } from "./charts/big/force-galaxy.js";
|
|
22
|
+
import { ThreadTriptych as b } from "./charts/big/thread-triptych.js";
|
|
23
|
+
import { AreaDifference as x } from "./charts/forms/area-difference.js";
|
|
24
|
+
import { BrushedOverview as S } from "./charts/forms/brushed-overview.js";
|
|
25
|
+
import { ChordRing as C } from "./charts/forms/chord-ring.js";
|
|
26
|
+
import { CirclePack as w } from "./charts/forms/circle-pack.js";
|
|
27
|
+
import { HatchedStack as T } from "./charts/forms/hatched-stack.js";
|
|
28
|
+
import { RadialYear as E } from "./charts/forms/radial-year.js";
|
|
29
|
+
import { AggregateSankey as D } from "./charts/glance/aggregate-sankey.js";
|
|
30
|
+
import { BarRace as O } from "./charts/glance/bar-race.js";
|
|
31
|
+
import { BigSlice as k } from "./charts/glance/big-slice.js";
|
|
32
|
+
import { ChunkyBars as A } from "./charts/glance/chunky-bars.js";
|
|
33
|
+
import { CircularGraph as j } from "./charts/glance/circular-graph.js";
|
|
34
|
+
import { DivergingBar as M } from "./charts/glance/diverging-bar.js";
|
|
35
|
+
import { DotWaffle as N } from "./charts/glance/dot-waffle.js";
|
|
36
|
+
import { DrawIn as P } from "./charts/glance/draw-in.js";
|
|
37
|
+
import { DynamicStream as F } from "./charts/glance/dynamic-stream.js";
|
|
38
|
+
import { ForceGraph as I } from "./charts/glance/force-graph.js";
|
|
39
|
+
import { JitterStrip as L } from "./charts/glance/jitter-strip.js";
|
|
40
|
+
import { MatrixHeatGlance as R } from "./charts/glance/matrix-heat-glance.js";
|
|
41
|
+
import { PictorialBar as z } from "./charts/glance/pictorial-bar.js";
|
|
42
|
+
import { RainfallDualArea as B } from "./charts/glance/rainfall-dual-area.js";
|
|
43
|
+
import { RankStrip as V } from "./charts/glance/rank-strip.js";
|
|
44
|
+
import { ScatterMorph as H } from "./charts/glance/scatter-morph.js";
|
|
45
|
+
import { SingleAxis as U } from "./charts/glance/single-axis.js";
|
|
46
|
+
import { StaggerWave as W } from "./charts/glance/stagger-wave.js";
|
|
47
|
+
import { TreeLR as G } from "./charts/glance/tree-lr.js";
|
|
48
|
+
import { Violin as K } from "./charts/glance/violin.js";
|
|
49
|
+
import { ArcMatrix as q } from "./charts/lupi/arc-matrix.js";
|
|
50
|
+
import { BallotTally as J } from "./charts/lupi/ballot-tally.js";
|
|
51
|
+
import { BarcodeLollipop as Y } from "./charts/lupi/barcode-lollipop.js";
|
|
52
|
+
import { BrandSpectrum as X } from "./charts/lupi/brand-spectrum.js";
|
|
53
|
+
import { BubbleAlmanac as Z } from "./charts/lupi/bubble-almanac.js";
|
|
54
|
+
import { CalendarHeat as Q } from "./charts/lupi/calendar-heat.js";
|
|
55
|
+
import { ClusterField as $ } from "./charts/lupi/cluster-field.js";
|
|
56
|
+
import { DotCascade as ee } from "./charts/lupi/dot-cascade.js";
|
|
57
|
+
import { DottyMatrix as te } from "./charts/lupi/dotty-matrix.js";
|
|
58
|
+
import { HourglassStream as ne } from "./charts/lupi/hourglass-stream.js";
|
|
59
|
+
import { HundredField as re } from "./charts/lupi/hundred-field.js";
|
|
60
|
+
import { LaunchFan as ie } from "./charts/lupi/launch-fan.js";
|
|
61
|
+
import { MatrixHeat as ae } from "./charts/lupi/matrix-heat.js";
|
|
62
|
+
import { ParallelCoordinates as oe } from "./charts/lupi/parallel-coordinates.js";
|
|
63
|
+
import { RadialConvergence as se } from "./charts/lupi/radial-convergence.js";
|
|
64
|
+
import { RadialPatchwork as ce } from "./charts/lupi/radial-patchwork.js";
|
|
65
|
+
import { Ridgeline as le } from "./charts/lupi/ridgeline.js";
|
|
66
|
+
import { TrendLineage as ue } from "./charts/lupi/trend-lineage.js";
|
|
67
|
+
import { TypeColonnade as de } from "./charts/lupi/type-colonnade.js";
|
|
68
|
+
import { DailyUsers as fe } from "./charts/originals/daily-users.js";
|
|
69
|
+
import { FeatureRank as pe } from "./charts/originals/feature-rank.js";
|
|
70
|
+
import { ResponseTime as me } from "./charts/originals/response-time.js";
|
|
71
|
+
import { RevenueByPlan as he } from "./charts/originals/revenue-by-plan.js";
|
|
72
|
+
export { D as AggregateSankey, q as ArcMatrix, x as AreaDifference, J as BallotTally, O as BarRace, Y as BarcodeLollipop, k as BigSlice, X as BrandSpectrum, S as BrushedOverview, Z as BubbleAlmanac, Q as CalendarHeat, o as Candlestick, C as ChordRing, A as ChunkyBars, w as CirclePack, v as CircularBeadGraph, j as CircularGraph, $ as ClusterField, fe as DailyUsers, M as DivergingBar, ee as DotCascade, s as DotHeat, N as DotWaffle, te as DottyMatrix, P as DrawIn, e as DumbbellQueue, F as DynamicStream, pe as FeatureRank, y as ForceGalaxy, I as ForceGraph, t as HairlineArea, n as HairlineLine, T as HatchedStack, ne as HourglassStream, re as HundredField, L as JitterStrip, ie as LaunchFan, ae as MatrixHeat, R as MatrixHeatGlance, c as NestedTreemap, l as PairedRungs, oe as ParallelCoordinates, z as PictorialBar, r as PlumbScatter, se as RadialConvergence, ce as RadialPatchwork, E as RadialYear, B as RainfallDualArea, V as RankStrip, me as ResponseTime, he as RevenueByPlan, le as Ridgeline, i as RungBars, u as RungHistogram, d as RungWaterfall, H as ScatterMorph, U as SingleAxis, a as Slope, f as StackedRungs, W as StaggerWave, p as StreamRibbon, b as ThreadTriptych, m as TickBox, h as TickDonut, g as TickGauge, _ as TickRows, G as TreeLR, ue as TrendLineage, de as TypeColonnade, K as Violin };
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"note": {
|
|
6
|
+
"deprecated": true,
|
|
7
|
+
"description": "Deprecated: use `unitNote`.",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"unitNote": {
|
|
11
|
+
"description": "The in-plot key under the axis.",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"animate": {
|
|
15
|
+
"description": "When the entry draws in: \"scroll\" as the chart scrolls into view, \"mount\" at once, \"off\" never (drawn, and ready, in the first HTML). The default is \"off\" for a fixed-size chart and \"scroll\" for a responsive one. Under reduced motion the chart is drawn in the first paint.",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"scroll",
|
|
19
|
+
"mount",
|
|
20
|
+
"off"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"replayKey": {
|
|
24
|
+
"description": "Change it to replay the entry without remounting the chart.",
|
|
25
|
+
"type": [
|
|
26
|
+
"string",
|
|
27
|
+
"number"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"fit": {
|
|
31
|
+
"description": "Fill the container's width at the chart's aspect ratio. Wins over `scale`.",
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
},
|
|
34
|
+
"scale": {
|
|
35
|
+
"description": "Slides: draw at the logical width, then show the composition this many times larger, type and textures with it.",
|
|
36
|
+
"type": "number",
|
|
37
|
+
"exclusiveMinimum": 0
|
|
38
|
+
},
|
|
39
|
+
"strokes": {
|
|
40
|
+
"description": "\"device\" keeps every stroke at one device pixel, and is the default when the chart is scaled (`scale` or `fit`); \"proportional\" scales strokes with the composition. It acts on stroked geometry only (rules, lines, rings, outlines): filled marks, such as the bars of RungBars, scale either way.",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"proportional",
|
|
44
|
+
"device"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"idPrefix": {
|
|
48
|
+
"description": "Leads every SVG id, to separate charts rendered in separate React roots on one page.",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"pattern": "^[A-Za-z][\\w-]*$"
|
|
51
|
+
},
|
|
52
|
+
"metrics": {
|
|
53
|
+
"description": "Glyph widths of a face other than Inter, so notes wrap and reserve room for it.",
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"advances": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"propertyNames": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"minLength": 1,
|
|
61
|
+
"maxLength": 1
|
|
62
|
+
},
|
|
63
|
+
"additionalProperties": {
|
|
64
|
+
"type": "number",
|
|
65
|
+
"exclusiveMinimum": 0
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"fallback": {
|
|
69
|
+
"type": "number",
|
|
70
|
+
"exclusiveMinimum": 0
|
|
71
|
+
},
|
|
72
|
+
"tabular": {
|
|
73
|
+
"type": "number",
|
|
74
|
+
"exclusiveMinimum": 0
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"advances",
|
|
79
|
+
"fallback"
|
|
80
|
+
],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
},
|
|
83
|
+
"table": {
|
|
84
|
+
"description": "Show the data table to sighted readers too. It is always there for screen readers.",
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
},
|
|
87
|
+
"title": {
|
|
88
|
+
"description": "The chart's accessible name. Each chart has a default that reads the data.",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"minLength": 1
|
|
91
|
+
},
|
|
92
|
+
"alert": {
|
|
93
|
+
"description": "Which direction of change is drawn in the alert colour. Defaults to a rise.",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"fall",
|
|
97
|
+
"rise"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"data": {
|
|
101
|
+
"minItems": 1,
|
|
102
|
+
"maxItems": 12,
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"after": {
|
|
108
|
+
"type": "number",
|
|
109
|
+
"description": "The later value."
|
|
110
|
+
},
|
|
111
|
+
"before": {
|
|
112
|
+
"type": "number",
|
|
113
|
+
"description": "The earlier value."
|
|
114
|
+
},
|
|
115
|
+
"id": {
|
|
116
|
+
"description": "A unique key, for when two rows share a label.",
|
|
117
|
+
"type": "string",
|
|
118
|
+
"minLength": 1
|
|
119
|
+
},
|
|
120
|
+
"label": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "Names the row, and is its key unless `id` is given."
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"after",
|
|
127
|
+
"before",
|
|
128
|
+
"label"
|
|
129
|
+
],
|
|
130
|
+
"additionalProperties": false
|
|
131
|
+
},
|
|
132
|
+
"description": "The rows, 1 to 12."
|
|
133
|
+
},
|
|
134
|
+
"emphasis": {
|
|
135
|
+
"description": "The row to draw in the hero colour, by key. Defaults to the biggest change.",
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"ends": {
|
|
139
|
+
"description": "Axis end labels: [low end, high end].",
|
|
140
|
+
"type": "array",
|
|
141
|
+
"prefixItems": [
|
|
142
|
+
{
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "string"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"items": false,
|
|
150
|
+
"minItems": 2,
|
|
151
|
+
"maxItems": 2
|
|
152
|
+
},
|
|
153
|
+
"format": {
|
|
154
|
+
"description": "How values print: a preset name or Intl number-format options.",
|
|
155
|
+
"anyOf": [
|
|
156
|
+
{
|
|
157
|
+
"type": "string",
|
|
158
|
+
"enum": [
|
|
159
|
+
"integer",
|
|
160
|
+
"decimal",
|
|
161
|
+
"compact",
|
|
162
|
+
"percent"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "object",
|
|
167
|
+
"properties": {
|
|
168
|
+
"compactDisplay": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"enum": [
|
|
171
|
+
"short",
|
|
172
|
+
"long"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"currency": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"minLength": 3,
|
|
178
|
+
"maxLength": 3
|
|
179
|
+
},
|
|
180
|
+
"locale": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"minLength": 2
|
|
183
|
+
},
|
|
184
|
+
"maximumFractionDigits": {
|
|
185
|
+
"type": "integer",
|
|
186
|
+
"minimum": 0,
|
|
187
|
+
"maximum": 20
|
|
188
|
+
},
|
|
189
|
+
"minimumFractionDigits": {
|
|
190
|
+
"type": "integer",
|
|
191
|
+
"minimum": 0,
|
|
192
|
+
"maximum": 20
|
|
193
|
+
},
|
|
194
|
+
"notation": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"enum": [
|
|
197
|
+
"standard",
|
|
198
|
+
"compact"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"signDisplay": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"enum": [
|
|
204
|
+
"auto",
|
|
205
|
+
"always",
|
|
206
|
+
"exceptZero",
|
|
207
|
+
"never"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"style": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"enum": [
|
|
213
|
+
"decimal",
|
|
214
|
+
"percent",
|
|
215
|
+
"currency",
|
|
216
|
+
"unit"
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"unit": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"useGrouping": {
|
|
223
|
+
"type": "boolean"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"additionalProperties": false
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"height": {
|
|
231
|
+
"description": "Fixed height in px. Without it the chart is 380 tall.",
|
|
232
|
+
"type": "integer",
|
|
233
|
+
"exclusiveMinimum": 0,
|
|
234
|
+
"maximum": 9007199254740991
|
|
235
|
+
},
|
|
236
|
+
"initialWidth": {
|
|
237
|
+
"description": "Responsive mode only: the width of the first render, before measuring.",
|
|
238
|
+
"type": "integer",
|
|
239
|
+
"exclusiveMinimum": 0,
|
|
240
|
+
"maximum": 9007199254740991
|
|
241
|
+
},
|
|
242
|
+
"unit": {
|
|
243
|
+
"description": "Size of one rung in data units: the gap counts off in these.",
|
|
244
|
+
"type": "number",
|
|
245
|
+
"exclusiveMinimum": 0
|
|
246
|
+
},
|
|
247
|
+
"width": {
|
|
248
|
+
"description": "Fixed width in px. Giving it turns measuring off.",
|
|
249
|
+
"type": "integer",
|
|
250
|
+
"exclusiveMinimum": 0,
|
|
251
|
+
"maximum": 9007199254740991
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": [
|
|
255
|
+
"data"
|
|
256
|
+
],
|
|
257
|
+
"additionalProperties": false
|
|
258
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"note": {
|
|
6
|
+
"deprecated": true,
|
|
7
|
+
"description": "Deprecated: use `unitNote`.",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"unitNote": {
|
|
11
|
+
"description": "The in-plot key under the axis.",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"animate": {
|
|
15
|
+
"description": "When the entry draws in: \"scroll\" as the chart scrolls into view, \"mount\" at once, \"off\" never (drawn, and ready, in the first HTML). The default is \"off\" for a fixed-size chart and \"scroll\" for a responsive one. Under reduced motion the chart is drawn in the first paint.",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"scroll",
|
|
19
|
+
"mount",
|
|
20
|
+
"off"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"replayKey": {
|
|
24
|
+
"description": "Change it to replay the entry without remounting the chart.",
|
|
25
|
+
"type": [
|
|
26
|
+
"string",
|
|
27
|
+
"number"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"fit": {
|
|
31
|
+
"description": "Fill the container's width at the chart's aspect ratio. Wins over `scale`.",
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
},
|
|
34
|
+
"scale": {
|
|
35
|
+
"description": "Slides: draw at the logical width, then show the composition this many times larger, type and textures with it.",
|
|
36
|
+
"type": "number",
|
|
37
|
+
"exclusiveMinimum": 0
|
|
38
|
+
},
|
|
39
|
+
"strokes": {
|
|
40
|
+
"description": "\"device\" keeps every stroke at one device pixel, and is the default when the chart is scaled (`scale` or `fit`); \"proportional\" scales strokes with the composition. It acts on stroked geometry only (rules, lines, rings, outlines): filled marks, such as the bars of RungBars, scale either way.",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"proportional",
|
|
44
|
+
"device"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"idPrefix": {
|
|
48
|
+
"description": "Leads every SVG id, to separate charts rendered in separate React roots on one page.",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"pattern": "^[A-Za-z][\\w-]*$"
|
|
51
|
+
},
|
|
52
|
+
"metrics": {
|
|
53
|
+
"description": "Glyph widths of a face other than Inter, so notes wrap and reserve room for it.",
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"advances": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"propertyNames": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"minLength": 1,
|
|
61
|
+
"maxLength": 1
|
|
62
|
+
},
|
|
63
|
+
"additionalProperties": {
|
|
64
|
+
"type": "number",
|
|
65
|
+
"exclusiveMinimum": 0
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"fallback": {
|
|
69
|
+
"type": "number",
|
|
70
|
+
"exclusiveMinimum": 0
|
|
71
|
+
},
|
|
72
|
+
"tabular": {
|
|
73
|
+
"type": "number",
|
|
74
|
+
"exclusiveMinimum": 0
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"advances",
|
|
79
|
+
"fallback"
|
|
80
|
+
],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
},
|
|
83
|
+
"table": {
|
|
84
|
+
"description": "Show the data table to sighted readers too. It is always there for screen readers.",
|
|
85
|
+
"type": "boolean"
|
|
86
|
+
},
|
|
87
|
+
"title": {
|
|
88
|
+
"description": "The chart's accessible name. Each chart has a default that reads the data.",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"minLength": 1
|
|
91
|
+
},
|
|
92
|
+
"data": {
|
|
93
|
+
"minItems": 1,
|
|
94
|
+
"maxItems": 731,
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"properties": {
|
|
99
|
+
"date": {
|
|
100
|
+
"anyOf": [
|
|
101
|
+
{
|
|
102
|
+
"type": "string",
|
|
103
|
+
"format": "date",
|
|
104
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "string",
|
|
108
|
+
"format": "date-time",
|
|
109
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"description": "The day of the reading, as an ISO date or date-time."
|
|
113
|
+
},
|
|
114
|
+
"id": {
|
|
115
|
+
"description": "Names the reading, and is its key; without it the date is.",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"minLength": 1
|
|
118
|
+
},
|
|
119
|
+
"value": {
|
|
120
|
+
"description": "The reading. Null is a day with no reading, drawn as a gap.",
|
|
121
|
+
"type": [
|
|
122
|
+
"number",
|
|
123
|
+
"null"
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": [
|
|
128
|
+
"date",
|
|
129
|
+
"value"
|
|
130
|
+
],
|
|
131
|
+
"additionalProperties": false
|
|
132
|
+
},
|
|
133
|
+
"description": "Readings by date, in any order. A null value is a gap."
|
|
134
|
+
},
|
|
135
|
+
"dateFormat": {
|
|
136
|
+
"description": "How dates print on the axis and in the tooltip. Defaults to day-month.",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"enum": [
|
|
139
|
+
"day-month",
|
|
140
|
+
"day-month-year",
|
|
141
|
+
"month-year"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"emphasis": {
|
|
145
|
+
"description": "The reading to draw in the hero colour, by key. Defaults to the peak.",
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"format": {
|
|
149
|
+
"description": "How values print: a preset name or Intl number-format options.",
|
|
150
|
+
"anyOf": [
|
|
151
|
+
{
|
|
152
|
+
"type": "string",
|
|
153
|
+
"enum": [
|
|
154
|
+
"integer",
|
|
155
|
+
"decimal",
|
|
156
|
+
"compact",
|
|
157
|
+
"percent"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"compactDisplay": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"enum": [
|
|
166
|
+
"short",
|
|
167
|
+
"long"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"currency": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"minLength": 3,
|
|
173
|
+
"maxLength": 3
|
|
174
|
+
},
|
|
175
|
+
"locale": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"minLength": 2
|
|
178
|
+
},
|
|
179
|
+
"maximumFractionDigits": {
|
|
180
|
+
"type": "integer",
|
|
181
|
+
"minimum": 0,
|
|
182
|
+
"maximum": 20
|
|
183
|
+
},
|
|
184
|
+
"minimumFractionDigits": {
|
|
185
|
+
"type": "integer",
|
|
186
|
+
"minimum": 0,
|
|
187
|
+
"maximum": 20
|
|
188
|
+
},
|
|
189
|
+
"notation": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"standard",
|
|
193
|
+
"compact"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"signDisplay": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"enum": [
|
|
199
|
+
"auto",
|
|
200
|
+
"always",
|
|
201
|
+
"exceptZero",
|
|
202
|
+
"never"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"style": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"enum": [
|
|
208
|
+
"decimal",
|
|
209
|
+
"percent",
|
|
210
|
+
"currency",
|
|
211
|
+
"unit"
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"unit": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"useGrouping": {
|
|
218
|
+
"type": "boolean"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"additionalProperties": false
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"height": {
|
|
226
|
+
"description": "Fixed height in px. Without it an area chart is 440 tall.",
|
|
227
|
+
"type": "integer",
|
|
228
|
+
"exclusiveMinimum": 0,
|
|
229
|
+
"maximum": 9007199254740991
|
|
230
|
+
},
|
|
231
|
+
"initialWidth": {
|
|
232
|
+
"description": "Responsive mode only: the width of the first render, before measuring.",
|
|
233
|
+
"type": "integer",
|
|
234
|
+
"exclusiveMinimum": 0,
|
|
235
|
+
"maximum": 9007199254740991
|
|
236
|
+
},
|
|
237
|
+
"maxWidth": {
|
|
238
|
+
"description": "Widest the plot gets, in px. Defaults to 640.",
|
|
239
|
+
"type": "number",
|
|
240
|
+
"exclusiveMinimum": 0
|
|
241
|
+
},
|
|
242
|
+
"ticks": {
|
|
243
|
+
"description": "Value-axis ticks, ascending; the scale runs from 0 to the last.",
|
|
244
|
+
"minItems": 2,
|
|
245
|
+
"maxItems": 12,
|
|
246
|
+
"type": "array",
|
|
247
|
+
"items": {
|
|
248
|
+
"type": "number"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"width": {
|
|
252
|
+
"description": "Fixed width in px. Giving it turns measuring off.",
|
|
253
|
+
"type": "integer",
|
|
254
|
+
"exclusiveMinimum": 0,
|
|
255
|
+
"maximum": 9007199254740991
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": [
|
|
259
|
+
"data"
|
|
260
|
+
],
|
|
261
|
+
"additionalProperties": false
|
|
262
|
+
}
|