Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Transforming data using d3

Public visualization

Viewing a saved revision (read-only)

7239bb81b72941a28bd28350c0a34deb

Transforming data using d3

0 stars6🌍 Public
LLaurens
Last edited Nov 13, 2019
Created on Nov 12, 2019

This example demonstrates how to clean, group, and enrich SPARQL query results about ethnographic artefacts. It loads data from a Dutch heritage endpoint using `d3.json`, maps each row to extract plain values with `cleanData`, then applies `d3.nest()` to group artefacts by their parent country. For each country group, it calculates the total count of artefacts as a new `amount` property. The code uses d3 v5 APIs such as `d3.nest()` and `d3.json`, and logs the raw, cleaned, and transformed data to the console for inspection.

AI-generated description

Transforming data using d3

Concept

I'm going to group data using nest() and to add some calculated values. I'll try to do this based on SPARQL data about ethnographic artefacts

Inspiration