Home / Comparison Charts

Comparison Charts in HTML and JavaScript

Comparison charts answer the most common question people ask about data: which one is bigger? These ten charts cover every way to compare values, from a simple bar chart to before and after dumbbells and target tracking bullet charts. Each one is a single HTML file with no library. Open the demo, change the numbers and put it on your site.

Bar Chart example: weekly bread sales at a bakery

001. Bar Chart

Example: weekly bread sales at a bakery
Grouped Bar Chart example: cinema ticket sales for three locations per quarter

002. Grouped Bar Chart

Example: cinema ticket sales for three locations per quarter
Stacked Bar Chart example: website visits by source for an outdoor shop

003. Stacked Bar Chart

Example: website visits by source for an outdoor shop
100% Stacked Bar Chart example: customer survey results for five grocery stores

004. 100% Stacked Bar Chart

Example: customer survey results for five grocery stores
Horizontal Bar Chart example: the most borrowed library books of the year

005. Horizontal Bar Chart

Example: the most borrowed library books of the year
Lollipop Chart example: average delivery time by city with a 24 hour target

006. Lollipop Chart

Example: average delivery time by city with a 24 hour target
Dot Plot example: small, medium and large latte prices in eight cities

007. Dot Plot

Example: small, medium and large latte prices in eight cities
Dumbbell Chart example: commute times before and after a new tram line

008. Dumbbell Chart

Example: commute times before and after a new tram line
Bullet Chart example: solar panel installs against target for six regions

009. Bullet Chart

Example: solar panel installs against target for six regions
Diverging Bar Chart example: visitor gains and losses for ten city parks

010. Diverging Bar Chart

Example: visitor gains and losses for ten city parks