0% found this document useful (0 votes)
71 views

DV Lab Manual

Uploaded by

Kanna Ajay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

DV Lab Manual

Uploaded by

Kanna Ajay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 68

KIT-KALAIGNARKARUNANIDHI INSTITUTE OF TECHNOLOGY

(AN AUTONOMOUS INSTITUTION)


(Accredited by NAAC&NBA with ‘A’ Grade)
Approved by AICTE & Affiliated to Anna University, Chennai)
Kannampalayam Post, Coimbatore-641402

Department of Artificial Intelligence and Data Science

B19ADP702 – DATA VISULIZATION LABORATORY

Name : ……………………………………………………
Batch : ……………… Reg.No : ……………….…..
Branch : ……………. Year : ………………………
KIT-KALAIGNARKARUNANIDHI INSTITUTE OF TECHNOLOGY
(ANAUTONOMOUS INSTITUTION)
(Accredited by NAAC & NBA with ‘A’ Grade)
Approved by AICTE & Affiliated to Anna University, Chennai)
Kannampalayam Post, Coimbatore-641402

Department of Artificial Intelligence and Data Science

BONAFIDE CERTIFICATE

Name : ….…………………………………………………………………………………………

Roll No. : ……………………………………… Reg. No.: …………………………………

Branch : B.Tech – Artificial Intelligence and Data Science

Certified that this is Bonafide record work done by Mr./Ms. ……………………………………

of IV – Year Artificial Intelligence and Data Science during the academic year 2024-2025.

FACULTY IN-CHARGE HOD

Submitted for the University Practical Examination held on ……………………….

INTERNAL EXAMINER EXTERNAL EXAMINER

2
Instructions for Laboratory Classes

1. Enter the lab with record work book & necessary things.

2. Enter the lab without bags and footwear.

3. Footwear should be kept in the outside shoe rack neatly.

4. Maintain silence during the Lab hours.

5. Read and follow the work instructions inside the laboratory.

6. Handle the computer systems with care.

7. Shutdown the Computer properly and arrange chairs in order before leaving the lab.

8. The program should be written on the left side pages of the record workbook.

9. The record work book should be completed in all aspects and submitted in the next

class itself.

10. Experiment number with date should be written at the top left-hand corner of the

record work book page.

11. Strictly follow the uniform dress code for Laboratory classes.

12. Maintain punctuality for lab classes.

13. Avoid eatables inside and maintain the cleanliness of the lab.

3
VISION
To produce competent professionals to the dynamic needs of the emerging field of Artificial
Intelligence and Data Science

MISSION

• To empower students with the knowledge and skills necessary to create intelligent systems and
innovative solutions that address societal issues.
• Providing technical knowledge on par with Industry to the students through qualified faculty members
having knowledge in recent trends and technologies.
• To produce competent engineers who are both professional and life-skills oriented.
• Providing opportunities for students to improve their research skills in order to address a variety of
societal concerns through innovative projects.

PROGRAMMEOUTCOMES (POs)
Students graduating from Artificial Intelligence and Data Science should be able to:

PO1 Engineering knowledge : Apply the knowledge of mathematics, science, engineering


fundamentals, and an engineering specialization to the solution of complex Artificial Intelligence and
Data Science problems.

PO2 Problem analysis: Identify, formulate, research literature, and analyze complex engineering
problems reaching substantiated conclusions using first principles of mathematics, natural sciences,
and Artificial Intelligence and Data Sciences.

PO3 Design/development to solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate consideration
for the public health and safety, and the cultural, societal, and environmental considerations in the
field of Artificial Intelligence and Data Science.

PO4 Conduct investigations of complex problems: Using research-based knowledge and Artificial
Intelligence & Data Science oriented research methodologies including design of experiments,
analysis and interpretation of data, and synthesis of the information to provide valid conclusions.

PO5 Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modeling to complex Artificial Intelligence and
Data Science Engineering activities with an understanding of the limitations.

4
PO6 The engineer and society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice.
PO7 Environment and sustainability: Understand the impact of the professional Artificial
Intelligence and Data Science Engineering solutions in societal and environmental contexts, and
demonstrate the knowledge, and need for the sustainable development.

PO8 Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms
of the engineering practice.

PO9 Individual and team work: Function effectively as an individual, and as a member or leader in
diverse teams and in multidisciplinary settings.

PO10 Communication: Communicate effectively on complex engineering activities with the


engineering community and with society at large, such as, being able to comprehend and write
effective reports and design documentation, make effective presentations, and give and receive clear
instructions.

PO11 Projectmanagementandfinance:Demonstrate knowledge and understanding of the Artificial


Intelligence and Data Science engineering and management principles and apply these to one’s own
work, as a member and leader in a team and, to manage projects in multidisciplinary environments.

PO12 Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.

PROGRAM EDUCATIONAL OBJECTIVES (PEOs)

PEO1: Graduates will have a strong foundation in mathematics, programming, machine learning,
artificial intelligence, and data science, as well as advanced skills in these areas to solve technical
problems.
PEO2: Graduates will have the capability to apply their knowledge and skills to identify and solve the
issues in real world Artificial Intelligence and Data Science related applications.

PEO3: Graduates will be able to engage in life-long learning by completing advanced software
Technologies, certificates, and/or other professional development.

5
PROGRAM SPECIFIC OUTCOME(PSOs)

Graduates of Artificial Intelligence and Data Science Programmed should be able to:
PSO1: Apply fundamental concepts of Artificial Intelligence and Data Science according to the
environmental needs.

PSO2: Ability to develop skills to address and solve Artificial Intelligence based social and
environmental problem using Data Science to deal multidisciplinary projects using modern tools.

COURSE OUTCOMES:
Students will be able to:

Course Outcome Knowledge Level

CO1: Make use Python, R and Tableau for data visualization K3

CO2: Apply data visuals to convey trends in data over time using tableau. K3
CO3: Construct effective data visuals to solve complex problems.
K3

CO4: Choose and work with different plotting libraries. K3

CO5: Build creative and effective visualizations Dashboards. K3

PO6 PO7 PO8 PO11


PSO2
CO/PO &PSO PO1 PO2 PO3 PO4 PO5 PO9 PO10 PO12 PSO1
(K3) (K2) (K3) (K3) (K3,A
(K3,A3)
(K3) (K4) (K5) (K5) (K6) (A3) (A3) (A3) 3)
(A3) (A3) (A3) (A3)
CO1 K3 3 3 2 1 3 - - - - - - 2 3 3

CO2 K3 3 3 2 1 3 - - - - - - 2 3 3

CO3 K3 3 3 2 1 3 - - - - - - 2 3 3
CO4 K3 3 3 2 1 3 - - - - - - 2 3 3

CO5 K3 3 3 2 1 3 - - - - - - 2 3 3

Weighted 3 3 2 1 3 - - - - - - 2
3 3
Average

6
SYLLABUS

LIST OF EXPERIMENTS

1. Introduction to various Data Visualization tools.

2. Basic Visualization in Python.

3. Basic Visualization in R.

4. Introduction to Tableau and Installation.

5. Connecting to Data and preparing data for visualization in


Tableau.

6. Data Aggregation and Statistical functions in Tableau.


7. Data Visualizations in Tableau.
8. Basic Dashboards in Tableau.

Total hours: 45

7
No.
Sl.
Model Exam Marks (25):

Date
Name of the Experiment

Practical Record Book Index Page


Total (100):

Page
Number
Aim
(10 Marks)

Program
Signature of the Faculty Member

/procedure
(40 Marks)
Output &
Inference
(15 Marks)

Viva-Voce
( 10Marks )

Total
(75Marks)
Signature of
the Faculty
Member
No.
Sl.
Model Exam Marks (25):

Date
Name of the Experiment

Practical Record Book Index Page


Total (100):

Page
Number
Aim
(20 Marks)

Program
/procedure
Signature of the Faculty Member

(30 Marks)
Output &
Inference
(15Marks)

Viva-Voce
( 10Marks )

Total
(75Marks)
Signature of
the Faculty
Member
S.NO EXPERIMENT PREREQUISITES LEARNING OBJECTIVES

1.Understand the importance of data


visualization for business intelligence and decision
making.

FOR ALL PROGRAMMING 2. Know approaches to understand visual


EXPERIMENTS IN PYTHON perception.

3.Learn about categories of visualization and


1 application areas.

4.Familiarize with the data visualization tools

5.Gain knowledge of effective data visuals to solve


workplace problems.

10
Ex. No: 1 Introduction to various Data Visualization tools

Date:

AIM

Study experiment on knowing the various visualization tools.

DESCRIPTION

Data visualization is the practice of translating information into a visual context, such

as a map or graph, to make data easier for the human brain to understand and pull

insights from. It is the representation of information and data through use of common

graphics, such as charts, plots, infographics, and animations.

Data visualization is a powerful way for people, especially data professionals,

to display data so that it can be interpreted easily.

Data Visualization enables decision-makers of any enterprise or industry to

look into analytical reports and understand concepts that might otherwise

be difficult to grasp.

The following are some common types of data visualizations:

Table: A table is data displayed in rows and columns, which can be easily created

in a Word document or Excel spreadsheet.

Chart or graph: Information is presented in tabular form with data displayed

along an x and y axis, usually with bars, points, or lines, to represent data

in comparison.

18
Geospatial visualization: Data is depicted in map form with shapes and

colors that illustrate the relationship between specific locations, such as a

choropleth or heat map.

Dashboard: Data and visualizations are displayed, usually for business

purposes, to help analysts understand and present data.

12
19
Viva Questions:

1. Give Two Top companies where Tableau is Used for Data Visualization.

2. What are the two uses of Google Charts?

3. Zoho analytics Specific use.

4. List the best 10 tools of Data Visualization Software of 2024 .

5. Is Excel a data visualization tool?

6. What are Matplotlib, Seaborn ?

7. Is Oracle a data visualization tool?

20
8.Why does NASA use Matlab?

9.How is data visualization used in healthcare?

10. How is data visualization used in healthcare?

RESULT
Thus the study experiment on various Data visualization tools is successfully completed.
21
Ex. No: 2 Basic Visualization in Python

Date:

Aim :
To implement different visualization effects with Python on data using
matplotlib seaborn.

Description :

Matplotlib is a comprehensive library for creating static, animated, and interactive


visualizations in Python. It presents data in 2D graphics. Seaborn is a visualization
library that is built on top of Matplotlib. Matplotlib can be installed using the following
command:
pip install matplotlib
Once the module installed, it must be imported into the program using the following
command import matplotlib as mpl, where mpl is the alias name given to matplotlib
library.matplotlib. Pyplot is a state-based interface to matplotlib.
matplotlib.pyplot is a collection of functions that make matplotlib
work like MATLAB.
Each pyplot function makes some change to creates a figure,
creates a plotting area in a figure, plots some lines in a plotting area,
decorates the plot with labels etc.
pyplot can be imported into the program using following command
import matplotlib.pyplot as plt

Following are some of the basic data visualization plots

22
1. Line plots
2. Area plots
3. Histograms
4. Bar charts
5. Pie charts
6. Box plots
7. Scatter plots

I ) Line Plots:
A line plot is used to represent quantitative values over a continuous interval or
time period. It is generally used to depict trends on how the data has
changed over time.

Program:
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5, 6]
y = [1, 5, 3, 5, 7, 8]
plt.plot(x, y)
plt.show()

23
Output :

II) Area Plots:


An Area Plot is also called as Area Chart which is used to display magnitude and
proportion of multiple variables.

Program:
import matplotlib.pyplot as plt
days = [1,2,3,4,5]
sleeping =[7,8,6,11,7]
eating = [2,3,4,3,2]
working =[7,8,7,2,2]
playing = [8,5,7,8,13]
plt.plot([],[],color='m', label='Sleeping', linewidth=5)
plt.plot([],[],color='c', label='Eating', linewidth=5)
plt.plot([],[],color='r', label='Working', linewidth=5)
plt.plot([],[],color='k', label='Playing', linewidth=5)
plt.stackplot(days, sleeping,eating,working,playing, colors=['m','c','r','k'])

24
plt.xlabel('x')
plt.ylabel('y')
plt.title('Stack Plot')
plt.legend()
plt.show()

Output :

iii) Histograms:
Histograms represents the frequency distribution of a dataset. It is a graph
showing the number of observations within each given interval.
Program:
import matplotlib.pyplot as plt
population_age=[22,55,62,45,21,22,34,42,42,4,2,102,95,85,55,110,120,70,65,55,111,115,80]
bins = [0,10,20,30,40,50,60,70,80,90,100]
plt.hist(population_age, bins, histtype='bar', rwidth=0.8)
25
plt.xlabel('age groups')
plt.ylabel('Number of people')
plt.title('Histogram')
plt.show()

Output:

iv) Bar Charts:


A Bar chart or bar graph is a chart or graph that presents categorical data with

rectangular bars with heights or lengths proportional to the values that they represent.

A bar plot is a way of representing data where the length of the bars represents the

magnitude/size of the feature/variable.

26
Program:

import matplotlib.pyplot as plt


plt.bar([0.25,1.25,2.25,3.25,4.25],[50,40,70,80,20],label="BMW",width=.5)
plt.bar([.75,1.75,2.75,3.75,4.75],[80,20,20,50,60],label="Audi", color='r',width=.5)
plt.legend()
plt.xlabel('Days')
plt.ylabel('Distance (kms)')
plt.title('Information')
plt.show()

Output:

V) Pie Charts:
A Pie chart is a circular statistical chart, which is divided into sectors to illustrate

numerical proportion.

Program :

import matplotlib.pyplot as plt


27
days = [1,2,3,4,5]
sleeping =[7,8,6,11,7]
eating = [2,3,4,3,2]
working =[7,8,7,2,2]
playing = [8,5,7,8,13]
slices = [7,2,2,13]
activities = ['sleeping','eating','working','playing'] cols = ['c','m','r','b']

plt.pie(slices,labels=activities, colors=cols,start angle=90,shadow=True, explode=(0,0.1,0,0),

autopct='%1.1f%%')

plt.title('Pie Plot')

plt.show()

Output:

VI) Box Plots:

A Box plot (or box-and-whisker plot) shows the distribution of quantitative data in a

way that facilitates comparisons between variables or across levels of a categorical variable.

Box plot shows the quartiles of the dataset while the whiskers extend encompass

28
the rest of the distribution but leave out the points that are the outliers.

Program:
import matplotlib.pyplot as plt
x=[1,2,3,4,5,6,7]
y=[1,2,4,5,3,6,9]
z=[x,y] plt.boxplot(z,labels=[‘A’,’B’],showmeans=True)
plt.show()

Output:

VII) Scatter Plots:

A Scatter chart, also called a scatter plot, is a chart that shows the relationship between
two variables.

Program:
import matplotlib.pyplot as plt
x=[1,1.5,2,2.5,3,3.5,3.6]
y=[7.5,8,8.5,9,9.5,10,10.5]
x1=[8,8.5,9,9.5,10,10.5,11]
y1=[3,3.5,3.7,4,4.5,5,5.2]
plt.scatter(x,y, label='high income low saving',color='r')
plt.scatter(x1,y1,label='low income high savings',color='b')
plt.xlabel('saving*100')
plt.ylabel('income*1000')
plt.title('Scatter Plot')
plt.legend()
plt.show()
29
Output

30
Viva Questions :

1. List the few advantages of Matplotlib .

2. Where in Data visualization Charts can be used ?

3. Histograms are used for what in visualization.

4.what is the use of box plot visualization ?

5.In which of these situations are scatter plots useful?

31
Result:
Thus, the implementation of various visualization using python Matplotlib was executed
Successfully
32
Ex. No: 3 Basic Visualization in R

Date:

AIM

To implement the various fundamental data visualizations using R language .

DESCRIPTION:
ggplot2 is an open-source data visualization package for the statistical programming
language R. ggplot is enriched with customized features to make visualization better.
ggplot2 is a system for declaratively creating graphics, based on the Grammar
Of Graphics .
The ggplot2 package can be easily installed using the following R function:
install. packages(ggplot2)
then the following command must be used in program to use
ggplot package: library(ggplot2)
Consider the following dataset named surveys.
All the visualizations mentioned above are applied on this dataset.
Surveys<-data.frame(
record_id=c(1,2,3,4,5),
month=c(7,7,7,7,7),
day=c(16,16,16,17,17),
year=c(1977,1977,1977,1977,1977),
plot_id=c(2,3,2,7,3),
species_id=c(NL,NL,DM,DM,DM),
sex=c(M,M,F,M,M),
hindfoot_length=c(32,33,37, 36,35))
weight = c(20, 22, 25, 23, 24) # Added weight variable for demonstration

33
)

The visualizations are carried out for the following:

1. Scatter plots
2. Line plots
3. Box plots
4. Histograms
5. Bar charts

34
1.Scatter plot
Program:
library(ggplot2)

Surveys <- data.frame(


record_id = c(1, 2, 3, 4, 5),
month = c(7, 7, 7, 7, 7),
day = c(16, 16, 16, 17, 17),
year = c(1977, 1977, 1977, 1977, 1977),
plot_id = c(2, 3, 2, 7, 3),
species_id = c("NL", "NL", "DM", "DM", "DM"),
sex = c("M", "M", "F", "M", "M"),
hindfoot_length = c(32, 33, 37, 36, 35),
weight = c(20, 22, 25, 23, 24) # Added weight variable for demonstration
)

# Scatter plot
ggplot(data = Surveys, mapping = aes(x = hindfoot_length, y = weight)) +
geom_point(alpha = 0.1, color = "blue")

OutPut:

35
2) Histogram

Program

library(ggplot2)
Surveys <- data.frame(
record_id = c(1, 2, 3, 4, 5),
month = c(7, 7, 7, 7, 7),
day = c(16, 16, 16, 17, 17),
year = c(1977, 1977, 1977, 1977, 1977),
plot_id = c(2, 3, 2, 7, 3),
species_id = c("NL", "NL", "DM", "DM", "DM"),
sex = c("M", "M", "F", "M", "M"),
hindfoot_length = c(32, 33, 37, 36, 35),
weight = c(20, 22, 25, 23, 24) # Added weight variable for demonstration
)

# Create a histogram of the weight variable


ggplot(data = Surveys, aes(x = weight)) +
geom_histogram(binwidth = 1, fill = "blue", color = "black") +
labs(x = "Weight", y = "Frequency", title = "Histogram of Weight")

Output:

36
3) Bar Chart

Program

library(ggplot2)
library(dplyr)

# Create the data frame


Surveys <- data.frame(
record_id = c(1, 2, 3, 4, 5),
month = c(7, 7, 7, 7, 7),
day = c(16, 16, 16, 17, 17),
year = c(1977, 1977, 1977, 1977, 1977),
plot_id = c(2, 3, 2, 7, 3),
species_id = c("NL", "NL", "DM", "DM", "DM"),
sex = c("M", "M", "F", "M", "M"),
hindfoot length = c(32, 33, 37, 36, 35),
weight = c(20, 22, 25, 23, 24) # Added weight variable for demonstration
)

# Summarize the total weight for each species


Surveys_summary <- Surveys %>%
group_by(species_id) %>%
summarise(total_weight = sum(weight))

# Create the bar chart using ggplot2


ggplot(Surveys_summary, aes(x = species_id, y = total_weight)) +
geom_col(fill = "Red") +

37
labs(title = "Total Weight by Species", x = "Species ID", y = "Total Weight")
Output:

4.Box Plot:
Program
library(ggplot2)
# Load required package
library(ggplot2)

# Create the data frame


Surveys <- data.frame(
record_id = c(1, 2, 3, 4, 5),
month = c(7, 7, 7, 7, 7),
day = c(16, 16, 16, 17, 17),

38
year = c(1977, 1977, 1977, 1977, 1977),
plot_id = c(2, 3, 2, 7, 3),
species_id = c("NL", "NL", "DM", "DM", "DM"),
sex = c("M", "M", "F", "M", "M"),
hindfoot_length = c(32, 33, 37, 36, 35),
weight = c(20, 22, 25, 23, 24) # Added weight variable for demonstration
)

# Create the box plot using ggplot2


ggplot(data = Surveys, mapping = aes(x = species_id, y = weight)) +
geom_boxplot() +
labs(title = "Box Plot of Weight by Species", x = "Species ID", y = "Weight")

Output:

39
5)Line Plot

Program

# Load required packages


library(ggplot2)
library(dplyr)

# Create example Surveys dataframe


Surveys <- data.frame(
record_id = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
month = c(7, 7, 7, 7, 7, 8, 8, 8, 8, 8),
day = c(16, 16, 16, 17, 17, 16, 16, 16, 17, 17),
year = c(1977, 1977, 1978, 1978, 1978, 1979, 1979, 1979, 1980, 1980),
plot_id = c(2, 3, 2, 7, 3, 2, 3, 2, 7, 3),
species_id = c("NL", "NL", "DM", "DM", "DM", "NL", "NL", "DM", "DM", "DM"),
sex = c("M", "M", "F", "M", "M", "F", "M", "M", "F", "M"),
hindfoot_length = c(32, 33, 37, 36, 35, 34, 32, 38, 37, 36),
weight = c(20, 22, 25, 23, 24, 21, 23, 26, 24, 25)
)
# Summarize counts per year and species
yearly_counts <- Surveys %>%
group_by(year, species_id) %>%
summarise(n = n())

# Print the summarized dataframe


print(yearly_counts)
# Create the line plot using ggplot2
ggplot(data = yearly_counts, aes(x = year, y = n, group = species_id, colour = species_id)) +
geom_line() +
labs(title = "Yearly Counts by Species", x = "Year", y = "Count", colour = "Species ID")

40
Output:

41
Viva Questions :

1. What is the Use of R ?

2. What is the difference between plot and ggplot2 in R?

3. What is a Geom in ggplot?

4. List the most popular companies use R for visualization .

5. What are the advantages of R language ?

42
Result:
Thus, the implementation of various visualization using ggplot2 in R language was
implemented Successfully.

43
Ex. No: 4 Introduction to Tableau and Installation

Date:

AIM

To implement the Tableau installation tool for performing the Data visualization.

DESCRIPTION:

Tableau is a data visualization tool that provides pictorial and graphical representations

of data. It is used for data analytics and business intelligence. Tableau provides limitless

data exploration without interrupting flow of analysis. With an intuitive drag and

drop interface, user can uncover hidden insights in data and make smarter decisions faster.

Tableau can be downloaded from the following website:

https://www.tableau.com/products/public/download

after downloading, the following is the screen appears.

44
Click the licence agreement checkbox and then click on install button.
After installation,click on Tableau Public icon to run Tableau.
Following is the Tableau Public home screen.

45
Viva Questions

1. What is three types Tableau ?

2. What are the 7 data types in Tableau?

3. Is Tableau a coding language?

4. Is Tableau a tool or software?

5.List few Best Features of Tableau .

Result :
Thus the Tableau for Public was installed successfully .

46
5 Connecting to Data and preparing data for visualization in Tableau

Date:

Aim
To connect the data from the external source and prepare it for visualization

DESCRIPTION:

Tableau supports connecting to a wide variety of data, stored in a variety


of places. For example, data might be stored on computer in a spread
sheet or a text file, or in a big data, relational, or cube (multidimensional)
database on a server in enterprise or the data can be from a public domain
available on the web.
Data can be imported in Tableau Public from Connect panel on left side.
For example, an Excel sample data set was loaded into Tableau as
follows:

After clicking on open, screen is as follows:


47
The data store page appears as above. The left pan shows that above dataset
consists of 3 worksheets. If we drag orders table, screen appears as follows:
Tableau automatically identifies the data type of each column.

Now drag Returns table onto the Canvas to the right of Orders table. This
shows the relation between the two tables Orders and Returns.

48
If we click on the link between Orders and Returns table names at the top
gives the summary of the relationship between the tables. Now rename the
data store and click on Sheet1 at the

bottom left to proceed. This step creates a data extract which improves
query performance.

49
VIVA VOICE

1. What is the use of connect in tableau

2. How to load the data into tableau sheet

3. What are dimensions in tableau with example?

4. What is a measurement in tableau?

5. What is the use of SHOW ME in tableau?

50
Result:
I have learnt thus the implementation for loading the prepared data was executed
successfully

51
Ex. No: 6
Data aggregation and statistical functions
Date:

AIM
To implement the data aggregation and statistical functions

DESCRIPTION:

We can apply various aggregation and statistical functions on data such as count,
minimum, maximum, standard deviation, variance etc. This is shown below.
This can be done by right clicking on the required field of dataset, click on Default
properties and click on aggregation.

Or the above operation can be done by creating a calculated field as shown below. To create
a calculated field, click on the down arrow button beside search tab above Tables panel, drag
a field to that calculated field window.

52
Then click on apply and results are shown below:

In the same way we can apply any aggregate or statistical function on data with the help

of calculated fields.

53
Output:

54
VIVA VOICE
1. What is aggregation in data visualization?

2. What is the default aggregation measure in tableau?

3. Can tableau do standard devatation?

4. How to show percentile in tableau?

5. How to calculate formula in tableau?

55
Result:
Thus the implementation data aggregation and statistical functions are profound using tableau
Is completed and executed successfully

56
Ex. No: 7
Data Visualization
Date:

AIM
To implement various types of Visualization using tableau

Description:

We can perform various visualization operations on data in Tableau. Some of them are bar cart,
histogram, bubble chart, gantt chart, scatter plot, heat map etc.
Bar chart:
Bar charts can be created in 3 variations in Tableau: Horizontal bars, stacked bars, side-by-side
bars.
Horizontal bars can be created by selecting that type of chart from Show Me menu on right
hand side of Canvas. The type of chart in box on right hand side represents horizontal bar graph.

57
In similar to above, stacked bar graph can be created and the result is shown
below

Side-by-side bar chart can be created in following way.

58
Line graph: Line graph can be continuous or discrete.
Continuous line graph is shown below:

Discrete line graph is shown below:

59
Pie chart:

Bubble chart:

60
Heat map:

61
VIVA VOICE

1. Is tableau a tool or a software?

2.List few advantages of tableau.

3.What is tableau called now?

4.Give some tableau dashboard examples

5.how many visualizations are there in tableau

62
RESULT
Thus the implementation of visualization using different types in tableau is
completed and executed successfully

63
Ex. No: 8
Dashboards
Date:

AIM
To implements Dashboards using tableau

Description:

A dashboard is a way of displaying various types of visual data in one


place. Usually, a dashboard is intended to convey different, but related
information in an easy-to-digest form. And oftentimes, this includes
things like key performance indicators (KPI)s or other important business
metrics that stakeholders need to see and understand at a glance.

Dashboards are useful across different industries and verticals because


they’re highly customizable. They can include data of all sorts with
varying date ranges to help you understand: what happened, why it
happened, what may happen, and what action should be taken.

For example, category of sales across months in a year, region is the field
added. The first view is shown below. This can be renamed at the bottom
of the screen.

Now go to 2nd sheet for creating the642nd view. The second view is shown
below. A bubble chart was drawn between profit and subcategory. Then
rename the sheet.

Next 3rd view is created as follows for profit for each subcategory in the category
with averages.

After creating individual views, now a65Dashboard can be created by


clicking on create dashboard at the toolbar.
after clicking on new dashboard option, the screen is shown below.

now the sheets or views which are created earlier can be drag and dropped on this dashboard.
The above three created views are placed in the dashboard as follows. One can follow their own
way of importing sheets on the dashboard. After creating dashboard, title can be given to the
dashboard from Dashboard tab. Dahsboard can be customized in terms of its appearance by the
user if requied. Dashboard once created can be saved on users system and can be retrieved
whenever required.

66
67
OUTPUT

68
VIVA VOCE:
1. What are dashboards in tableau?

2. What is the use of dashboard in tableau?

3. List the difference between dashboard and report in tableau?

4. What are the components of tableau?

5. List any 5 benefits of dashboard?

69
RESULT

Thus, the implementation of creation of dashboard is completed and executed successfully

70
CONTENT BEYOND SYLLABUS

71
Ex. No: 9

Date:

AIM

Procedure:

72
PROGRAM:

73
74
OUTPUT:

Result:

75

You might also like