Displaying a Title, Subtitle and Legend on an SVG Visualisation
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page.
See also React Starter.
Data for the number of speakers of each language taken from Vistawide
MIT Licensed