Tableau Simples #8: Barcode Chart

  1. Put your continuous measure onto Columns and discrete Month into Rows. In my case, I used the Median of Profit (from the Superstore dataset)
  2. Drag the dimension that you want to split the view up by into Detail. In my case, I used Postal Code
  3. Change the mark type from automatic to Gantt Bar
  4. Reduce the opacity of the Colour. This is so you are able to better distinguish between each line
  5. Colour the view as you please. I decided to colour the lines based on whether they were above or below the median for each month. This was achieved via a calculated field:
MEDIAN([Profit]) > WINDOW_MEDIAN(MEDIAN([Profit]))

Tableau Public

Twitter

LinkedIn

Author:
Henry Mak
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2024 The Information Lab