HowTo: Make Pretty Pie Charts 4 January, 2007 — Stuart Brown
Using Adobe Illustrator CS2
Posted in Design, Tutorials
Tagged with: pie, chart, pretty, nice, design, illustrator, cs2, adobe
If you remember the post about the Demographics of Digg I wrote back in early December, one of the general themes of the associated Digg comments was the overwhelming niceness of the pie charts. Being the generous sort that I am, I thought I'd do a comprehensive tutorial of how to achieve the same effect - I'm using Adobe Illustrator CS2, but the tips should apply to most of the more recent versions.
Update: Here's the second part of this tutorial.
-
Open Illustrator, create a new document [Ctrl-N]. Any page size will do. If you're designing pie charts for the screen, you may want to ensure that the RGB colour mode is selected.

-
Select the 'Pie graph' tool from your toolbar. (Click-hold on the default Column graph tool to access the other stat tools). The pie graph tool takes care of the mathematics and angular calculations for us.

-
Drag out a suitably large bounding box for your pie chart with the pie chart tool selected. The data entry field (as below) should appear.

-
Data entry is simple enough - just enter your figures in the order you wish them to appear on the pie chart, pressing tab to move horizontally between each figure. Once you're done, press keypad enter to draw the (rather basic) pie chart.

- Next, select the Selection Tool (black arrow), close the date entry box, and select the freshly made pie chart. It may be worthwhile checking your data at this point to make sure you've not made any mistakes, as you won't be able to tweak the data figures later on.
- Once you're happy with the data, we can proceed to style the pie chart. Making sure the pie chart is still selected, press [Ctrl - Shift - G] (or select 'Ungroup' from the 'Object' menu) to break the pie into its component parts. Click 'yes' on the dialog box that appears, then press [Ctrl - Shift - G] a further 3 times to completely ungroup the pie chart. Once you've done this, the Appearance palette should read 'Path / Mixed Appearances'.

-
You should now be able to select the individual pie pieces. From here we can apply whatever styling and effect that we like to the pie charts - to begin, select the first piece of the pie using the selection tool, as below.

-
First step in the pie slice styling is to assign a basic colour fill. In the Appearance palette, select the 'Fill' attribute, then use either the Color palette, or Swatches to assign your chosen basic fill to the pie slice.
(You may have noticed in some of the pie charts in the 'Demographics of Digg' I've used a picture - this is done with a pattern fill in Illustrator, which I cover in the second part of this tutorial.
-
Next, select 'Stroke' in the Appearance palette, then select the white swatch, and specify a line weight of around 2px in the Stroke Palette. The pie slice should look something like the following:

-
Next, we'll add gradient fill to the slice. Go to the Appearance palette, and click the small right facing arrow in the circle to bring up a menu (as below). Click Add New Fill to add a second fill to the object.

-
Make sure the new fill is selected, and in the Gradient palette, select 'Radial' from the drop down menu and specify a white > black gradient, as below:
















