May 2019
Beginner to intermediate
650 pages
14h 50m
English
The d3-color module contains several methods for color manipulation and representations for color spaces. You can use it to extract different color components or convert colors into different representations so that you can manipulate hue, lightness, and other aspects.
The main function is d3.color(specifier), which takes a color specifier string, which can be a named color, such as aquamarine, a hexadecimal string representation (for example, #f3a, #fe921d) or a CSS color specified with a functional notation the (rgb, rgba, hsl, or hsla function).
The following table lists the methods and properties that are supported by color objects that are created with the d3.color() function:
|
Method or property |
Description |
Read now
Unlock full access