So what do you do from here? One option might be to limit the number of categories, say to a Top 10, or Top 25. But what if you don't want to do that, what if you want to show every category in a manner that still allows for comparison in a single view? What do you do? Well, you split up the categories into smaller sub-sets.
The visualization above is an approach used to "fit" many categories into a single view for comparison. And to create this in Tableau is pretty simple, and uses the same technique as a Trellis Chart, minus an X Dimension.
First, I am going to create a Parameter that will allow me to control the number of Rows that appear in each Pane, this isn't necessary, I just like the flexibility.
Second, create the "X" Calculated Field.
If this looks familiar, it's because it probably is. The calculation above is the roughly the same formula you would see in a Dynamic Trellis chart, except we are explicitly telling Tableau how many Rows to create.
Third, we create the "Y" calculated field.
From this point, we just need to Change these fields to Discrete and drag them onto the Canvas. From there, we simply need to calculate using the Dimension, and drag the Dimension on the Text Mark.
Now you can do some cleanup, hide the X/Y headers, add a Rank field to the Label shelf and fit the chart, and that's it!
Hope this helps.
Rody






3 Comment
Rody,
BalasThanks! That looks just like what Stephen Few calls a Wrapped Graph. He recently worked with a guy named Daniel Zvinca on a new chart called a Zvinca Plot that could be used even if you had a larger set of values, let's say thousands. I'll be saving your blog so I have good steps to make a wrapped graph in Tableau and if you'd like to figure out how to build the Zvinca Plot in Tableau, well I'd save that too:).
Thanks,
Hope
Hey Rody,
BalasThanks for this! Is it possible that the calculation names are reversed? I got your result by putting RowSorter on columns? I could be doing this wrong though so let me know!
Interesting, this will be useful...I hate having to drag down in a viz to look for a chart/numbers.
BalasThanks! =)