dwind-dviz: harden the public API - #29
Merged
Merged
Conversation
The chart library that grew up as its own (never pushed) repository now lives here as three crates: dwind-dviz-core (DOM-free scales, ticks, geometry, formatting, validated palettes), dwind-dviz-data (signal-backed static and live sources) and dwind-dviz (the SVG renderer, layers and presets). They opt into a new [workspace.package] block and depend on dwind, dwind-macros and dwui by path, so they version, test and publish with the rest of the stack. The crate README, PLAN.md and pre-migration changelog come along. The chrome neutrals are now the woodsmoke steps, and three host tokens (--dviz-accent, --dviz-font-display, --dviz-font-mono) let an app pull charts into its look without touching data colours. The example site sets them on its root and gains a Charts page at #/charts: every preset, live data, keyboard and pointer interaction, and a light-surface preview switch. It is linked from the header, the footer and the command palette. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JsXRd7GCo4GpdH3sfLCXk5
JedimEmO
force-pushed
the
feat/dwind-dviz
branch
from
September 12, 2026 10:53
964da2a to
cb95942
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
This PR hardens the new
dwind-dvizcrate before its first public release. The focus is correctness and extension points, not adding another chart type.Data and scale contracts
DataErrorvalidation for empty/duplicate series ids and invalid coordinates.try_new/try_setconstructors for static and mutable sources.CategoryPointconversion andencode_category_seriesfor categorical bars.Extensibility and reactivity
CustomScale/CustomScaleHandlefor user-defined x/y scales with mapping, inversion, ticks, descriptions, and responsive ranges.DomainSourcefor reactive x-extents from static, mutable, and windowed data.Accessibility and examples
table_viewfor series summaries andpoint_table_viewfor every exact observation.Verification
cargo test -p dwind-dviz-core -p dwind-dviz-data -p dwind-dviz: 72 core, 11 data, and 22 renderer tests passing.cargo check --workspace: passing.cargo check -p dwind-dviz --target wasm32-unknown-unknown: passing.git diff --check: passing.Browser tests are configured in CI with wasm-bindgen 0.2.126 to match the lockfile. The local runner is 0.2.128, so local browser execution is blocked by that tool-version mismatch rather than a compile or test failure.