Open In App

D3.js Color Schemes Categorical API Complete Reference

Improve
Improve
Like Article
Like
Save
Share
Report

The D3 is an abbreviation of Data-Driven Documents, and D3.js is a resource JavaScript library for managing documents based on data. D3 is one of the most effective frameworks to work on data visualization.

Color Schemes Categorical

Description

D3.js schemeCategory10() Function

The d3.schemeCategory10 method is used to return an array of ten categorical colors which are returned as RGB hexadecimal strings.

D3.js schemeAccent() Function

The d3.schemeAccent method is used to return an array of eight categorical colors which are returned as RGB hexadecimal strings.

D3.js schemeDark2() Function

The d3.schemeDark2 method is used to return an array of eight categorical colors which are returned as RGB hexadecimal strings.

D3.js schemePaired() Function

The d3.schemePaired method is used to return an array of twelve categorical colors which are returned as RGB hexadecimal strings.

D3.js schemePastel1() Function

The d3.schemePastel1 method returns an array of nine categorical colors returned as RGB hexadecimal strings.

D3.js schemePastel2() Function

The d3.schemePastel2 method returns an array of eight categorical colors returned as RGB hexadecimal strings.

D3.js schemeSet1() Function

The d3.schemeSet1 method returns an array of nine categorical colors returned as RGB hexadecimal strings.

D3.js schemeSet2() Function

The d3.schemeSet2 method is used to return an array of eight categorical colors which is returned as RGB hexadecimal strings.

D3.js schemeSet3() Function

The d3.schemeSet3 method is used to return an array of twelve categorical colors which is returned as RGB hexadecimal strings.

D3.js schemeTableau10() Function

The d3.schemeTableau10 method is used to return an array of ten categorical colors authored by Tableau as part of Tableau 10 which is returned as RGB hexadecimal strings.


Last Updated : 19 Jan, 2024
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads