Home / Relationships

Relationships in HTML and JavaScript

These charts show how two or more measures relate to each other. Does price drop as miles go up? Which hours are busiest? Which campaign gave the best value? Start with a scatter plot, add size with a bubble chart, or use a heatmap when both measures are categories. Every chart here is one HTML file with no library.

Scatter Plot example: used car prices against mileage

041. Scatter Plot

Example: used car prices against mileage
Bubble Chart example: ad campaigns compared on cost, conversion and budget

042. Bubble Chart

Example: ad campaigns compared on cost, conversion and budget
Heatmap example: gym check-ins by day and hour

043. Heatmap

Example: gym check-ins by day and hour
Correlation Matrix example: what drives daily sales at a cafe

044. Correlation Matrix

Example: what drives daily sales at a cafe
Connected Scatter Plot example: monthly bike share trips against average temperature

045. Connected Scatter Plot

Example: monthly bike share trips against average temperature
Hexbin Plot example: distance and fare for 3,000 taxi rides

046. Hexbin Plot

Example: distance and fare for 3,000 taxi rides
Contour Plot example: a hill walk with height lines and a trail

047. Contour Plot

Example: a hill walk with height lines and a trail
Radar Chart example: three laptops scored on six features

048. Radar Chart

Example: three laptops scored on six features
Parallel Coordinates Chart example: rental flats compared on six measures

049. Parallel Coordinates Chart

Example: rental flats compared on six measures
Quadrant Chart example: app features sorted by effort and impact

050. Quadrant Chart

Example: app features sorted by effort and impact