Skip to main content
100%

Ep 2: Pseudo horizontal barchart

✓ Published1🌍 Public
Kkwambokar
Last edited Aug 6, 2022
Created on Aug 6, 2022

This example presents a pseudo horizontal bar chart using static SVG rectangles within a React-based visualization. It uses the `Share Tech` font for bar labels A–D, with black bars of varying widths and one styled red bar featuring a thick black stroke via the `first-bar` class. The chart encodes values through bar length, with categorical labels placed on the left. The code directly embeds SVG `<rect>` and `<text>` elements in the HTML, demonstrating a simple, non-data-driven approach to bar chart rendering without JavaScript interactions or external data sources.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes