May 12th, 2021
How to integrate data hubs with Datawrapper
With the release 1.5.3 we are introducing a simple way to feed data into Datawrapper.
For a moment, imagine that you are running a data hub, a software for collaborating on gathering, sharing and using data. Naturally you would like to see all that data being used in the wild, for instance in visualizations embedded into blogs or shared in social media. And you know that tools like Datawrapper are created for that exact purpose. But to visualize your data in Datawrapper, your users would have to go to a number of steps:
Since time and motivation are often limited resources, we thought it’s a good idea so simplify this process. After all, you as the data provider already have the data and the metadata in a structured format. So why not take that hurdle out of your users way and let your website feed the data into Datawrapper directly?
Here’s a sample form as the data hub could render it with the data:
So the only thing visible to the user would be a simple form submit button.
The following table lists all the parameters that can be set using the request. Depending on what parameters you provide the user will be directed either to the describe or visualize step of the chart editor.
data– the dataset in CSV format
title– if the dataset has a name, you can set it as chart title (optional)
source-name– the name of the organization providing the data (optional)
source-url– the link back to the original dataset (optional)
type– the chart type, which can be line-chart, bar-chart, column-chart, grouped-column-chart, stacked-column-chart, pie-chart, or donut-chart (optional)
Feedback is welcome!
We’re interested in what you think about this, so please let us know in the comments or on Twitter. what you think about this idea, and if you actually going to integrate this in your website.