Changes for version 0.14 - 2026-09-15
- Enhancements
- render_pie_chart_snippet: major upgrade. Now accepts an optional second argument \%opts with six keys:
- animated (bool, default 0): fan slices in from arc-length 0 using attrTween / d3.easeBackOut.overshoot(1.2) with 800 ms staggered transitions; legend fades in after; respects prefers-reduced-motion
- donut (bool, default 0): inner radius 38% of outer; total sum shown in the centre hole
- sort_slices ('value'|'label'|'none', default 'none'): sort order
- max_slices (int, default 0): collapse tail into an "Other" slice
- legend (bool, default 1): HTML legend panel with colour swatches
- color_scheme (string, default 'tableau10'): supports tableau10, category10, set2, set3, paired Negative values are silently converted to their absolute value; zero- value slices are silently omitted. Optional \%extra hashref per data point is shown as additional rows in the hover tooltip. svg_id changes from 'chart' to 'pie_chart' for namespace clarity. (Breaking change in svg_id value; all other behaviour is backward- compatible when opts are omitted.)
- render_pie_chart_snippet: major upgrade. Now accepts an optional second argument \%opts with six keys:
Documentation
Modules
A simple Perl module for generating charts using D3.js.