Data Visualization Assignment 1
Data Visualization Assignment 1
Q1) If your manager tasks you with creating visually appealing charts or graphs for an
upcoming client presentation, specifically for two types of data: (a) Numerical data and
(b) Time series data, outline four distinct charts for each data type, totalling eight
charts. Alongside each, provide concise instructions on how to construct them in
Tableau. Additionally, incorporate hand-drawn illustrations for better clarity.
Ans. 1)
1. Bar Chart:
- Tableau Steps:
1. Drag the numerical variable to Rows.
2. Drag the categorical variable to Columns.
3. Adjust the marks card to Bar.
2. Scatter Plot:
- Steps:
1. Place both numerical variables on the Axes.
2. Customize points with additional dimensions if needed.
3. Box-and-Whisker Plot:
- Steps:
1. Drag the numerical variable to Rows.
2. Add categorical variable to Columns.
3. Change the mark type to Box Plot.
4. Doughnut Chart:
- Steps:
1. Drag the numerical variable to the Columns shelf.
2. Drag a dimension to the Detail card.
3. Create a calculated field for the percentage.
1. Line Chart:
- Steps:
1. Place the time variable on the Columns shelf.
2. Drag the numerical variable to Rows.
3. Change the mark type to a line graph.
2. Area Chart:
- Tableau Steps:
1. Drag time to Columns and the numerical variable to Rows.
2. Change the mark type to Area.
3. Heat Map:
- Tableau Steps:
1. Place time and a categorical variable on Rows and Columns.
2. Drag the numerical variable to the Color shelf.
Q2) In the context of the Sample Superstore dataset, focus on the ship date associated
with each order. The task at hand is to transform these ship dates into a specific format
given below, and you are expected to achieve this using both the IF and CASE
statements separately.
```tableau
ELSE
MID([Ship Date], 4, 2) + " " +
DATENAME('month', DATE(DATETRUNC('month', DATEPARSE("yyyy-MM-dd",
END
```
CASE [month]
WHEN '1' THEN 'January'
WHEN '2' THEN 'February'
WHEN '3' THEN 'March '
WHEN '4' THEN 'April'
WHEN '5' THEN 'May'
WHEN '6' THEN 'June'
WHEN '7' THEN 'July'
WHEN '8' THEN 'August'
WHEN '9' THEN 'September'
WHEN '10' THEN 'October'
WHEN '11' THEN 'November'
WHEN '12' THEN 'December'
END
Finally, create a calculated field of variable day+ month name+ Variable year.
Q3) Provide instructions or steps for creating a Gantt chart and a Donut chart using the
Sample Superstore dataset. Additionally, include hand-drawn illustrations for each
chart to visually demonstrate the process.
2. Convert to Gantt:
- Right-click on the "SUM(Sales)" pill on the Rows shelf.
- Choose "Gantt Bar" under the "Show Me" menu.
3. Adjust Formatting:
- Click on the "Size" shelf and adjust the size of the Gantt bars as needed.
- Format the date axis to display months or days, depending on your preference.
3. Adjust Size:
- Drag "Dummy Field" to the Size shelf.
- Adjust the size slider to create a hole in the centre, forming a donut.