Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Useful functions

Public visualization

Viewing a saved revision (read-only)

67f96854598847daabd5a276104596e8

Useful functions

0 stars0🌍 Public
RRodolfo Viana
Last edited Jan 21, 2021
Created on Jan 21, 2021
Forked from Blank

This example demonstrates a reusable JavaScript function for joining two datasets, enabling efficient data combination in visualization workflows. It builds an index from a lookup table and then maps rows from a main table through that index, selecting only the desired columns. The code shows a raw implementation of a lookup-table join, similar to SQL-style joins, with a commented usage example that merges brand and article data. The example relies on plain JavaScript arrays and objects, with no external libraries, making it a lightweight utility for preprocessing data before visualization.

AI-generated description