jasondavies / d3-cloud

Create word clouds in JavaScript.
https://www.jasondavies.com/wordcloud/
Other
3.82k stars 1.07k forks source link

Specific color per key #95

Closed rajeshr6r closed 7 years ago

rajeshr6r commented 8 years ago

Hi, will it be possible to read the color for the word from the data source itself ?. I attempted creating a fillColor function which I then try to read as follows

var fillColor = function(d){ return d.colorcode; }