Pictogram (Part 1)
The Inspiration
Pie charts are not well-liked. For years, the data designers have railed against them and their problems with obfuscation, misdirection, and general bad looks.
But people still use pie charts, and the reason is that pie charts are a way to concisely represent “percentages that add up to a whole.” Fortunately, though, there are other ways to do this too - ways that are more palatable and easier to read.
The inspiration for this exercise is one of those ways. In the graph More Women Are in Parliaments Around the World, the graph smartly represents not just percentages of a whole, but a progression of percentages. It can be thought of as a layered, squarish pie chart. And the design is a perfect way to practice pictograms.
Pictograms, or pictographs, are a way to show numbers of things using repeated images. These can often be found in the pages of national newspapers, and are often a bit whimsical.
source: https://www.forbes.com/sites/naomirobbins/2012/10/10/two-opinions-on-the-usefulness-of-pictographs/#91aed7223dd8
Here, instead of representational images (e.g. apples) the designer has used more abstract icons, empty or colored, and in the shape of a parliamentary seating chart.
The Exercise
For this exercise, we’ll simplify the inspiration viz quite a bit to boil it down to the essential feature - repeating filled and unfilled circles, with colors representing percentages.
It’s recommended that, to keep it simple, you build a rectangle made of SVG circles, then color them in according to percentages. Don’t worry about the axis for now - we’ll tackle that in a follow-up exercise.
The complete data used for my solution is below.
A Solution
My solution looks like this:
The code is below, but I encourage you to try your hand at this exercise on your own. Complete code and working example can be found on codepen.
And once you’ve completed this step, I encourage you to check out Part 2, where we add a fancy axis.