Skip to content

betweentwobrackets/d3-colorwheel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

D3 Color Wheel

D3 plugin for displaying color wheels.

Secondary and modified secondary color wheels

Usage

var data = [{
    title: "Primary Colours",
    colors: [
        {label: 'Red', color: "#f00"},
        {label: 'Green', color: "#0f0"},
        {label: 'Blue', color: "#00f"}
    ]
}];

var colorWheel = d3.colorWheel().width(300).height(360);

var svg = d3.select("#colour-wheels").selectAll("svg")
    .data(data)
  .enter().append("svg")
    .call(colorWheel);

Releases

No releases published

Packages

No packages published