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.
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.
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"];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.
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.
Share it
Send the file, record your screen for a Reel, or publish it free with our SITE guide.
Prompts to copy
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]
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
Lines look jagged or missing years
Your own CSV doesn't work
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
- Our World in Data: share of individuals using the internet
- Chart.js documentation
- Our World in Data licence (CC BY)
Last tested 2026-11-17. Found something out of date? Tell Lana on Instagram and the guide gets fixed with a date.
Animate your first Reel with code. No per-video credits.
Put your chart online with a free link anyone can open: see the SITE guide.
Open it