DV 1
DV 1
DV 1
DATA VISUALIZATION
INTRODUCTION:
Data visualization is the process of transforming raw data into visual formats like charts,
graphs, maps, or dashboards to make complex information more accessible, understandable,
and usable. It combines data science, design principles, and storytelling, making it easier for
users to quickly grasp insights, identify patterns, and make informed decisions.
Data Source: Raw data collected from various sources, such as databases, APIs.
Illustrations: Graphs, charts, maps and other visual resources to illustrate
information.
Design Principles: The layout, color, typography, and spacing have been done in such
a way that visuals can be easily presented and interpreted without much hassle.
Bar and Column Charts: could be used in showing comparisons across categories.
Line Charts: These are meant for showing trends over time.
Pie Charts: It shows the part of a whole as percentages.
Scatter Plots: It visualizes the relationship or correlation that occurs between
variables.
Heatmaps: These are applied to show, on a grid or map, the density or intensity of
data.
Geographic Maps: It plots data spatially with the purpose of communicating location
based trends.
Dashboards: Combinations of several visualizations for real-time insights.
Patterns and Trends: Helps users to find the insights that might be buried in raw
data.
Improves Decision-Making: Visual information enhances the simplicity of making
decisions with more knowledge and data-driven insights.
TABLEAU
DESCRIPTION OF TABLEAU:
Tableau is a powerful data visualization and business intelligence tool that empowers raw
data to easily understandable visuals such as interactive dashboards and reports. It is known
for its friendly drag-and-drop interface; users with no extensive programming knowledge can
make many different types of visualizations using this interface. It is capable of handling big
volumes of information and can be connected to big variant sources of data, including
spreadsheets, databases, and cloud services.
ADVANTAGES OF TABLEAU:
DATA-SET
DESCRIPTION OF DATA-SET:
A dataset is an assemblage of data that can take any of many forms, such as a set of records
or even in structured format, which is stored and organized for analysis, processing, or
visualization. Datasets are widely used in data analysis, statistics, machine learning, and
other scientific disciplines.
TYPES OF DATA-SET:
The data sets can be of different kinds depending upon the nature, structure, and purpose,
and have been divided into many types. Some of them are mentioned below:
Structured Data Sets: These are organized into a tabular format with rows and
columns. This would include databases and spreadsheets.
Examples: CSV, SQL databases, Sales data, survey responses.
Unstructured Data Sets: These are pieces of data without any kind of predefinition
in the structure of the data. The text would be the most dominant constituent.
Examples: social media posts, e-mails, audio, video, images.
Semi-Structured Data Sets: Loosely typed data: Not-strictly-structured types,
having tags or markers delimiting the elements.
Examples: JSON files, XML files, and HTML documents.
CHARTS
BAR CHART:
Fig 1.1
Data Import:
Load the dataset into tableau by connecting to the data source (e.g., an excel
file or database).
Drag and Drop Dimensions and Measures:
In the "Dimensions" section, drag product name onto the columns shelf. This
sets the x-axis to display different products.
In the "Measures" section, drag profit onto the rows shelf, setting the y-axis to
show profit values.
Bar Chart Selection:
Tableau may automatically choose a bar chart based on the data layout. If not,
click on the show me panel and select bar-chart.
Color Encoding:
Drag product name again onto the color shelf in the marks card to assign each
product a distinct color, enhancing visual distinction.
Formatting:
Add labels to the bars if needed by dragging profit onto the label shelf.
Adjust the title (e.g., "BAR CHART") and axis labels to provide clear
information.
You can also format the y-axis to show a consistent profit scale for easier
comparison.
Fig 1.2
Data Import:
Connect to your data source in Tableau (e.g., Excel or database).
Assign Product and Sales Fields:
Drag product name to the columns shelf to represent each product on the x-
axis.
Drag sales to the rows shelf to represent the total sales amount on the y-axis.
Create Stack by Region:
Drag Region to the color shelf in the marks card to differentiate each segment
by region.
This will divide each bar into segments, with each color representing a
specific region.
Display Sales Labels:
Drag Sales to the label shelf within the marks card to display sales values on
each segment of the bar.
Customize Formatting:
Adjust the axis titles and chart title to make the visualization clearer, such as
setting the y-axis to "Sales" and the x-axis to "Product Name".
You can also customize colours by clicking on color in the marks card to
assign specific colours to each region for consistency.
PIE CHART:
Fig 1.3
Labels: Right-click on the pie chart and select "Label". Choose to show labels
for "Region" or "SUM(Sales)".
Percentages: Right-click on the pie chart and select "Label". Choose to show
percentages.
Colores: Right-click on the pie chart and select "Color". Choose a color
palette that suits your needs. o Size and Position: Adjust the size and position
of the pie chart as desired.
Add Total Sales:
Right-click on the "SUM(Sales)" measure and select "Create Calculated
Field". Name the calculated field "Total Sales". In the calculation editor, enter
SUM([Sales]). Drag the "Total Sales" calculated field to the "Labels" shelf.
Add Text Label:
Right-click on the pie chart and select "Annotations". Drag the "Total Sales"
calculated field to the "Text" shelf, Position the text label appropriately.
LINE GRAPH:
Fig 1.4
Labels: Right-click on the line chart and select "Label". Choose to show
labels for "Ship Date" or "SUM(Sales)".
Line Style: Right-click on the line chart and select "Line". Choose a line style
and color that suits your needs.
Size and Position: Adjust the size and position of the line chart as desired.
Add Data Points:
Right-click on the line chart and select "Show Data Points". This will display
data points for each month.
Add Labels to Data Points:
Right-click on the line chart and select "Label". Choose to show labels for the
data points.
Add Text Label:
Right-click on the line chart and select "Annotations". Drag the "SUM(Sales)"
measure to the "Text" shelf.
Position the text label appropriately.
MAP GRAPH:
Fig 1.5
Choose the appropriate map type based on your data. In this case, a
geographic map is suitable.
Format Map Chart:
Map Details: Right-click on the map and select "Map Details". Choose the
appropriate map layer and zoom level.
Color: Right-click on the map and select "Color". Choose a color palette to
represent the "SUM(Sales)" measure.
Labels: Right-click on the map and select "Label". Choose to show labels
for the regions.
Tooltips: Customize tooltips to display additional information when
hovering over a region.
Size and Position: Adjust the size and position of the map chart as desired.
Fig 1.6
Choose the appropriate map type based on your data. In this case, a
geographic map is suitable.
Format Map Chart:
Map Details: Right-click on the map and select "Map Details". Choose the
appropriate map layer and zoom level.
Color: Right-click on the map and select "Color". Choose a color palette to
represent the "SUM(Sales)" measure.
Labels: Right-click on the map and select "Label". Choose to show labels
for the regions.
Tooltips: Customize tooltips to display additional information when
hovering over a region.
Size and Position: Adjust the size and position of the map chart as desired.
Additional Consideration:
Data Type: Ensure that the "State" dimension is a string or categorical data
type, and "Sales" is a numeric data type.
Filter: If needed, you can add filters to the map chart to show specific states
or sales ranges.
Formatting: Use Tableau's formatting options to customize the appearance
of the map chart (e.g., font, color, size).
Fig 1.7
SALES BY CATEGORY:
Fig 1.8
Change Orientation:
Right-click on the chart and select "Format". In the "Marks" card, change the
"Mark Type" to "Bar".
Format Bar Chart:
Labels: Right-click on the chart and select "Label". Choose to show labels
for the "Sub-Category" dimension and the "Sales" measure.
Color: Right-click on the chart and select "Color". Choose a color palette
that suits your needs.
Size and Position: Adjust the size and position of the chart as desired.
Sort Bars:
Right-click on the "Sales" measure on the "Rows" shelf and select "Sort".
Choose to sort by "Descending" or "Ascending" based on your preference.
SALES BY SEGMENT:
Fig 1.9
DASH BOARD:
Fig 1.10
you've created the individual charts; you can combine them into a dashboard to provide a
comprehensive overview of your data. Here's how:
This layout offers a clear view of sales performance by category, segment, and region.
Fig 1.11
CALCULATED FIELD:
Fig 1.12
Sales Distribution: The "Sales" column shows the total sales for each sub-
category. We can observe that some sub-categories have significantly higher
sales compared to others.
Cost and Profit: While the "COST" column likely represents the cost of goods
sold, it's difficult to calculate the exact profit margin without more information.
However, we can infer that sub-categories with higher sales and lower costs
DASHBORD:
Fig 1.13
Method 1: Drag and Drop: Drag the webpage URL directly onto the
dashboard. Tableau will automatically recognize it and create a web object.
Method 2: Web Page Object Right: click on the dashboard and select
"Show Me" "Web Page Object". Enter the webpage URL in the dialog
box.
Customize the Webpage Object:
Resize: Adjust the size of the web object to fit your desired layout.
Position: Drag and drop the web object to the desired location on the dashboard.
Formatting: You can apply basic formatting to the web object, such as changing
the background color or border.
Context of the Image:
The image you provided shows the homepage of Malnad College of Engineering. You
could embed this webpage into a Tableau dashboard to provide additional information
about the college, such as admissions, courses, and faculty.
Fig 1.14
Drag the webpage URL onto the dashboard. Tableau will automatically
recognize it and create a web object.
Web Page Object:
Right-click on the dashboard and select "Show Me" "Web Page Object".
Enter the webpage URL in the dialog box.
Customize the Webpage Object:
Resize: Adjust the size of the web object to fit your desired layout.
Position: Drag and drop the web object to the desired location on the dashboard.
Formatting: You can apply basic formatting to the web object, such as changing
the background color or border.
Context of the Image:
The image you provided shows a map of the United States with California highlighted. You
could use this image on a Tableau dashboard to provide additional context or visual
information related to California.
STORY:
Fig 1.15
point.
Use the "Description" pane to add text, images, or other multimedia elements to
explain your findings.
Arrange Story Points:
Organize the story points in a logical sequence, starting with the introduction and
ending with the conclusion. You can add transitions between story points to create
a smooth flow.
Fig 1.16