Tableau Line Chart – Analyse the trends of datasets
In this tutorial, we are going to learn about line charts in Tableau. Here, we will go through all the steps you need to know in order to create an informative tableau line chart for data analysis. Tableau offers a lot of interesting tools to create different kinds of line charts for every kind of business scenario. So first, let’s get started with the concept of line charts in tableau.
Stay updated with latest technology trends
Join DataFlair on Telegram!!
What are Line Charts?
A line chart is used to represent multiple data points connected together with a single line. These data points on a plot are called Markers. Line charts are used to analyze trends that datasets reveal. And for the same reason, line charts or lines in a plot are important in forecasting and trend analysis.
Before moving ahead, let’s see how to put your data into action using Tableau Motion Chart.
How to Create Line Charts in Tableau?
Follow the steps given below to create a tableau line chart. We are using a sample data set of Electronic store sales in Tableau Desktop. You can use your own data set to create a line chart with us.
Step 1: Add Dimension Field and Measure Field
This creates a preliminary line chart in the editing area. Now, we shall perform some more steps to create a dual line chart using two-measure variables.
Step 2: Add Profit Measure Field to Rows
Step 3: Drag SUM Measure Field to Y-Axis
Step 4: Find the Details of Measure Fields
After this, we will have a common y-axis for both Sales and Profit values. Also, in the Rows section, we do not have two separate measures, instead, there is one Measure Value that contains both the measure fields. We can find the details of it in the Measure Values card beneath the Marks card.
Step 5: Manage the Appearance of Tableau Line Chart
As you can see in the screenshot below, we have data points for each month in the respective year. Upon putting our cursor on the data points, we can see the details of the month, year and profit or sales value.
We can also make changes in the color scheme, line opacity, chart borders, line markers, halo, etc., to enhance our line chart in tableau. To add data labels on the tip of each data point in the line chart, we can drag and drop our measure field in the Label card present on Marks card.
We can also add forecasting lines which are extensions of the existing lines showing forecasted or probable values for future or coming years. We will learn about Forecasting in Tableau in a separate tutorial.
So here we conclude our tutorial on Tableau line chart. We hope it was easy for you to learn how to create line charts in Tableau on your device. If you have any queries or suggestions regarding the line chart in tableau article, mention them in the comments section. We will be happy to help.