Skip to main content
100%

Transforming data using d3

✓ Published0🌍 Public
Kkimgarrard
Last edited Nov 22, 2019
Created on Nov 22, 2019

This example demonstrates how to group a collection of ethnographic artefact records by date using the `d3.nest()` method. The visualization is generated from SPARQL query results, accessed via the Web API using `d3.json`, and the data is subsequently cleaned and transformed to calculate a count of records per entry. The final visualization is not rendered; instead, the process focuses on logging the transformed, nested data structure to the console, showcasing the data preparation stage before any visual encoding takes place. The code relies on the D3.js v5 library and its built-in nesting and data-loading utilities.

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

MIT Licensed

Similar vizzes