Lift a chestnut! Tableau Trise (100): How to achieve eye-catching and intuitive four-petal flowers?

published: 2021-05-31

Below this VIZ, author matt chambers analyzes the major cities of the United States and Canada, and the champion data harvested in various urban sports tournaments.

l  Each flower represents a city, four petals represent MLB, NHL, NBA, and NFL championships. Farm represents the sum of various event champions;

l  Hover your mouse on each petal, you can view the championship classification of each city;

l  The four-petal flower in the upper right corner is a filter, you can click on any petals or flower to view the view.

Many data powder consultation: How to achieve this chart like a flower in Tableau?

The method is not difficult, but it is necessary to learn from a simple study: first learn to achieve a flower, then learn a lot of flowers. Let's learn together! 

The Tableau tricks "to give you a chestnut", Ada wants to share the Tableau tricks to you: How to achieve eye-catching and intuitive four-petal flowers?

For easy learning, chestnuts use Tableau to own supermarket data sources. To better implement the flower map, we first aggregate the supermarket data to the product subclass, which can satisfy the following structure.

Now, we have divided into two phases to learn the implementation of the four-petal flowers.

Specific steps are as follows:

【Learn to do a flower】

1, learn to do a flower first

Custom petals shape

First, we need to find the shape of the petals and follow the steps of how to insert a custom shape (☜ Click to read) to customize the four petals required for Tableau.

Open Tableau Desktop, in the shape in the tag bar, you can view the shape of these four petals.

2, set the filter

Next, we will drag the "product subclass" into the filter, filtering the "product subclass" 5 types of products: office furniture, office equipment, labels, chairs and accessories, tables.

l  Used as a category of four petals: office equipment, labels, chairs and accessories, tables

l  Used as a category of the flower: office furniture

Then, select the marker card to drag the product subclass into "color" and "shape" and select the shape of the petal.

3, create calculation field x and y

A key step, how to make these five shapes combines a flower? First of all, there is a flower, which is the center point (0,0), let four petals around the flower, respectively distribute the four quadrants, respectively (need to be considered in advance: which quadrant is available).

The settings of chestnuts are as follows:

l  Center point: "Office Furniture"

l  First quadrant: "office equipment"

l  Second quadrant: "Table"

l  Third quadrant: "chair and accessories"

l  Fourth quadrant: "label"

Next, how to distribute these types of interest in the quadrant we want to set? The method is to create a calculation field.

We create three fields: size, x and y.

4, drag the calculation field x and y into the row

Drag the newly entered two calculation fields (x, y) on the rows and columns, and you can see the chart to become a divergent four-petal flower diagram.

5, drag the calculation field size

Drag the newly created field "size" in size, at which time the petals exhibits different area depending on the size of the value, we can achieve the four-petal flowers we want by adjusting the size.

【Learn to do a lot of flowers】

Above we share how to implement a four-petal flower map, then when it is a data class, we may need to implement a lot of four-pet flower map, a VIZ of the head.

Next, let's take a look, how to use four petal flowers: the number of orders for different provinces and cities, different office supplies?

1. Create a calculation field colorn and row

On the basis of the previously completed operation, we will create two fields: column and row.

The role of these two fields is to save a two-dimensional graphic (several lines), for example: we have 31 provinces, using the calculation field to divide them into 5 lines 6 columns.

2, drag the column and rows in the calculation field column and row

Drag in column and rows separately, set them to Discrete Types.

And aggregate the field Y and X fields into average.

3, modification calculation basis

Drag the provincial and municipalities into "Details" and change the calculation of two fields of column and row to "province."

Complete this step, we get the following chart:

If the show effect in the worksheet is not ideal, we may wish to put it in the dashboard, adjust the size of the dashboard to the appropriate size, and multiple four-petal flower chart is completed!

Today's Tableau Trise, is you get? Try it quickly!