Skip to content

Releases

svgplot 0.4.2

Choose a tag to compare

@vincentlaucsb vincentlaucsb released this 18 Oct 21:23
ae5f0ca

Patch release.

  • Fix: bar chart y-axes with non-integral values now use nice bounds and steps (vincentlaucsb/csvzall#21). Before, the axis ran to max × 1.1, split evenly (0, 25, 50, 76, 101 for a max of 91.7). It now expands to a multiple of a 1 / 2 / 2.5 / 5 × 10ᵏ step (0, 25, 50, 75, 100). Tick labels use step-aware precision, so 2.5 and 0.25 steps aren't rounded away.
  • New LinearScale::nice_domain() / nice_ticks() helpers.
  • New nice-y-axis-bar visual regression snapshot.

Integer-valued bar axes and line charts are unchanged, and all existing fixtures render byte-identically.

svgplot 0.4.1

Choose a tag to compare

@vincentlaucsb vincentlaucsb released this 18 Oct 20:18
cc807b7

Patch release.

  • Fix: bar chart category labels no longer overlap when there are many categories (vincentlaucsb/csvzall#20). Labels that fit stay horizontal; wider labels rotate −45°, and if rotated labels would still collide only every Nth label is drawn. The x-axis title moves below rotated labels. Applies to simple, stacked, and grouped bars.
  • New crowded-monthly-bar visual regression snapshot (24 monthly categories).
  • Fixed stale version markers (CMakeLists.txt/package.json said 0.3.0). New scripts/version.mjs bumps all markers at once and is enforced in CI and on release tags.

No API changes; charts whose labels already fit render the same as 0.4.0.

svgplot 0.4.0

Choose a tag to compare

@vincentlaucsb vincentlaucsb released this 30 May 21:59
0b6562a
  • Integrated more accurate text size estimation
  • Do not rotate multi-color heatmap squares just because orientation changed
  • Added default palettes

svgplot 0.3.0

Choose a tag to compare

@vincentlaucsb vincentlaucsb released this 25 May 06:39
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.

Split up main library

Choose a tag to compare

@vincentlaucsb vincentlaucsb released this 20 May 06:30
60a2417

Inaugural Release

Choose a tag to compare

@vincentlaucsb vincentlaucsb released this 19 May 06:58

First usable/stable version of this library. Released tonight, in honor of OKC flopping against the Spurs.