Skip to main content
100%

d3js Exercice 1 - number formats

✓ Published0🌍 Public
YYannLive
Last edited Oct 10, 2017
Created on Oct 10, 2017

This example demonstrates number formatting in D3.js by printing a series of values computed from 0.1 increments and a fixed variable, then applying various format specifiers such as '.1f' and '.2s' to show fixed-point and SI-prefix notation. It also defines a custom French locale with comma decimal separators and period thousands separators, then reapplies the format to illustrate localized output. The code uses the d3-format module’s `d3.format` and `d3.formatDefaultLocale` APIs, rendering results directly into the page’s HTML via `document.writeln`.

AI-generated description

d3js Exercice 1 - number formats

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/AlainRo/'>AlainRo</a>'s block: <a href='http://bl.ocks.org/AlainRo/66e8f2df6e5253c42911e1ff0504a627'>d3js Exercice 1 - number formats</a>

mit Licensed

Similar vizzes