Skip to main content
100%

Pseudo Line Chart with HTML

✓ Published1🌍 Public
CCurran Kelleher
Last edited Sep 25, 2025
Created on Mar 13, 2021

This example shows a pseudo line chart built entirely without a charting library, using a single SVG `<path>` element to approximate a data series with thick, rounded strokes. The chart presents six connected points across a fixed 960 by 500 canvas, using a black line with `stroke-width="40"` and `stroke-linecap="round"` to create a bold, abstract visual. The path’s coordinates are hardcoded in the `d` attribute, and the rendering relies on SVG’s native `stroke-linejoin` for smooth corners. No data is loaded externally; the visualization is a static, hand-authored approximation of a line chart.

AI-generated description

An approximation of a line chart in vanilla HTML.

MIT Licensed

Similar vizzes