Show code
# Import libraries
from datawrapper import Datawrapper
import numpy as np
import pandas as pd
import polars as pl
import json
import warnings
warnings.filterwarnings('ignore')Jesus LM
Sep, 2024
Datawrapper is a powerful online tool designed to help you create engaging and informative data visualizations. Whether you’re a journalist, researcher, or simply someone who wants to present data in a more visually appealing way, Datawrapper can make the process quick and easy.
Datawrapper’s intuitive design makes it accessible to users of all skill levels. Even those without a strong background in data visualization can create professional-looking charts and maps.
From simple bar charts and line graphs to more complex maps and scatter plots, Datawrapper offers a variety of chart types to suit different data sets and storytelling needs.
Users can customize their visualizations to match their brand or personal style. This includes options for changing colors, fonts, and layouts.
Datawrapper allows users to create interactive visualizations that respond to user input. For example, users can hover over data points to see more detailed information or filter data based on specific criteria.
Once a visualization is created, it can be easily embedded into websites, blogs, or social media posts. Users can also share their visualizations directly with others.
Datawrapper supports collaboration, allowing multiple users to work on the same visualization simultaneously. This is particularly useful for teams or organizations that need to create data visualizations together.
Datawrapper is a popular tool among journalists who want to present complex data in a clear and visually engaging way. It can be used to create interactive charts, maps, and infographics that enhance storytelling.
Researchers can use Datawrapper to visualize their findings and make them more accessible to a wider audience. By presenting data in a visual format, researchers can communicate their ideas more effectively and increase the impact of their work.
Businesses can use Datawrapper to create dashboards, reports, and presentations that help them make data-driven decisions. By visualizing key metrics and trends, businesses can gain valuable insights into their performance.
Teachers and students can use Datawrapper to create interactive visualizations that help them understand and learn from data. It can be used to teach data analysis, statistics, and other subjects.
Collection of available Datawrapper chart types and their IDs
| Chart | TypeID |
|---|---|
| Bar Chart | d3-bars |
| Split Bars | d3-bars-split |
| Stacked Bars | d3-bars-stacked |
| Bullet Bars | d3-bars-bullet |
| Dot Plot | d3-dot-plot |
| Range Plot | d3-range-plot |
| Arrow Plot | d3-arrow-plot |
| Column Chart | column-chart |
| Grouped Column Chart | grouped-column-chart |
| Stacked Column Chart | stacked-column-chart |
| Area Chart | d3-area |
| Line Chart | d3-lines |
| Multiple Lines Chart | multiple-lines |
| Pie Chart | d3-pies |
| Donut Chart | d3-donuts |
| Multiple Pies | d3-multiple-pies |
| Multiple Donuts | d3-multiple-donuts |
| Scatter Plot | d3-scatter-plot |
| Election Donut | election-donut-chart |
| Table | tables |
| Choropleth Map | d3-maps-choropleth |
| Symbol Map | d3-maps-symbols |
| Locator Map | locator-map |
| country | %pop in the capital | %pop in urban areas | %pop in rural areas | |
|---|---|---|---|---|
| 0 | Iceland (Reykjavík) | 56.02 | 38.0 | 6.0 |
| 1 | Argentina (Buenos Aires) | 34.95 | 56.6 | 8.4 |
| 2 | Japan (Tokyo) | 29.52 | 63.5 | 7.0 |
| 3 | UK (London) | 22.70 | 59.6 | 17.7 |
| 4 | Denmark (Copenhagen) | 22.16 | 65.3 | 12.5 |
| 5 | France (Paris) | 16.77 | 62.5 | 20.7 |
| 6 | Russia (Moscow) | 8.39 | 65.5 | 26.1 |
| 7 | Niger (Niamey) | 5.53 | 12.9 | 81.5 |
| 8 | Germany (Berlin) | 4.35 | 70.7 | 24.9 |
| 9 | India (Delhi) | 1.93 | 30.4 | 67.6 |
| 10 | USA (Washington, D.C.) | 1.54 | 79.9 | 18.6 |
| 11 | China (Beijing) | 1.40 | 53.0 | 45.6 |
You can hover over the bars on the above chart to get dynamic results.
To start using Datawrapper, simply create a free account on their website. Once you’re logged in, you can begin creating your first visualization.
Datawrapper offers a variety of tutorials and resources to help you get started and make the most of the platform.
By leveraging the power of Datawrapper, you can create compelling data visualizations that help you tell your story more effectively.
Whether you’re a seasoned data analyst or just starting out, Datawrapper is a valuable tool that can help you bring your data to life.
Jesus LM
Economist & Data Scientist