ContentsPie chartsApples to apples
Previous: Why pie charts are different | Next: Effects

Apples to apples

Adding a legend to a PdfPieChart is just a easy as it is to a normal chart. For all intents, it is identical to use except for the need to specify the PdfPage that it should be output to. code / output

A very important difference, however, is that each of the values should be made with the same unit of measure and should pertain to the same context. This is important for the same reason that you wouldn't add two coins (a penny and a dime) with a fish... the number of objects (3) conveys little meaning. If you converted everything to dollars ($0.01 + $0.10 + (current_market_price_per_ounce_of_fish_in_dollars * weight_of_fish_in_ounces)) you can then compare their relative values and represent this information as a pie chart.

Legends on pie charts show how much each portion contributes to the whole.


ContentsPie chartsApples to apples
Previous: Why pie charts are different | Next: Effects