hand_drawn_analytics 0.1.1
hand_drawn_analytics: ^0.1.1 copied to clipboard
Bridges analytics_toolkit queries onto hand_drawn_toolkit charts and tables: runs the query, maps the result, and defaults only what you leave unset.
Change Log #
2026-06-22 #
Changes #
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
hand_drawn_analytics - v0.1.1
- FIX: restoring previous version and updating workflow for correct deployment (#5). (4c4a03db)
- FIX: reverting failed Melos change (#4). (455e81fc)
- FIX: attempting to address deployment issues (#3). (67f2b785)
- FIX: patching the pubspec.yaml file (#2). (f69ecf3f)
- FEAT: Doc changes posing as a feat (#6). (f3267956)
0.1.1 #
- FIX: restoring previous version and updating workflow for correct deployment (#5). (4c4a03db)
- FIX: reverting failed Melos change (#4). (455e81fc)
- FIX: attempting to address deployment issues (#3). (67f2b785)
- FIX: patching the pubspec.yaml file (#2). (f69ecf3f)
- FEAT: Doc changes posing as a feat (#6). (f3267956)
Changelog #
0.1.0 #
Initial release.
A bridge between analytics_toolkit (a rendering-agnostic query engine) and
hand_drawn_toolkit (sketchy chart and table widgets): it runs a typed query,
maps the result into the toolkit's data class, and renders it, defaulting only
the values the consumer left unset.
- Query-backed widgets:
HandDrawnAnalyticsBarChart,HandDrawnAnalyticsLineChart,HandDrawnAnalyticsScatterPlot, andHandDrawnAnalyticsTable, plus theHandDrawnAnalyticsBigNumberleaf and theHandDrawnAnalyticsStreakLeaderboard. Each styles itself from ahand_drawn_toolkittemplate built withdata: null. - Spec-driven cards:
HandDrawnAnalyticsCarddecodes a persistedAnalyticsWidgetSpec(query, display type, and date-range mode, all JSON), runs it, dispatches by display type, and reloads on typedAnalyticsChangeevents;AnalyticsScalarCardcovers the single-KPI case. - One-scope configuration:
AnalyticsScopesupplies a shared runner, palette, formatters, color resolver, and display aliases to a subtree, with a runner that stays instance-stable across rebuilds so widgets refetch only when the data source actually changes. - Display-type dispatch:
HandDrawnAnalyticsWidgetroutes an already-computed result to a widget by a free-formdisplayTypestring, with consumer aliases and an optionalAnalyticsWidgetBuildersregistry for custom rendering of mapped data. - Paired-query rendering: scatter plots consume a paired result directly;
every other display reduces a paired result to one series with a
SeriesCombinationaligned by bucket key. - Pure mapper layer: every result-to-chart-data conversion is an exported
pure function (
seriesToBar,pairedToScatter,resultToTable, …). - Typed, graceful failure: expected problems surface as a sealed
BridgeErrorfamily rendered as the toolkit's own empty states, never thrown. - Semantic coloring: a resolver → tag-pin → positional-palette resolution
order via
BridgePalette. - Locale-aware formatting: one
BridgeFormatterspolicy object for table cells, big numbers, axis ticks, unit labels, and bucket-key labels, reactive to runtime locale switches. BridgeFormatters` policy object for table cells, big numbers, axis ticks, unit labels, and bucket-key labels, reactive to runtime locale switches.