A graph is a visual representation that makes relationships, trends, or patterns in data easier to see. At its simplest a graph relates two or more measurements using positions, shapes, or lengths so that a viewer can quickly compare values. Many everyday charts—like a line showing temperature over time or bars showing sales by region—are forms of graphs.
Basic components
Most graphs that display numerical data share a few common parts: axes or reference lines, scales and tick marks, plotted points or bars, labels, and often a legend. The axes provide a coordinate framework: the horizontal axis typically represents an independent variable such as time, while the vertical axis shows the dependent variable. Tick marks and labels indicate the scale. A clear title and units of measurement are essential so readers understand what is being compared.
- Axes and grid: guides for reading values along two directions; see connection between quantities.
- Data marks: points, lines, bars, or areas that show measured values (grid often helps).
- Scale and labels: numeric marks and descriptive text (Cartesian coordinates are common for rectangular plots).
Common types and examples
Graphs come in many styles suited to different tasks. Line graphs show how a quantity changes continuously, bar charts compare discrete categories, and scatter plots reveal relationships and clustering between two variables. Pie charts and stacked bars display proportions within a whole, while histograms summarize distributions. Specialized graphs such as heat maps, box plots, and network diagrams address particular analytical needs.
- Line graph — trends over time (vertical and horizontal axes intersect at right angles).
- Bar chart — categorical comparison (axes and bars).
- Scatter plot — correlation between two continuous variables (ruler-like scales).
Origins and development
The ideas behind graphs draw on mathematics and practical illustration. The Cartesian coordinate system popularized by René Descartes allowed algebraic relationships to be shown geometrically. In the late 18th century William Playfair invented several graphic forms for economic data, including the bar chart and line plot. During the 19th and 20th centuries statisticians and public health reformers refined visual methods to present complex evidence clearly.
Uses, strengths and cautions
Graphs are widely used in science, business, education and journalism because they condense large amounts of information into a form the brain processes quickly. A well-designed graph highlights the intended message and supports comparison or discovery. Poor choices of scale, truncated axes, excessive decoration, or missing labels can mislead, so good practice emphasizes accurate scales, clear legends, and appropriate chart types.
Distinctions and notable points
The term "graph" can also mean a network of nodes and links in mathematics and computer science; that usage is distinct from data plots. More generally, graphs are one class of visual tools alongside diagrams and maps: a diagram may show structure or flow without quantitative axes, while a graph is normally intended to convey measured relationships. For further practical guides and examples see visualization principles and software tutorials at tools and resources.
