Skip to content
Computer Science · Class 11 · Society, Law, and Ethics · Term 2

Creating Pie Charts and Scatter Plots

Students will learn to create pie charts for proportions and scatter plots for showing relationships between two variables.

CBSE Learning OutcomesCBSE: Data Visualization - Class 11

About This Topic

Pie charts display proportions of a whole clearly, such as budget shares or survey responses, while scatter plots show relationships between two numerical variables, like study hours and exam scores. In Class 11 Computer Science under CBSE, students use Python libraries such as matplotlib to code these visualisations. They justify pie charts for categorical data that sums to 100%, construct scatter plots by plotting x-y pairs, and analyse limitations: pie charts confuse with over ten slices or unequal comparisons.

This topic supports data visualisation standards in the Society, Law, and Ethics unit, where ethical chart selection prevents misleading interpretations in real-world contexts like election data or policy reports. Students develop skills to question visuals critically, linking computation to societal impact and preparing for advanced data analysis.

Active learning benefits this topic immensely because students code live plots from class-collected data, tweak parameters to see instant changes, and collaborate on interpretations. Such hands-on practice builds confidence in tool use, reveals chart strengths intuitively, and makes abstract concepts like correlation tangible through shared discoveries.

Key Questions

  1. Justify the use of a pie chart for representing parts of a whole.
  2. Construct a scatter plot to visualize the relationship between two numerical variables.
  3. Analyze the limitations of pie charts for comparing multiple categories.

Learning Objectives

  • Create a pie chart using Python to represent the proportional distribution of a dataset.
  • Construct a scatter plot using Python to visualize the relationship between two numerical variables.
  • Analyze the effectiveness of a pie chart for representing data with more than ten categories.
  • Evaluate the correlation shown in a scatter plot and describe the nature of the relationship.
  • Critique the ethical implications of using pie charts to represent sensitive data, such as election results.

Before You Start

Introduction to Data Types and Variables

Why: Students need to distinguish between categorical and numerical data to select appropriate visualization methods.

Basic Python Programming Constructs

Why: Students must be familiar with Python syntax, data structures (like lists or dictionaries), and basic control flow to write code for generating plots.

Key Vocabulary

Pie ChartA circular chart divided into slices, where each slice represents a proportion or percentage of the whole dataset.
Scatter PlotA graph that uses dots to represent the values obtained for two different numerical variables, showing the relationship between them.
Categorical DataData that can be divided into distinct groups or categories, often represented by labels or names.
Numerical VariableA variable that represents a quantity that can be measured or counted, typically expressed as a number.
CorrelationA statistical measure that describes the extent to which two variables change together, indicating a linear relationship.

Watch Out for These Misconceptions

Common MisconceptionPie charts work well for any number of categories.

What to Teach Instead

Pie charts clutter beyond eight to ten slices, hindering comparisons. Small groups code pies with increasing categories, observe readability drop, and switch to bar charts, reinforcing choice criteria through trial.

Common MisconceptionScatter plots always show cause and effect.

What to Teach Instead

They indicate correlation only, not causation. Pairs plot fun spurious data like ice cream sales versus shark attacks, discuss in debrief, clarifying via active counterexamples and ethical discussions.

Common MisconceptionPie slice size is judged by area alone.

What to Teach Instead

Humans perceive angles better; area misleads. Whole class compares coded pies with distorted areas, measures angles manually, and adjusts code, building accurate visual judgement through experimentation.

Active Learning Ideas

See all activities

Real-World Connections

  • Market research firms use pie charts to present the market share of different companies in the smartphone industry, helping stakeholders understand competitive landscapes.
  • Economists at the Reserve Bank of India analyze scatter plots to visualize the relationship between inflation rates and GDP growth, informing monetary policy decisions.
  • Public health officials in Delhi might use pie charts to show the distribution of disease prevalence across different age groups in a given year.

Assessment Ideas

Quick Check

Provide students with a small dataset (e.g., class survey on favourite subjects). Ask them to write Python code to generate a pie chart representing the proportions and then answer: 'Would this pie chart be effective if there were 15 subjects?' Justify your answer.

Exit Ticket

Students are given a scatter plot showing study hours versus exam scores. They must write two sentences describing the observed relationship (e.g., positive, negative, no clear trend) and one potential limitation of this visualization.

Discussion Prompt

Present two pie charts: one showing budget allocation for a small NGO and another showing election results with 12 candidates. Ask students: 'Which chart is more effective and why? What ethical concerns might arise from using pie charts for election results?'

Frequently Asked Questions

How to code a pie chart in Python matplotlib for Class 11 CBSE?
Import matplotlib.pyplot as plt, prepare data list and labels, then use plt.pie(sizes, labels=labels, autopct='%1.1f%%'). Add plt.axis('equal') for circle shape and plt.show(). Customise with explode=[0.1] for emphasis or colours via colors parameter. Practice with survey data ensures students grasp proportions accurately.
When should students use scatter plots over line graphs?
Use scatter plots for unpaired numerical data to spot trends or clusters without assuming sequence, like height versus weight. Line graphs suit time-series data. Class 11 students construct both from same dataset, compare interpretations, and justify based on CBSE key questions for relationships.
What are limitations of pie charts in data visualisation?
Pie charts fail for precise magnitude comparisons, many categories, or small differences due to angle perception issues. They suit two to six parts of a whole only. Teach by coding cluttered examples versus bar alternatives, aligning with CBSE analysis standards and ethical visualisation.
How can active learning help teach pie charts and scatter plots?
Active approaches like pair-coding real datasets let students manipulate code live, see plot changes instantly, and debate interpretations collaboratively. Groups collect class data for pies or scatters, fostering ownership and revealing limitations hands-on. This builds CBSE skills faster than lectures, as shared debugging and presentations cement justification and analysis.