Pie

This example will walk you through how to create a simple pie chart where you’re breaking down some population across groups within a dimension.

  1. First, set your Mark Type to Pie. This will ensure that you have all the relevant Layer channels to create your pie chart.

    Set type to Pie
  2. Add a discrete field to the Color channel. Each group is assigned equal weight until otherwise specified.

    Add field to Color
  3. Add a continuous, aggregated field to the Angle channel. This will now divide down your Pie graph into slices, where the size of each slice represents the value of that group relative to the total.

    Add field to Angle
  4. Optionally, you can add labels to your Pie graph by adding a field to the Text channel.

    Add field to Text

Was this page helpful?