Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
GGavin Sykes
Last edited Jan 2, 2022
Created on Jun 16, 2021
Forked from D3 Starter

This example displays a scatter plot comparing programming language performance on Project Euler problems, with user-selectable axes, filter options, and animated transitions. It loads CSV timing data and color mappings from GitHub repositories, then visualizes results as colored circles that animate to new positions when the dataset changes. The visualization uses a custom surrounding-layout system that automatically positions titles, subtitles, axes, and legends within an SVG canvas. Built with D3 v7, the code leverages `d3.scaleLinear`, `d3.scaleBand`, `d3.scaleTime`, `d3.axisBottom`, `d3.axisLeft`, `d3.transition`, and dynamic menu-driven data selection through reusable chart components.

AI-generated description

A reusable scatter plot inspired by Curran's YouTube Series Get it Right in Black & White started in March 2021.

I have long been working on a library to allow a user to add the surrounding bits (title, subtitle, legend) to an SVG visualisation without concerning themselves with positioning the chart, as the library will do it for them.

Given that it is written in plain JavaScript, getting this library to work alongside D3 and achieve the same effects that D3 can has been a challenge, but it is starting to come together!

Why write it in plain JavaScript? There are people out there who don't use D3!

MIT Licensed

Similar vizzes