Changes for version 0.12 - 2026-09-13

  • Enhancements
    • Added render_animated_bar_chart(): bar chart with on-load grow animation — each bar rises from the baseline using d3.transition() with an 800 ms duration and a 100 ms per-bar stagger, so bars appear one after another from left to right
    • Added render_animated_line_chart(): line chart with on-load draw animation — the line traces itself left-to-right via the stroke-dashoffset technique with d3.easeLinear (1500 ms), followed by data-point circles fading in from opacity 0 once the line is complete
    • Added render_pie_chart(): full-page pie chart with percentage labels inside each slice and a colour legend; slices coloured with d3.schemeCategory10
    • Added render_animated_pie_chart(): same as render_pie_chart() but slices fan out from zero on page load via attrTween/d3.interpolate (1000 ms), with percentage labels fading in once drawing is complete
    • Added render_pie_chart_snippet(): embeddable pie chart fragment returning {svg_id, html} — no page shell, no D3 CDN tag; caller loads D3
  • Tests
    • Test::HTML::T5 doesn't build on a number of platforms, so remove the dependancy. Hopefully this will be fixed at sometime.

Documentation

Modules

A simple Perl module for generating charts using D3.js.