As introduced in the video, different chart types can be used to display different types of information. Each of the chart types mentioned in the video can be created using Tableau.
Creating charts can be as quick as double-clicking your dimensions or measures. For more control, you can drag and drop elements.
This video is a short introduction to creating charts in Tableau.
In the following examples, we’ll revisit the Global Superstore data and use it to create several chart types. We recommend you follow these steps, creating a new worksheet for each chart.
Creating bar charts
You can create a bar chart by placing a dimension on the Rows shelf and a measure on the Columns shelf, or vice versa.
For your first chart, let’s analyse sales by category. In the data pane, double-click Sales and then double-click Category.
At this stage, the chart isn’t very easy to read. Remember what we said about adjusting the orientation and ordering columns? To do that, click Swap in the toolbar and then use the Sort icon to order the bars.
That’s much better. You can see which categories are selling well and which aren’t, but that tells only half the story. Let’s augment the chart with additional data; that is, our profits.
To add profits to the chart, drag Profit from the data pane until the Show Me cursor appears.
What stands out in the table above? That’s right, tables might be our best-seller – but they are not profitable.
At this stage, our chart has quite a lot of small sub-categories under Office Supplies at the bottom of the chart. They could distract your users. This data is still useful, but perhaps we don’t need to see it right now. In Tableau, we can group data.
To group data:
Hold down CTRL and click each of the sub-categories to select them.
Line charts are used to visualise changes over time. Let’s create a line chart to look at our sales over time on Tableau.
In a new worksheet, drag Order Date into Columns, and Sales into Rows. Tableau will aggregate the dates by year and then aggregate Sales as SUM to display a simple line chart.
In Tableau, you create a scatter chart by placing at least one measure on the Columns shelf and at least one measure on the Rows shelf.
To create a scatter chart:
Open a new sheet.
Drag the Profit measure into Columns and the Discount measure into Rows. By default, Tableau will aggregate these measures as a sum and create the relevant horizontal and vertical axis, placing one mark on the scatter plot.
You can add more data to scatter charts, just as you could with bar charts. Drag Segment to Color to help identify the segment your outliers belong to.
To show the filter, click the field drop-down menu in the data pane and select Show Filter. You’ll see a list of filters to the right of the chart. You can select or deselect these to show specific data.