Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Some refactored API live coding

Public visualization

Viewing a saved revision (read-only)

ada0fed2c86a45cbbac8f7865a158721

Some refactored API live coding

0 stars0🌍 Public
Ddavidvanr21
Last edited Oct 27, 2020
Created on Oct 27, 2020

This example demonstrates a live-coding workflow for inspecting and cleaning data fetched from the Dutch RDW open-data API (`https://opendata.rdw.nl/resource/t5pc-eb34.json`). It fetches the raw JSON using the `fetch` API within an `async` function, then maps results down to a single selected column (`areaid`). With the filtered array, the code logs all data, a single record, and the cleaned column values, then uses a `Set` to list unique entries and filters for values containing "WEST". The visualization is limited to console output, with no graphical rendering.

AI-generated description

A livecoded example on an API

  • Refactor code
  • Inspect data
  • Get unique values for a certain column