Showing the Breakdowns of the Whole (Pie Chart & Tree Map)


1. Pie Chart

>> Create a pie chart

Method 1: Use Marks

  • Mark : Pie Chart
  • [Color] : dimension field [best: within 5 dimension members]
  • [Angle] : measure field
image-20210531095837772

Method 2: Use [Show Me]

  • Choose [dimension field] and [measure field]
  • click [Show Me] --> [Pie Chart]
image-20210531100157662 image-20210531100358442

2. Tree Map

If you have hierarchical data, or data with more than 5 dimension members, a pie chart is not ideal. Instead, a treemap may be a good choice.

Treemaps:

  • using [nested rectangles] to show [hierarchical data] as a part of the whole
  • the square shape helps your eye to compare relative sizes
image-20210531102957245

>> Build a treemap

Style 1: one dimension

  • [Color] & [Size] : 1 measure field
  • [Detail] : 1 dimension field
  • [Label] : measure & dimension
image-20210531103536900

Style 2: two dimensions (hierarchical data: Region -> Country)

  • [Color] : 1st dimension field (Region) [best: within 7 colors]
  • [Size] : 1 measure field
  • [Detail] : 2nd dimension field (Country)
  • [Label] : measure & dimensions
image-20210531104030412

Style 3: add a second color (3 dimensions)

  • [Color 1] : 1st dimension field (Region)
  • [Size] : 1 measure field
  • [Detail] : 2nd dimension field (Country)
  • [Color 2] : 3rd dimension field (Birth Rate Bin) [add shades of color]
  • [Label] : measure & dimensions
image-20210531105001952

Style 4: Word Cloud

Treemap --> change the Marks to [Text]

image-20210531105309022

Style 5: Bubble Chart

Treemap --> change the Marks to [Circle]

image-20210531105540971

Style 6: add a dimension to rows

image-20210531105703995