Skip to content

svgplot 0.3.0

Choose a tag to compare

@vincentlaucsb vincentlaucsb released this 25 May 06:39
· 12 commits to main since this release
f9701e6

Highlights

  • Added multi-series line charts with automatic legends.
  • Added stacked and grouped bar charts via the BarChart builder.
  • Added categorical calendar heatmaps with multi-value days.
  • Added CalendarHeatmapOrientation so calendar heatmaps can render months horizontally or vertically.
  • Added reusable legend options and placement support.
  • Improved default chart styling with dark-mode-aware CSS variables.
  • Made chart SVG output responsive by default with content-sized viewBox generation.
  • Reduced repeated color CSS by reusing the same svgplot-color-* classes for plot elements and legends.

API And Layout

  • Added chart-specific header folders:
    • svgplot/bar_chart/...
    • svgplot/line_chart/...
    • svgplot/heatmap/...
    • svgplot/legend/...
    • svgplot/core/...
  • Preserved the umbrella include:
    • #include <svgplot/svgplot.hpp>
  • Added shared BaseChartOptions with chart spacing fields such as title_gap and header_gap.
  • Added LegendOptions to chart options.
  • Added integer tick handling for integral chart data.

Examples And Tests

  • Added examples for:
    • multi-series line charts with multiple legend positions
    • stacked bar charts
    • categorical/multi-value heatmaps
  • Expanded C++ unit coverage.
  • Expanded Playwright visual snapshot coverage.
  • Added generated single-header smoke tests for release confidence.

Potentially Breaking

  • Direct old top-level chart headers such as svgplot/bar_chart.hpp, svgplot/line_chart.hpp, and svgplot/heatmap_chart.hpp were removed as part of the header reorganization. Use #include <svgplot/svgplot.hpp> or the new chart-specific nested headers.