Skip to main content
100%

Displaying a Title, Subtitle and Legend on an SVG Visualisation

✓ Published0🌍 Public
GGavin Sykes
Last edited Mar 22, 2021
Created on Apr 1, 2020
Forked from HTML Starter

This example demonstrates how to display a title, subtitle, and legend within an SVG visualization built with the `svgchrt` library and React. It uses a bar-chart-style layout to show the number of speakers (in millions) for various world languages, with data sourced from Vistawide. The code filters the dataset to a subset of languages, sorts them, and configures the legend with custom icons and positioning. It also includes a night-mode toggle that adjusts the color scheme based on the time of day.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Data for the number of speakers of each language taken from Vistawide

MIT Licensed

Similar vizzes