D3 plugin for displaying color wheels
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
d3-colorwheel.js
d3-colorwheel.png

README.md

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