📘 CodingMarble Learn

Data Visualisation: Turning Numbers into Pictures

Data visualisation means showing data as a picture so patterns are easy to see. Use a bar chart to compare categories, a pie chart for parts of a whole, a line chart for change over time, a scatter plot for the relationship between two numbers, and a histogram for how values are spread. A good chart has a title, labelled axes with units, and an honest scale that starts at 0 for bars.

🎬 Step-by-step story

  1. Here is raw data: the favourite fruit of 33 students. It is only a list of numbers. Which fruit wins by how much? It is hard to see at a glance.
  2. Now the same data grows into a bar chart. Each bar's height is the count. Mango is clearly the tallest. Bar charts are for comparing categories.
  3. The same numbers become a pie chart. Each slice is a part of the whole class. Mango is 12 out of 33, about 36%.
  4. New data: average temperature for seven months. A line chart joins the points in time order. You can see it rise until May and then fall.
  5. A scatter plot shows two numbers for each student: study hours and marks. Each dot is one student. The dots climb upward, so more hours goes with more marks.
  6. Your turn. Pick a chart, change the mango count, and switch off "axis from 0" to see how a cut axis can trick the eye.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why not just use a table?

A table is good for exact values, but eyes compare heights and slopes much faster. In the 3D, compare step 1 (list) with step 2 (bars).

When is a pie chart a bad idea?

When there are many tiny slices, when the parts do not make one whole, or for change over time. Then use bars or lines.

Bar chart or line chart for months?

Both can work. A line chart shows the trend best, because the slope between points shows rising or falling.

Does a scatter plot prove cause?

No. It shows that two things move together. Something else may cause both.

Why must a bar chart start at 0?

Because we judge bars by their length. If the axis is cut, lengths are no longer in the same ratio as the values. Try it in free play.

What is data visualisation and why use it?

Data visualisation means turning data into a picture: a chart, graph or map. Our eyes find the biggest bar or a rising line much faster than we can read a table.

A chart helps you to compare, to see a trend, to spot an outlier (an unusual value), and to tell others what you found. It is one step in data analysis: collect → clean → analyse → visualise → conclude.

Choosing the right chart

Ask: What is my question? Compare, part of a whole, change over time, or relationship? The question picks the chart.

Parts of a good chart

Every chart needs:

Keep it simple: no 3D effects that hide values, not too many colours, and colours that people with colour blindness can tell apart.

Reading charts and spotting patterns

When you read a chart, look for:

Remember: correlation is not causation. Ice-cream sales and sunburn both rise in summer, but ice cream does not cause sunburn. The hot weather causes both.

Misleading charts

Charts can trick the eye, by mistake or on purpose:

Always check the axis, the units and the source before you believe a chart.

Making charts with software

Spreadsheets (like LibreOffice Calc, Google Sheets or Excel) make a chart in a few clicks: type the data in columns, select it, choose Insert → Chart, then pick the type and add a title and axis labels. Programmers use libraries such as Python's matplotlib: plt.bar(fruits, counts) draws a bar chart. Whatever the tool, you still choose the chart type and check it is honest.

Try it: ask 10 friends or family members their favourite fruit. Make a tally, then draw a bar chart on paper and a pie chart (angle = count ÷ total × 360°).

Key formulas and definitions

Worked examples

1. A survey: Mango 12, Apple 8, Banana 6, Orange 4, Grapes 3. Find the pie angle for Mango.

Total = 33. Angle = 12/33 × 360° ≈ 131°. Percentage = 12/33 × 100 ≈ 36%.

2. Which chart would you use to show how a city's rainfall changes month by month?

A line chart (or a bar chart by month), because it shows change over time. The months go on the x-axis in order.

3. A bar chart shows Team A = 52 and Team B = 55 with the axis starting at 50. B's bar looks 2.5 times taller. Is that fair?

No. Above 50, A shows 2 and B shows 5, so B looks 2.5 times taller. The real ratio is 55/52 ≈ 1.06, only 6% more. The axis should start at 0.

4. In a scatter plot of age of car vs price, the dots go down from left to right. What does this show?

A negative correlation: older cars tend to have lower prices.

5. A pie chart has slices of 40%, 35% and 30%. What is wrong?

They add to 105%. Slices of one whole must add to 100%, so the data or the chart is wrong.

Common mistakes

Practice quiz

1. Best chart to compare the number of students in five clubs:
2. A pie chart shows:
3. Dots that rise from left to right in a scatter plot show:
4. Which makes a bar chart misleading?
5. For temperature over 12 months, use a:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is data visualisation in simple words?

Showing data as a picture, like a bar chart or line graph, so patterns and comparisons are easy to see.

What are the main types of charts?

Bar chart, pie chart, line chart, scatter plot, histogram, and tables. Each answers a different kind of question.

How do I choose the right chart?

Compare groups: bar. Parts of a whole: pie. Change over time: line. Link between two numbers: scatter. Spread of values: histogram.

Where this is taught

Ukraine10 класData analysis and visualisation
Ukraine10 класBase module: models, data analysis and visualisation
Japan高校(専門学科)1〜3年Information Media Design
South Korea고등학교 2학년Software for analysis
China高一Comp.1 Ch.3 Data processing

Learn first

Learn next

Related lessons

All Computer Science lessons