Understanding Data Types for Visualization
The type of data you have decides which charts you can use. Treating a category like a number, or the other way around, leads to confusing charts. This topic shows the main data types and how they guide your choices.
a. Categorical and Numerical Data
Categorical data places items into groups. Examples include city, gender, product type, and payment method. These values are labels, not amounts, so you cannot do normal math on them.
Numerical data is made of measurable amounts, such as age, price, or temperature. You can add, average, and compare these values. Most charts need at least one numeric column to show.
Knowing which is which is the first step. A bar chart usually pairs a categorical column with a numerical one. A scatter plot needs two numerical columns.
b. Discrete and Continuous Data
Numerical data can be discrete or continuous. Discrete data has separate, countable values, such as the number of children or the number of orders. You cannot have 2.5 orders.
Continuous data can take any value in a range, like height, weight, or time. It can include decimals and very small differences.
This difference affects your chart. Continuous data works well in histograms and line charts. Discrete data is often shown with bar charts, since each value is a separate step.
c. Time Series and Geographic Data
Time series data is recorded at regular points in time, like daily sales or hourly temperature. The order matters, so line charts are the usual choice. Always place time on the horizontal axis, moving left to right.
Geographic data is tied to a place, such as a country, state, city, or exact latitude and longitude. It is best shown on a map, where location gives an instant sense of patterns.
Both types need careful handling. Dates must be stored as real date values, and locations need correct names or coordinates. Cleaning them first prevents errors in your charts.
d. Matching Data Types to Chart Types
A simple rule helps you choose. One categorical and one numerical column suits a bar chart. Two numerical columns suit a scatter plot. A time column and a numerical column suit a line chart.
One numerical column alone suits a histogram or a box plot. A location column with a numerical value suits a map. Parts of a total suit a pie chart or a stacked bar chart.
Use this rule as a starting point and not a strict law. The best chart is the one that makes your message clearest for your audience.
Data Visualization Tutorial
Wesline Rinisha








