Vector Graphics in the Browser: Chartist 2.0, Pele Diagrams, and 3D Export with 3dsvgThematic roundup · digest for October 22
Studio still life of modern vector graphics tools: responsive Chartist 2.0 charts, Pele diagrams, and flat SVG-to-3D export with 3dsvg.
Thematic roundup3 sections≈ 3 min

Vector Graphics in the Browser: Chartist 2.0, Pele Diagrams, and 3D Export with 3dsvg

SVG vector graphics are a uniquely capable medium on the web platform. Unlike raster images or the pixel buffer of HTML5 Canvas, SVG elements are first-class citizens of the DOM: you can style them with CSS, animate them with standard transitions, make them accessible to screen readers, and scale them to any display resolution without losing a shred of sharpness.

For years, though, the vector library ecosystem swung between two extremes: either the heavyweight juggernaut D3.js with its steep learning curve, or closed, proprietary widget players.

In today's roundup, we're dissecting three sleek, lightweight tools from this week: the revamped Chartist 2.0 charting library, the Pele diagram generator, and the 3dsvg transformation utility.

Let's see how these projects take the friction out of working with vectors.

Chartist 2.0

The cult-favorite Chartist library is back with a 2.0 major release. This isn't just a version bump—it's a ground-up rethink of the codebase:

  • Completely rewritten in modern TypeScript.
  • Weighs in at just 12 KB with zero external dependencies.
  • Separation of markup and styling: Unlike most charting libraries, Chartist doesn't hardcode inline line colors or fonts into SVG attributes. Every line, grid, and point gets semantic classes so you can style them with plain CSS rules.
import { LineChart } from 'chartist';
import 'chartist/dist/index.css';

// Initialize a responsive line chart
new LineChart(
  '#traffic-chart',
  {
    labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
    series: [
      [12000, 15000, 18500, 17200, 22000, 26000, 31000],
      [8000, 9500, 11000, 10500, 14000, 17500, 19000],
    ],
  },
  {
    fullWidth: true,
    chartPadding: { right: 40 },
  }
);

Because it outputs clean SVG, line-reveal animations are just a matter of tweaking stroke-dashoffset in CSS. If you want to go deeper on styling complex vectors, we also wrote a guide on one SVG, nine themes: styling with CSS.

Pele

Mermaid's text-based diagram syntax has taken over documentation and knowledge bases everywhere. The catch? The official mermaid.js runtime weighs over a megabyte and drags along heavy parsers.

Pele offers a radical alternative:

  • An ultra-light renderer that compiles Mermaid diagrams straight into themeable, clean SVG.
  • Zero dependency overhead.
  • Native light and dark mode support via currentColor CSS variables.
import { renderMermaidToSvg } from 'pele';

const diagramText = `
graph TD
  A[Client Request] --> B[Nginx Load Balancer]
  B --> C[Node.js Backend]
  C --> D[(PostgreSQL)]
`;

const svgString = renderMermaidToSvg(diagramText, { theme: 'neutral' });
document.getElementById('diagram-container').innerHTML = svgString;

3dsvg

3dsvg blurs the line between 2D vector art and 3D space:

  • Upload a flat SVG logo or icon.
  • On the fly, the algorithm triangulates Bezier curves, extrudes depth, and outputs a ready-to-use 3D model in glTF/GLB format.
  • You can drop the resulting model straight into a web page with <model-viewer> or Three.js.

The Vector Verdict

Vector graphics on the web have finally grown up: with Chartist 2.0, Pele, and 3dsvg, you get crisp, responsive, lightweight interfaces without shipping piles of unnecessary code.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 3