d3/d3-scale

Encodings that map abstract data to visual representation.

JavaScript

1,616

586 commits

updated Feb 23, 2026

See the code

README

d3-scale

Scales map a dimension of abstract data to a visual representation. Although most often used for encoding data as position, say to map time and temperature to a horizontal and vertical position in a scatterplot, scales can represent virtually any visual encoding, such as color, stroke width, or symbol size. Scales can also be used with virtually any type of data, such as named categorical data or discrete data that requires sensible breaks.

Resources

d3/d3-scale

Encodings that map abstract data to visual representation.

JavaScript

1,616

586 commits

updated Feb 23, 2026

See the code

README

d3-scale

Scales map a dimension of abstract data to a visual representation. Although most often used for encoding data as position, say to map time and temperature to a horizontal and vertical position in a scatterplot, scales can represent virtually any visual encoding, such as color, stroke width, or symbol size. Scales can also be used with virtually any type of data, such as named categorical data or discrete data that requires sensible breaks.

Resources

Significant stargazers

Toru Nagashima

1,165 followers · starred Jan 2018

Arve Knudsen

267 followers · starred Mar 2019

Sean Silva

47 followers · starred Dec 2015

ocfox

66 followers · starred Aug 2024