Repository navigation
Releases
Releases · vincentlaucsb/svgplot
svgplot 0.4.2
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-barvisual regression snapshot.
Integer-valued bar axes and line charts are unchanged, and all existing fixtures render byte-identically.
svgplot 0.4.1
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-barvisual regression snapshot (24 monthly categories). - Fixed stale version markers (
CMakeLists.txt/package.jsonsaid 0.3.0). Newscripts/version.mjsbumps 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
- Integrated more accurate text size estimation
- Do not rotate multi-color heatmap squares just because orientation changed
- Added default palettes
svgplot 0.3.0
Highlights
- Added multi-series line charts with automatic legends.
- Added stacked and grouped bar charts via the
BarChartbuilder. - Added categorical calendar heatmaps with multi-value days.
- Added
CalendarHeatmapOrientationso 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
viewBoxgeneration. - 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
BaseChartOptionswith chart spacing fields such astitle_gapandheader_gap. - Added
LegendOptionsto 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, andsvgplot/heatmap_chart.hppwere removed as part of the header reorganization. Use#include <svgplot/svgplot.hpp>or the new chart-specific nested headers.
Split up main library
- Split up library into several files
- Integrate https://github.com/vincentlaucsb/single_header for single header generation
Inaugural Release
First usable/stable version of this library. Released tonight, in honor of OKC flopping against the Spurs.