Changes for version 0.16 - 2026-09-21
- Enhancements
- render_heatmap_snippet: new snippet method that generates an embeddable D3 v7 grid heatmap. Accepts an array of [$x, $y, $value] triples and an optional \%opts hashref with keys: color_scheme (YlOrRd/Blues/Greens/ Purples/RdPu/YlGnBu, default YlOrRd), x_label, y_label, val_label (tooltip label, default 'Value'), show_values (print value in each cell, auto-suppressed when cell < 28px), cell_padding (0-8 px gap, default 2), legend (colour-scale bar, default on), animated (fade-in with prefers-reduced-motion support, default off). Returns { svg_id => 'heatmap', html => Str }. undef values are silently skipped; duplicate (x, y) pairs: last write wins. Requires Scalar::Util looks_like_number (already in core distribution).
Documentation
Modules
A simple Perl module for generating charts using D3.js.