Skip to main content
100%

Untitled

✓ Published0🌍 Public
EEric Ho
Last edited Feb 14, 2021
Created on Feb 14, 2021
Forked from D3 Starter

This example demonstrates how to format numbers with D3’s `d3.format` API from the `d3-format.v2` module. It creates two format specifications—a compact two-significant-digit format and a centered width-20 format—and outputs the results of formatting the number 12347 with each to the console. The code loads the D3 library from a CDN and executes the formatting calls directly in a script tag, showing the formatted strings as the primary output.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes