How to Make a Tiled Bar Chart with D3.js
Show individual data points by splitting bars into smaller cells.
Bar charts are one of the most effective ways of conveying quantitative data, be it size of population, GDPs or life expectancy. However, while they’re excellent for comparing values, they don’t really convey the size of the values.
For example, if a bar is representing a population of 5 million people or of just a small group of people it’s still just a rectangle. There’s no indication (besides the y-axis) that a bar is representing 10, 100, 1000 or 10,000 individual items.
To address this, you can split a bar into smaller cells.
To access this full tutorial and download the source code you must be a member. (If you are already a member, log in here.)
Gain unlimited access to hundreds of hours worth of step-by-step visualization courses and tutorials for insight and presentation — all while supporting an independent site. Source code and data is included so that you can more easily apply what you learn in your own work.
Members also recieve a weekly newsletter, The Process, which looks more closely at the tools, the rules, and the guidelines and how they work in practice.
See samples of everything you gain access to:
More Tutorials See All →
How to Make (and Animate) a Circular Time Series Plot in R
Also known as a polar plot, it is usually not the better option over a standard line chart, but in select cases the method can be useful to show cyclical patterns.
Drawing Circles and Ellipses in R
Whether you use circles as visual encodings or as a way to highlight areas of a plot, there are functions at your disposal.
A Variety of Area Charts with R
From the basic area chart, to the stacked version, to the streamgraph, the geometry is similar. Once you know how to do one, you can do them all.