Lana guides
All guides
CHARTTested ·

Turn public data into an interactive chart, free

A live, clickable chart of real world data in one HTML file that opens in any browser.

Cost
Free.
Time
15 minutes
Phone?
The finished chart opens on phones; editing is easier on a laptop.
Tested on
Laptop recommended

Why it’s worth it

Charts made from real data make great school projects, LinkedIn posts and Reels. You don't need Excel, Tableau or a paid plan: one file, a free chart library and an open dataset are enough.

What you need

  • Any web browser (Chrome, Edge, Safari, Firefox).
  • A text editor (Notepad, TextEdit in plain-text mode, or VS Code).
  • Internet connection (the file loads the data and Chart.js online).

What it costs

Free. Chart.js is open source (MIT). Our World in Data publishes this dataset under CC BY 4.0, so credit them.

Steps

Tap a step number to tick it off. Your progress stays on this device.

  1. Download the starter

    Download chart.html from this guide. Double-click it to open it in your browser. You'll see internet use from 1990 to 2025 for India, the World, China, Indonesia and Nigeria.

  2. Pick your countries

    Open chart.html in a text editor and change the COUNTRIES line. Use names exactly as the dataset writes them (for example "United States", "Pakistan", "Bangladesh").

    const COUNTRIES = ["India", "World", "Bangladesh", "Brazil"];
  3. Swap the dataset (optional)

    Find any chart on ourworldindata.org, click Download, choose the CSV link and copy its URL into the URL line. The starter expects four columns: entity, code, year, value.

  4. Ask AI to restyle it

    Paste the file into any AI chat with the prompt below to change colours, add a title or turn it into a bar chart.

  5. Share it

    Send the file, record your screen for a Reel, or publish it free with our SITE guide.

Prompts to copy

Restyle my chart
Here is a single-file Chart.js page. Keep the fetch URL and the CSV parsing exactly as they are. Make it [dark theme / pastel / newspaper style], highlight India with a thicker line and a label at the last point, and add a one-sentence takeaway above the chart that I will write myself (leave a placeholder). Return the full file.

[PASTE chart.html HERE]
Find a story in the data
I'm charting "[DATASET NAME]" from Our World in Data for [COUNTRIES]. Suggest 3 honest, checkable observations I could highlight, and tell me what I should verify in the raw numbers before posting each one.

What you’ll get

A line chart of internet use 1990–2025 for your chosen countries, with tick boxes to show or hide each line.

Our test: the starter loaded 6,659 rows live from Our World in Data and drew the chart in headless Chrome (2026-11-17). India's latest value in the file: 70% of the population online in 2025.

If it doesn’t work

Blank chart
Check your internet connection, then open the browser console (F12). A country name that doesn't match the dataset is silently skipped, so check the spelling.
Lines look jagged or missing years
Some countries have gaps in the data. That is the real data; say so rather than smoothing it.
Your own CSV doesn't work
This starter splits on commas, so it can't read CSVs whose names contain commas (e.g. "Korea, South"). Ask AI to switch the parser to Papa Parse.

The fine print

Limits

  • The chart fetches live data, so it needs internet each time it opens.
  • Data is only as current as the source; check the year range on the source page before claiming 'latest'.

Other ways to do it

  • Google Sheets: Insert → Chart (free, no code).
  • Datawrapper: free tier for publishing charts (check its current plan limits).

Safety. Always credit the data source (CC BY 4.0 requires attribution). Don't present projections or gaps as measured facts.

Sources

Last tested 2026-11-17. Found something out of date? Tell Lana on Instagram and the guide gets fixed with a date.