Skip to main content
100%

fresh block

✓ Published0🌍 Public
GGerardoFurtado
Last edited Mar 13, 2019
Created on Mar 13, 2019

This example shows a small dataset of timestamped numeric values being loaded and parsed from an external JSON file. It demonstrates a robust data-cleaning technique where the raw text is first altered to replace any unquoted `-Infinity` values with quoted strings, then parsed with a custom reviver function that converts those strings back into JavaScript’s native `-Infinity` number. The visualization itself is minimal—the code only logs the resulting parsed array to the console, with no visual elements drawn. It relies on D3 v5’s `d3.text` method to fetch the file and `JSON.parse` with a reviver callback to handle edge-case numeric literals. The data originates from a gist, with the structure showing two parallel numeric columns per timestamp.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes