{"version":"1.0","type":"rich","title":"Useful functions","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/35724e2c15c542a2bc17b3aee191c16b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}