Home / Trends Over Time

Trends Over Time in HTML and JavaScript

These charts show how numbers change over days, months and years. Start with a simple line chart, add more lines to compare, fill the area to show volume, or use a candlestick chart for prices. Every chart has a crosshair you can move with your mouse or the arrow keys, and every one is a single HTML file with no library.

Line Chart example: new members each month for a yoga studio app

011. Line Chart

Example: new members each month for a yoga studio app
Multi Line Chart example: average home prices in three neighborhoods over ten years

012. Multi Line Chart

Example: average home prices in three neighborhoods over ten years
Area Chart example: solar power made each day by a family home

013. Area Chart

Example: solar power made each day by a family home
Stacked Area Chart example: hours watched each month on a streaming app, by device

014. Stacked Area Chart

Example: hours watched each month on a streaming app, by device
Streamgraph example: weekly listening hours by genre on a radio app

015. Streamgraph

Example: weekly listening hours by genre on a radio app
Step Line Chart example: the interest rate on a savings account from 2021 to 2026

016. Step Line Chart

Example: the interest rate on a savings account from 2021 to 2026
Sparkline example: daily sales for six products in a shop dashboard

017. Sparkline

Example: daily sales for six products in a shop dashboard
Candlestick Chart example: daily share prices and volume for a made up robotics company

018. Candlestick Chart

Example: daily share prices and volume for a made up robotics company
Slope Chart example: guest ratings for eight hotels in 2025 and 2026

019. Slope Chart

Example: guest ratings for eight hotels in 2025 and 2026
Horizon Chart example: daily temperature above or below normal for six cities over a year

020. Horizon Chart

Example: daily temperature above or below normal for six cities over a year