Developers
9 posts tagged Developers, newest first.
How to make a population pyramid in JavaScript
A population pyramid draws a country's ages as back-to-back bars. This post builds Japan's from UN data, then animates it from 1950 to 2100.
How to make an animated bubble chart in JavaScript
An animated bubble chart plays a scatter plot one year at a time. This post builds the Gapminder chart from World Bank data, with trails, labels and controls.
How to make an animated choropleth map
An animated choropleth recolors each state as the weeks play. This post builds one from 2020 unemployment claims, on a states map and on a tile map.
How to make a bar chart race in JavaScript
A bar chart race plays a ranking one period at a time. This post builds one from World Bank GDP data, swaps it to lines and a table, and exports a GIF.
Responsive charts on mobile
On a phone, OpenChart thins the axis ticks on its own. The title length and which callout stays are still your call.
Export a chart as PNG, SVG or GIF from JavaScript
Save an OpenChart chart as SVG, PNG or GIF with chart.export, and see how large each file gets for one real chart.
Accessible charts for the web
OpenChart gives every chart a text label and keyboard navigation by default. You still write the alt text, and this post shows how to test it.
Server-side chart rendering with static SVG
renderStaticSVG turns a chart spec into an SVG string in Node, with no browser. The output works with JavaScript off but has no tooltips or animation.
Declarative chart spec vs D3
One line chart built twice, as a 45-line JSON spec and in 97 lines of D3, to show what each approach costs and gives you.