Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 522 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 522 Bytes

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);