Creating line charts
Although line charts are best used for time-series data to observe trends by various time units, such as day, week, month, quarter, and year, they could be used for other types of data as well; however, the ups and downs in the lines themselves are less important in such cases.
Getting ready
Let's use the sample file, Sample – Superstore Sales (Excel)
. Open a new worksheet and select Sample – Superstore Sales (Excel) as the data source.
How to do it...
Once the data is loaded, perform the following steps to create a line chart:
- Drag-and-drop Order Date into the Columns shelf. Tableau, by default, will show YEAR(Order Date).
- Drag-and-drop Sales into the Rows shelf.
- To observe the trends by month of orders, click on YEAR(Order Date) ...
Get Tableau: Creating Interactive Data Visualizations now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.