Data Visualization Lab Manual 1 to 12
Data Visualization Lab Manual 1 to 12
• Menu Bar: Located at the top; contains options for file management and editing.
• Toolbar: Quick access to common functions like saving, undoing, and visualizing.
• Data Pane: On the left; shows your connected data sources and fields.
• Shelves: Rows, Columns, Filters, and Pages; where you place fields to create
visualizations.
• Canvas: The central area where your visualizations appear.
• Connecting to Data: Click on “Connect” to load your data from various sources
(Excel, text files, etc.).
• Creating Visualizations: Drag and drop fields onto the Rows and Columns shelves
to create charts.
• Filters: Drag fields to the Filters shelf to limit data displayed in your visualizations.
• Sorting: Click on a field header in the view to sort data in ascending or descending
order.
• Saving Work: Use File > Save to save your workbook to Tableau Public.
3. Load Data
o Preview Data: Review the data in the Data Source tab.
o Drag Table to Canvas: If using a database or multiple sheets, drag the desired
table/sheet onto the canvas.
➢
1. Open Worksheet
• Drag fields to Rows and Columns (e.g., Sales to Columns, Order Date to Rows)
3. Format Chart
4. Add Filters
6. Define Parameters
1. Open Dashboard
• Title: Add a title for context (Text box > drag to the top).
• Worksheets: Include individual visualizations created earlier.
• Filters: Add interactive filters to help users explore data.
• Legends: Include color or size legends for clarity.
• Add a Container: Drag a Vertical or Horizontal container from the Objects pane to
the dashboard area.
• Insert Worksheets: Drag your worksheets into the container.
• Adjust Sizing: Resize the container and worksheets as needed for a balanced layout.
• Align Elements: Use the layout pane to ensure everything is properly aligned.
• Create Action Filter: Dashboard menu > Actions > Add Action > Filter.
• Set Source Sheets: Select the worksheet that triggers the action.
• Select Target Sheets: Choose which worksheets will respond to the filter.
• Configure Actions: Decide how users will interact (e.g., select or hover).
• Click OK: Save your action filter settings.
• Highlight Action: Highlights related data across worksheets when one is selected.
• URL Action: Links to external content (websites, documents) based on selection.
6. Final Adjustments
• Review Layout: Ensure the dashboard is visually appealing and easy to navigate.
• Test Interactivity: Click through action filters to verify they work as intended.
• Save Dashboard: File > Save As to keep your work.
o Drag Fields: Use the Fields Pane to drag data fields onto the Report Canvas to
create visualizations.
o Customize Visuals: Select a visualization and use the Visualizations Pane to
adjust its appearance.
o Save Your Work: Click File > Save to store your report as a .pbix file.
6) Querying Data from CSV - Query Editor, Connecting the data from the
Excel Source, Clean, Transform the data.
➢
❖ Querying Data from CSV in Power BI
OUTPUT:
➢
❖ Creating Reports & Visualizations in Power BI
icon).
▪Expand the "Title" option, turn it on, and enter your desired title.
o Change Colors:
▪ In the same Format section, look for the "Data colors" option.
▪ Click to choose different colors for the chart elements, ensuring they
are visually appealing and distinct.
6. Customize Further
o Adjust Labels: Turn on data labels to show values on the chart.
o Modify Legends: If applicable, adjust the legend‟s position or font size for
better visibility.
o Change Background: Set a background color for the chart to make it stand
out.
7. Save Your Report
o Save File: Click File > Save to keep your report updated with your new
visualizations.
OUTPUT:
➢
❖ Creating Dashboards in Power BI
o Arrange Visuals: Drag and drop visualizations onto the report canvas to
arrange them as desired.
o Resize Visuals: Click on the edges of each visual to resize them for better
layout.
4. Add Filters to the Dashboard
o Insert a Filter:
▪ From the Visualizations Pane, select the filter visual (e.g., Slicer).
▪ Drag the desired field (e.g., "Category" or "Date") to the filter visual.
o Configure Filter Options:
▪ Use the filter visual to select specific values or date ranges that will
affect the other visuals on the dashboard.
5. Sync Filters Across Visuals
o Select the Filter: Click on the filter visual you just added.
o Sync Filters: In the Format pane, look for the “Edit Interactions” option.
Choose how the filter interacts with other visuals on the dashboard (e.g.,
affecting all visuals or specific ones).
6. Format the Dashboard
o Add a Title:
▪ Click on the blank area of the report canvas.
▪ Go to the Format pane, and find the “Title” option to add a title for
your dashboard.
o Adjust Background Color:
▪ In the Format pane, find the “Page background” option to change the
dashboard's background color.
o Customize Visual Borders:
▪ Click on individual visuals and use the Format pane to add or change
borders for clarity and emphasis.
7. Save Your Dashboard
o Save File: Click File > Save to keep your dashboard layout and settings.
i) Choropleth Map:
*Connect to Your Data Source:
• Open Tableau.
• Connect to your dataset (e.g., Excel or CSV) that includes fields for State and Revenue.
*Assign Geographic Role to State:
• In Tableau‟s Data Pane, right-click on the State field.
• Choose Geographic Role > State to ensure Tableau recognizes the field as geographic
data.
*Create the Basic Map:
• Drag the State field to the Rows shelf.
• Tableau will automatically generate a map if the field has a geographic role.
*Add the Revenue Data:
• Drag the Revenue field to the Color shelf under Marks.
• The map regions will be filled based on the revenue data for each state.
*Adjust the Map Type to Filled (Choropleth Map):
• On the Marks card, change the map type to Filled Map.
• States will be filled with color based on revenue.
*Edit the Color Scheme:
• Click on the Color shelf and choose Edit Colors.
• Use a diverging color palette (e.g., light-to-dark gradient) to highlight highest and
lowest revenue states.
*Add a Title:
• Double-click on the Title at the top of the worksheet.
• Give a descriptive title like “Monthly Revenue Analysis”.
*Finalize and Publish:
• Once your chart is ready, export it or publish it to Tableau Server/Tableau Public.
CS&E(DATA SCIENCE) Dept, PESITM, Shivamogga Page 10
DATA VISUALIZATION LAB (BAIL504)
v) Butterfly Chart:
*Connect to Your Data Source:
• Open Tableau and connect to your data source (Excel, CSV, etc.) con- taining your
revenue data.
*Create Calculated Fields for Male and Female Revenue:
• Male Revenue:
• Click on the Analysis menu and select Create Calculated Field.
• Name it ”Male Revenue” and enter the formula:
• Female Revenue:
• Repeat the process to create another calculated field named ”Female Revenue” with the
formula:
(i)
➢
❖ Drag Country Name to Columns.
❖ Select Symbol Maps from Show me.
❖ Drag Country Name to Marks Sections & make it label.
❖ Drag any year to color & size in the marks table.
❖ Title : “Symbol Map”.
❖ Symbol Maps(Output):
(ii)
➢
❖ Drag Measure Name to Columns.
❖ Drag Measure Value to Rows.
❖ Add filter to Measure Names -> 2006 to 2020.
❖ Add filter to country name -> Belgium change graph type to bar.
❖ Title: “Belgium GDP Comparison”.
CS&E(DATA SCIENCE) Dept, PESITM, Shivamogga Page 18
DATA VISUALIZATION LAB (BAIL504)
(iii)
➢
❖ Drag 2010 to Rows.
❖ Drag Country Name to Columns.
❖ Add filter to Country Name -> India, Nepal, Romania, South Asia &
Singapore.
❖ Change Graph type to Die.
❖ Put Country Name & 2010 to marks section & change type to label.
❖ Title: “GDP Pie Chart”.
❖ GDP Pie Chart(Output):
(iv)
➢
❖ Drag Country Name to Columns.
❖ Drag Measure Value to Rows.
❖ Add filter Country name to select India & Costa Rica.
❖ Change Graph type to bar.
❖ Put Measure name to Marks & change to size.
❖ Title: “India vs Costa Rica GDP”.
❖ India vs Costa Rica GDP(Output):
(V)
➢
❖ Drag Country Name, Measure Name to Columns.
❖ Drag Measure Value to Rows.
❖ Add filter Country Name to select specified Countries.
❖ Add filter Measures Name to select 2004,2005 & 2006.
❖ Change graph type to circle views.
❖ Put Measure Name to Marks twice & change to size & label.
❖ Title: “Scatter Plot”.
❖ Scatter Plot (Output):
(vi)
➢
❖ From the “Sheets” pane, drag and drop the visualizations onto the
dashboard canvas.
❖ Arrange visualizations for a clean layout, resizing as necessary.
❖ Title: “GDP DATA SET ANALYSIS”.
❖ GDP DATA SET ANALYSIS (OUTPUT):
(i)
➢
❖ Create calculated field EmpCount with Calculation: COUNT([EmpID]) .
❖ Similarly, calculated field Attrition Count SUM (IF [Attrition] = = 'Yes'
THEN|ELSE O END)
❖ ARATE: ROUND ([Attr Count]/ Emp Count], 2)
❖ ACTIVEMP:SUM (IF (Job Satisfaction]>=3 THEN | ELSE O END)
❖ AVAGE: AVG ([Age])
❖ Finally, KPIS:
❖ Go to Label in Mark & give title as , Total Employees, Attrition Count,
Attrition Rate, Active Employees, Average Age
❖ Output:
(ii)
➢
❖ Drag Gender to Columns
❖ ARATE twice to Rows shelf
❖ Four Second ARATE, disable Show Header & Select Dual Axis.
❖ In Mark rection for first ARATE, Change type to Bar.
❖ In Mark Section for Second ARATE change type to circle.
❖ Adjust Size & Color to get look of Lollipop chart.
❖ Output:
(iii)
➢
❖ Drag Department to colors.
❖ Change Automatic to Pie.
❖ Select Entire view.
❖ Drag Attrition Count to Angle.
❖ Label' Attrition Count & change to percent (Table calculation with
percentage of total).
❖ Get Total using another table calculation With Running sum.
❖ Output:
(iv)
➢
❖ Right click Age group. Select create group.
❖ Drag created group to columns.
❖ Drag Emp Counts to Rows.
❖ Output:
(v)
➢
❖ Drag job satisfaction to columns.
❖ Drag job Role to Rows.
❖ Select Mark Type as Square.
❖ Pot Emp Count to Mark section as both labels & colors.
❖ Output:
(vi)
➢
❖ Drag Attr Count to Columns.
❖ Drag Educational Field to Row.
❖ Output:
(vii)
➢
❖ Drag Gender to columns.
❖ Also Drag Age Group to columns.
❖ Drag A RATE to Rows twice.
❖ Select Dual Axis for Second ARATE.
❖ For Firet ARATE use Pie & Second Circle.
❖ Change color & Size of second ARATE to create donuts.
❖ Use ARATE ae label for second ARATE to display.
❖ Output:
(i)
➢
❖ Create a calculated field One with Calculation: 1
❖ Drag Type to Columns.
❖ Drag ONE twice to Rows.
❖ Seled Dual axis for Second one.
❖ For first ONE use Pie & Second Circle.
❖ Change color & Size of Second ONE to Create donuts.
❖ Create a Calculated Field CNTMS with Calculation: COUNT ((Show Id])
❖ Drag Type to Marks field of first ONE & make it color.
❖ Drag CNTMS to Marks field of first ONE 2 times & charge them to label &
Size.
❖ Output:
(ii)
➢
❖ Right click Rebars year column & convert to Date.
❖ Drag rebars year to columns.
❖ Create a Calculated field CATIMS with Calculation: COUNT ([Show Id]).
❖ Drag CNTMS type also to rows.
❖ Change Marks type to Area.
❖ Output:
(iii)
➢
❖ Drag CNIMS to Columns.
❖ Drag Listed in to Rows.
❖ Also Drag Listed in to Filters.
❖ In filter use Top 10 filtering.
❖ Sort the CNTMS axis in descending order.
❖ Output:
(iv)
➢
❖ Drag Country to columns.
❖ Select Symbol maps from show Me.
❖ Drag CNTMS to Manke section. change to Label.
❖ Drag Country to Mark section. change to color.
❖ Output:
(v)
➢
❖ Drag Title to columns.
❖ Drag description to row.
❖ Drag title to Filter to select.
❖ 2-3 movies. use Entire view.
❖ Output: