Amogh Borgave Data Visuaization FA-10
Amogh Borgave Data Visuaization FA-10
Aim:
To understand the Tableau interface, become familiar with key Tableau terminologies, and explore the basic
functionalities of Tableau for data visualization.
Theory:
Tableau is a powerful data visualization tool used for converting raw data into interactive and shareable
dashboards. It enables users to analyze data visually, helping uncover insights through graphs, charts, and maps.
Tableau supports data connectivity with various sources including Excel, SQL, and cloud-based services. The
tool is widely used in business intelligence for its ease of use, drag-and-drop functionality, and real-time data
analysis capability.
Procedure:
Methodology:
• Workspace Exploration: Understand the layout including the toolbar, data pane, shelves, worksheet
area, and dashboard area.
• Basic Operations: Create visualizations using drag-and-drop features, apply filters, use marks card for
customization, and view suggestions in the Show Me panel.
Result:
Successfully explored the Tableau workspace, understood core terminologies, and created basic visualizations
like bar charts and pie charts using a sample dataset.
Conclusion:
The lab provided a solid foundation in Tableau’s interface and basic functionalities. With hands-on practice,
students gained familiarity with creating visualizations and working with Tableau's intuitive tools.
Title:
Data Source Connection in Tableau: Connecting to Databases and Understanding Tableau Joins
Aim:
To learn how to connect Tableau to various data sources and understand how to apply different types of joins in
Tableau.
Theory:
Tableau allows seamless integration with multiple data sources such as Excel files, text files, relational databases
(e.g., MySQL, PostgreSQL), cloud services, and more. Once the data is connected, Tableau allows users to join
multiple tables to create a unified dataset.
Data Connection:
• Live Connection: Tableau directly queries the database. Updates reflect in real time.
• Extract: A snapshot of the data is taken and stored locally. Offers better performance.
Tableau Joins:
Similar to SQL joins, Tableau offers:
Joins are based on common fields (keys), and Tableau visually represents joins in the Data Source tab using
Venn-diagram-like icons.
Procedure:
1. Open Tableau and select Connect > To a File or To a Server depending on the data source.
2. Choose a sample database (e.g., Microsoft Excel, SQL Server, or Sample Superstore dataset).
3. Drag multiple tables or sheets into the canvas in the Data Source tab.
4. Select the type of join from the join drop-down menu (Inner, Left, Right, Outer).
5. Verify join conditions and preview the joined dataset.
6. Load the data and create a basic visualization using the joined data.
Methodology:
Result:
Successfully connected Tableau to a sample data source, joined two tables using different types of joins, and
visualized the merged data using a simple chart.
Conclusion:
The lab helped in understanding how Tableau connects to various data sources and the importance of choosing
the right type of join when combining datasets. This knowledge is critical in preparing accurate and meaningful
visualizations.
Title:
Creating a View in Tableau: Chart Formatting, Filters, Calculated Fields, and Parameters
Aim:
To learn how to format charts, apply filters, create calculated fields, and use parameters in Tableau to enhance
interactivity and data analysis.
Theory:
Creating effective views in Tableau involves more than just visualizing data. It includes formatting charts for
readability, filtering data for focused analysis, creating calculated fields for custom logic, and using parameters
for user-driven interactivity.
• Chart Formatting: Enhances the visual appeal and clarity of data representations. You can modify titles,
labels, colors, fonts, axes, gridlines, and legends.
• Filters: Used to restrict data shown in a view based on specific conditions (e.g., Region = ‘West’).
• Calculated Fields: Custom fields created using formulas (e.g., Profit Ratio = Profit / Sales).
• Parameters: Dynamic input controls that allow users to interact with the data, like changing a value that
affects a calculation or filter.
Procedure:
Methodology:
Result:
Created an interactive and well-formatted Tableau view using filters, calculated fields, and parameters to analyze
the data dynamically and effectively.
Conclusion:
This lab helped enhance Tableau visualization skills by integrating formatting, filtering, and dynamic calculation
techniques. These features enable the creation of meaningful and interactive dashboards tailored to user needs.
Title:
Dashboard Designing and Storytelling in Tableau
Aim:
To understand the components of a Tableau dashboard, learn how to place worksheets in containers, and
implement action filters to create interactive and compelling stories through data.
Theory:
A Dashboard in Tableau is a collection of views (worksheets), filters, images, text, and other elements arranged
on a single screen to create an interactive analytical interface.
Components of a Dashboard:
Storytelling in Tableau:
A Story is a sequence of sheets or dashboards that work together to convey a narrative with data. Each step in a
story can highlight a particular insight or conclusion.
Action Filters:
These enable users to interact with one visualization to filter data in another. Types of actions include:
Procedure:
1. Open Tableau and load the desired dataset (e.g., Sample Superstore).
2. Create multiple worksheets (e.g., Sales by Category, Profit by Region).
3. Navigate to Dashboard > New Dashboard.
4. Drag Horizontal or Vertical Containers onto the dashboard.
5. Place worksheets inside these containers for structured layout.
6. Add Text, Images, and Filters as needed.
7. To add action filters:
o Go to Dashboard > Actions > Add Action > Filter.
o Select source and target sheets, specify how the filter behaves (on select, hover, or menu).
8. Test the interaction by selecting elements in one view and observing changes in others.
9. To build a Story, go to Story > New Story and drag sheets or dashboards into story points.
Methodology:
Result:
Successfully designed an interactive Tableau dashboard using worksheets, containers, and action filters. Created
a story flow using multiple views to present insights clearly.
Conclusion:
This lab provided hands-on experience in designing dashboards and storytelling in Tableau. By utilizing
containers and action filters, users can create engaging and interactive dashboards that effectively communicate
data insights.
Title:
Introducing Power BI: Components, Workflow, and Power BI Desktop Interface
Aim:
To explore and understand the core components of Power BI, the end-to-end workflow from data import to
visualization, and to become familiar with the five main areas of the Power BI Desktop interface used for
designing professional business reports.
Theory:
Power BI is a business intelligence (BI) tool by Microsoft that allows users to connect to multiple data sources,
transform and model data, create visually appealing reports, and share insights across organizations securely. It
is part of the Microsoft Power Platform and is highly integrated with Microsoft Excel, Azure, and other Microsoft
services. Power BI provides self-service BI capabilities and supports data exploration, real-time dashboards, and
AI-powered analytics.
1. Power BI Desktop: A free Windows-based application used for data import, transformation, modeling,
visualization, and report development. It is the core tool for analysts and report creators.
2. Power BI Service (Power BI Online): A cloud-based SaaS platform used for publishing, sharing,
collaboration, and real-time dashboard updates. Accessible from any browser.
3. Power BI Mobile Apps: Available for Android, iOS, and Windows devices. Allow viewing and
interacting with reports on-the-go.
4. Power BI Data Gateway: Acts as a bridge between on-premises data (like SQL Server, Excel, etc.) and
cloud services. Essential for scheduled refreshes and live connections to local sources.
5. Power BI Report Server: On-premises version of Power BI Service. Used by organizations that prefer
to keep data and reports in-house.
6. Power BI Embedded: A PaaS (Platform-as-a-Service) feature that allows developers to embed Power
BI dashboards and reports into custom applications.
1. Connect to Data Sources: Power BI supports various data sources such as Excel, CSV, SQL Server,
Web, Azure, APIs, SharePoint, and more.
2. Transform and Clean Data (Power Query): Use Power Query Editor to clean, filter, combine,
pivot/unpivot, and enrich data. No coding is required—uses M language behind the scenes.
3. Data Modeling: Define relationships between tables (one-to-many, many-to-one). Create calculated
columns and measures using DAX (Data Analysis Expressions). Apply hierarchies, manage data types,
and create data models.
4. Visualize and Build Reports: Use charts, tables, cards, maps, slicers, etc., to represent data. Add
interactivity with filters and slicers. Customize formatting, titles, colors, tooltips, etc.
5. Publish and Share: Publish reports to Power BI Service. Share with users, create dashboards, set up
subscriptions and alerts. Manage access through roles and security.
1. Ribbon: Located at the top; contains buttons for data connection, transformation, visuals, modeling tools,
and publishing. Contains tools like “Get Data,” “Manage Relationships,” “New Measure,” etc.
2. Views Pane: Includes three views – Report View (build and design visuals on report pages), Data View
(view and explore the data in tabular format), Model View (view and manage relationships between
tables).
3. Fields Pane: Displays all data tables and fields available for use in visuals. Allows dragging fields into
charts, applying filters, or creating DAX formulas.
4. Visualizations Pane: Offers a wide range of chart types: bar, pie, line, scatter, gauge, map, etc. Includes
options to format and customize the selected visual.
5. Report Canvas: Central area where visuals are placed and designed. Supports multiple pages for multi-
page reports.
Procedure:
Methodology:
Start by exploring the interface. Follow a linear flow from data import → data transformation → modeling →
visualization → publishing. Practice switching between the three views and using panes effectively. Focus on
learning drag-and-drop functionalities, formatting options, and basic DAX formulas.
Example of a measure:
Result:
After completing the steps, a Power BI report with at least two visuals (e.g., bar chart for sales by region and pie
chart for sales by category) will be created. The user will be familiar with navigating the interface, working with
data, and building a simple but functional report.
Conclusion:
This lab introduced students to the Power BI platform, highlighting its key components and end-to-end workflow.
Understanding the Power BI Desktop interface is essential to begin data visualization and reporting tasks.
Students are now equipped with foundational knowledge to explore Power BI further and start building insightful
dashboards.
Title:
Querying Data from CSV – Using Query Editor to Connect, Clean, and Transform Excel Data
Aim:
To understand how to connect Excel or CSV data sources in Power BI, use the Query Editor for cleaning and
transforming data, and prepare the dataset for visualization and analysis.
Theory:
Power BI provides powerful tools to load, clean, and shape data before visualizing it. The Power Query Editor
plays a central role in this process. It allows users to perform a variety of data preparation tasks like filtering
rows, changing data types, renaming columns, combining tables, and more — all without writing code. Data
transformation is important because raw datasets often contain inconsistencies, missing values, or unnecessary
columns.
CSV (Comma Separated Values) and Excel files are common sources of tabular data. Power BI can connect to
both, offering options to preview, modify, and load the data into the report model. Using the Query Editor ensures
that only clean, structured, and relevant data is used for reporting.
Procedure:
Methodology:
Follow a structured approach:
While Power BI’s Power Query uses a backend language called M, most actions are performed through GUI.
However, the formula bar displays the corresponding M code.
Example M formula to rename a column:
Table.TransformColumnTypes(Source,{{"Sales", Int64.Type}})
Result:
A clean and structured dataset is successfully loaded into Power BI from a CSV/Excel file. The data has been
transformed, unnecessary columns removed, types corrected, and is now ready for visualization.
Conclusion:
By using Power Query Editor in Power BI, raw CSV or Excel files can be effectively cleaned and shaped for
analysis. This lab provides essential skills in connecting data sources and transforming data — a critical first step
in any data visualization or BI project.
Title:
Creating Reports and Visualization – Exploring Chart Types and Formatting Techniques in Power BI
Aim:
To understand how to create effective and interactive reports using various chart types in Power BI, apply
formatting options like titles and colors, and enhance the visual appeal and clarity of data representation.
Theory:
Reports and visualizations form the core of data analysis in Power BI. A well-designed report transforms raw
data into meaningful insights through graphical representations. Power BI supports a rich collection of built-in
visuals that cater to different analytical needs such as comparisons, trends, compositions, and distributions. Each
visual can be customized to fit the purpose of the analysis and target audience.
• Visualizations Pane: Contains a library of available chart types and customization tools.
• Fields Pane: Allows users to select and drag dataset fields into visual placeholders (Axis, Values,
Legends, etc.).
• Canvas Area: The main workspace where visuals are placed and arranged to form a report.
• Interactivity: Visuals in Power BI are connected – selecting data in one visual can filter or highlight data
in others.
Types of Visuals:
Formatting Options:
Procedure:
1. Open Power BI Desktop and load a dataset (e.g., Sales, Superstore, or Student Performance dataset).
2. Click on Get Data > Excel/CSV and import your dataset.
3. Click on Report View (canvas with visuals).
4. To create a visual:
o Click on a chart type (e.g., bar chart) from the Visualizations Pane.
o Drag a category field (e.g., Product Name) to the Axis section.
o Drag a numerical field (e.g., Sales) to the Values section.
5. Create additional visuals:
o Pie Chart for sales by region.
o Line Chart for sales trends over months.
o Card to display total sales or average profit.
6. Format each chart:
o Click on the chart → Go to the Format Pane (paint roller icon).
o Add a Title (e.g., “Monthly Sales Trend”).
o Customize Data Labels (font size, color, position).
o Modify Color schemes to differentiate categories.
o Enable Borders and set background color for visuals.
7. Use Grid alignment to arrange visuals neatly.
8. Add Slicers to enable filtering by year, category, or region.
9. Save your report as a .pbix file.
Methodology:
The methodology involves connecting data, creating visuals by dragging fields into chart areas, and formatting
those visuals to improve clarity and insight. Each visual should serve a purpose in the overall analysis and
contribute to answering a business or analytical question.
Most operations are GUI-based. However, DAX can be used to create calculated measures or columns that can
be visualized.
Result:
A comprehensive Power BI report is created with multiple visualizations such as bar chart, pie chart, and line
chart. Each visual is customized with titles, color formatting, and labels. Interactivity through slicers enables
dynamic filtering, allowing for in-depth data exploration.
Conclusion:
This lab demonstrates how Power BI transforms raw data into meaningful reports through effective visualization
techniques. By selecting appropriate chart types and applying consistent formatting, users can present data in a
visually appealing and informative manner. This enhances the overall storytelling aspect of data analysis and
improves decision-making.
Title:
Building and Formatting Dashboards in Power BI – Implementing Filters and Enhancing Visual Design
Aim:
To explore the creation of dashboards in Power BI by integrating multiple visuals, applying different types of
filters to enhance interactivity, and formatting the dashboard layout for clarity, consistency, and impact.
Theory:
A dashboard in Power BI is a visual representation of key metrics and performance indicators, typically laid out
on a single screen or page. It helps users to track, analyze, and gain insights from data quickly and efficiently.
Dashboards are ideal for monitoring business intelligence, spotting trends, and facilitating data-driven decision-
making.
Though the true dashboard feature exists in the Power BI Service, in Power BI Desktop, users typically simulate
dashboards by organizing visuals onto a report page. This simulated dashboard offers high interactivity through
filters, slicers, drill-throughs, and bookmarks.
• Bar/column charts
• Cards and KPI tiles
• Pie/donut charts
• Line charts
• Tables/matrices
• Maps
• Slicers
• Buttons and bookmarks (for navigation)
To increase the usability of a dashboard, filters play a crucial role. They allow users to view the data subset they
are interested in, without affecting the underlying data model.
1. Visual-Level Filters
o Apply only to a selected visual.
o Useful for isolating specific values for comparison or highlighting.
2. Page-Level Filters
o Affect all visuals on the current report page.
o Used when a consistent filter (like a year or product category) should be applied across all charts.
3. Report-Level Filters
o Affect all pages in a report.
o Ideal for global filters such as filtering the entire report by region, user role, or status.
4. Slicers
o Act as on-page visual filters that users can interact with.
o Can be drop-downs, list boxes, or sliders.
o Useful for filtering by dimensions like date, geography, product, etc.
5. Drillthrough Filters
o Allow users to right-click on a visual and navigate to a detailed page filtered based on the selected
value.
6. Cross-Filtering
o When visuals are interconnected, selecting an element in one visual will automatically filter the
data shown in others.
Formatting Dashboards:
• Consistency: Apply a uniform color palette, font size, and title format.
• Spacing and Alignment: Use gridlines and "Snap to Grid" for neat layout.
• Title and Labels: Each visual must have clear titles and properly formatted axis labels.
• Backgrounds and Borders: These add visual boundaries and separation between different sections.
• Theming: Power BI allows custom themes (JSON files) to apply consistent colors and styles.
• Interactivity Enhancements: Tooltips, buttons, bookmarks, and conditional formatting.
Procedure:
1. Import Dataset
o Launch Power BI Desktop → Click on Home > Get Data > Excel/CSV.
o Load your dataset (e.g., Superstore, Sales, Inventory, HR data).
2. Create Visuals
o Use Visualizations Pane to drag and drop charts like:
▪ Clustered bar/column chart for sales by category.
▪ Line chart for sales over time.
▪ Card for total profit.
▪ Pie chart for regional sales distribution.
▪ Table or matrix for detailed records.
3. Apply Filters
o Go to the Filters Pane:
▪ Add a Visual-level filter to show only high-performing regions in a chart.
▪ Use a Page-level filter to limit the entire page to the “2023” data.
▪ Add a Report-level filter to show only specific product categories across all pages.
o Add Slicers (e.g., for Region, Product Type, Year).
▪ Choose dropdown or list view, and format it appropriately.
o Enable Drillthrough:
▪ Create a new page → Add a drillthrough field (e.g., Customer Name).
▪ Allow navigation to detailed data for the selected customer.
4. Format Dashboard
o Select visuals and format:
▪ Title: Bold, meaningful (e.g., “Monthly Sales Trend”).
▪ Data Labels: Enable, set font size, color.
▪ Legend: Position and customize.
▪ Borders and Backgrounds: Set colors and transparency.
o Use the Format Pane for each visual element.
o Align visuals using the View > Snap to Grid and Show Gridlines options.
o Add a header using a Text Box, and optionally insert your logo or a background image.
5. Add Interactivity
o Test slicers by selecting multiple values and observing the change in visuals.
o Use Cross-filtering to explore interrelated data insights.
6. Save and Export
o Save the report as .pbix file.
o Optionally publish to Power BI Service for sharing and creating real dashboards.
Methodology:
The process involves structuring the data visuals in a single page to replicate a dashboard layout. Strategic use of
slicers, visual/page/report-level filters, and proper formatting help in developing a professional and user-friendly
interface. Emphasis is placed on creating a cohesive design where all elements contribute to the storytelling of
the dataset.
While most operations are GUI-based, DAX measures can be used to enhance visual effectiveness.
Result:
A functional and visually compelling dashboard is created. It includes a variety of visuals, slicers for interactivity,
well-placed filters, and proper formatting to guide the user in interpreting the data easily. The dashboard responds
dynamically to user interactions.
Conclusion:
This lab helped students understand how to build and format dashboards effectively in Power BI. Mastering filters
and layout techniques ensures that users can gain insights at a glance while enjoying an interactive and
informative experience. Good dashboard design enhances storytelling and supports better business decision-
making.
Title:
Aim:
To utilize Tableau for analyzing and visualizing revenue-related insights from a sales dataset. This includes the
creation of various advanced chart types and the assembly of these into a coherent dashboard that helps identify
patterns and trends across states, time, demographic segments, and product categories.
Theory:
In business intelligence, visual analytics plays a key role in understanding vast datasets by presenting data in an
easily interpretable form. Tableau, a powerful data visualization tool, enables users to uncover hidden patterns,
outliers, and key performance indicators by transforming raw data into graphical formats. This lab explores
several key Tableau features: Choropleth (Filled) Maps to visually represent geographical differences in revenue
performance, Line Charts to detect temporal trends in revenue over a specified time period, Binned Histograms
to segment continuous data (such as customer age) into intervals for detailed demographic analysis, Donut Charts
for illustrating parts-to-whole relationships, especially useful for comparing proportions like regional revenue
contribution, Butterfly Charts (mirrored bar charts) to compare two contrasting groups—such as gender-based
revenue—on a common scale, and Calculated Fields to enhance insight generation by deriving new metrics such
as average revenue and profit status based on specific criteria. The combined use of these elements in a single
dashboard enhances storytelling, enabling stakeholders to make informed decisions based on data trends and
comparisons.
Procedure:
1. Open Tableau Desktop and load the provided Sales Dataset which should include fields such as State,
Revenue, Month, Age, Gender, Product Category, and Region.
2. Create a Choropleth (Filled) Map using the State field and color it by Revenue to highlight geographical
revenue differences.
3. Create a Line Chart by plotting Revenue over the Month field to observe monthly trends and seasonality
in sales.
4. Create Age Bins by dividing the continuous Age field into intervals (bin size 10), then use these bins to
analyze revenue per age group.
5. Create a Donut Chart by customizing a Pie Chart to show the proportion of revenue contributed by
different regions.
6. Create a Butterfly Chart to compare Revenue of Male vs Female customers across Product Categories by
using mirrored bar charts.
7. Create a Calculated Field for Average Revenue per State and use it to classify each state as Profitable or
Non-Profitable, then visualize it using color or label indicators.
8. Combine all the visualizations into a Dashboard by arranging charts using containers, applying filters,
and designing it for clarity and storytelling.
Methodology:
The dataset is analyzed through a series of visualizations that each target a specific aspect of the revenue data.
Maps are used for geographic comparisons, line charts for time-series analysis, binned charts for demographic
insights, donut charts for part-to-whole comparisons, butterfly charts for dual group analysis, and calculated fields
for enhanced metric creation. These are all brought together in a single dashboard which allows for interactive
exploration of insights.
Result:
A comprehensive and interactive Tableau dashboard that includes a Choropleth Map highlighting revenue by
state, a Line Chart showing monthly revenue trends, Age Bins visualized for revenue contribution, a Donut Chart
showing revenue by region, a Butterfly Chart comparing male vs female revenue per product category, and visual
indicators of profitable vs non-profitable states.
Conclusion: This lab helped in understanding how Tableau’s advanced visualization capabilities can be used to
perform an i
n-depth analysis of revenue data. Students learned to combine various charts and metrics into a single, interactive
dashboard which can drive data-informed decisions in a business context.
Title:
Aim:
To utilize Tableau for visually analyzing GDP (Gross Domestic Product) data across countries and over time.
This includes interpreting economic performance using symbol maps, bar graphs, pie charts, and comparative
analysis to extract meaningful insights from real-world economic data.
Theory:
GDP, or Gross Domestic Product, is one of the most commonly used indicators to measure the economic
performance of a country. It represents the total monetary value of all goods and services produced within a
country's borders over a specific time period. Analyzing GDP trends helps identify economic growth, recession
phases, and potential for investment or development. Tableau’s powerful data visualization capabilities make it
ideal for examining such data, as it allows for interactive exploration through maps, charts, and calculated
comparisons. Symbol maps help relate economic indicators to geography, bar charts show temporal variations,
pie charts allow proportion-based comparisons, and dual-axis or comparative graphs are useful for highlighting
differences between entities such as countries. This lab focuses on building these visualizations to evaluate GDP
metrics across different dimensions—country, year, and region.
Procedure:
1. Load the GDP dataset into Tableau, ensuring it contains fields such as Country, Year, GDP (in monetary
terms), Latitude, Longitude, and Region.
2. Create a Symbol Map to visualize GDP distribution across the world:
o Drag Latitude and Longitude onto the Rows and Columns shelf.
o Add the Country field to Detail under Marks.
o Drag GDP to Size to vary symbol size based on GDP values.
o Drag Country Name to Label so each symbol is identified.
o Use Color to represent regional categories if applicable.
o This map will help visually identify countries with higher and lower GDP across global geography.
3. Create a Bar Chart for Belgium to analyze GDP over time:
o Filter the data to display only Belgium.
o Place Year on the Columns shelf and GDP on the Rows shelf.
o Ensure years range from 2006 to 2026 (future projections included if available).
o Format the chart to include grid lines, labels, and color coding for better visual clarity.
o This graph will help identify any upward or downward economic trends in Belgium over the
selected period.
4. Create a Pie Chart for GDP comparison in 2010:
o Apply a filter to select only the year 2010.
o Filter the countries to include India, Nepal, Romania, South Asia, and Singapore.
o Place Country in the Color field and GDP in Angle under the Pie Chart.
o Add GDP values and percentage labels to each segment.
o This pie chart will allow for an easy comparison of the GDP contribution of each selected region
for that year.
5. Compare Bhutan and Costa Rica in terms of GDP over time:
o Filter the dataset to include only Bhutan and Costa Rica.
o Use a side-by-side bar chart, a dual-axis chart, or a grouped bar chart for direct visual comparison.
o Place Year on the Columns shelf and GDP on the Rows.
o Use Color or Shape to distinguish between the two countries.
o This visualization will help track which country had a stronger economy in which year and how
close their GDP figures are.
Methodology:
This lab uses Tableau to process and visually represent economic data. A symbol map is used for geographical
insights into GDP across countries, allowing users to spot economic giants and underdeveloped regions. A bar
chart provides a time-series view, offering an understanding of economic growth or recession in a specific
country. A pie chart serves to highlight the relative GDP shares among a group of countries in a particular year.
Finally, comparative charts are used to directly analyze two countries and evaluate their GDP dynamics. These
methods collectively help explore data from spatial, temporal, and categorical perspectives.
Result:
• The Symbol Map clearly visualized the GDP status of different countries using size-encoded markers and
labels, offering an at-a-glance global economic overview.
• The Bar Graph depicted a year-by-year progression of Belgium’s GDP, showing any consistent growth,
plateaus, or fluctuations.
• The Pie Chart illustrated the GDP distribution of five different countries and regions in 2010, providing
a visual sense of economic proportions.
• The comparative visualization between Bhutan and Costa Rica helped analyze which country had stronger
GDP performance over time and how their economies evolved relative to each other.
Conclusion: This lab successfully demonstrated how Tableau can be used to turn complex GDP data into
meaningful visual insights. By representing data on maps, charts, and graphs, the economic health of countries
and their development over time can be interpreted more effectively. Such visualizations support analysts,
economists, and decision-makers in understanding global financial trends and forming informed strategies for
policy, investment, and development.
Title:
Revenue Analysis of Sales Dataset using R Programming
Aim:
To analyze and visualize sales revenue data using R programming. Tasks include mapping high-revenue states,
identifying trends by time and demographic groups, and building interactive charts using data visualization
libraries.
Theory:
Revenue analysis is crucial for business intelligence. By using R, a versatile language for data science, we can
derive meaningful insights from raw datasets. Visual tools like ggplot2, dplyr, plotly, and sf allow us to
understand regional performance, sales trends, and customer segmentation. Techniques like binning and
conditional calculations enable further data classification. This experiment emphasizes storytelling using
interactive dashboards.
library(ggplot2)
library(dplyr)
library(readr)
library(tidyr)
library(plotly)
library(lubridate)
library(ggthemes)
2. Import Dataset:
ggplot(gender_rev) +
geom_bar(aes(x = Product_Category, y = Male), stat = "identity", fill = "blue") +
geom_bar(aes(x = Product_Category, y = -Female), stat = "identity", fill = "pink") +
coord_flip() +
labs(title = "Male vs Female Revenue by Product Category", y = "Revenue", x = "Product
Category") +
theme_minimal()
# If using patchwork
library(patchwork)
(p1 | p2) / (p3 | p4)
Methodology:
Result:
Conclusion:
This lab demonstrated how R can be used to perform complete sales data analysis from preprocessing to
visualization. Each chart gave a different dimension to the data, helping in better understanding business trends.
The use of calculated fields and classification provided deeper insight, and the dashboard approach enabled
comprehensive storytelling.