I am not able to access additional fields that i specify on my word cloud data, except for size and text.
I am calling my draw() function on the "end" event.
I think this is due to the fact that you are mapping :
data = words.map(function(d, i) {
return {
text: text.call(this, d, i),
font: font.call(this, d, i),
rotate: rotate.call(this, d, i),
size: ~~fontSize.call(this, d, i),
padding: cloudPadding.call(this, d, i)
};
and then using
d = data[i];
tags.push(d);
event.end(tags, bounds);
so, only these 5 fields are returned after "end" event.
Am i missing something here ?
I am not able to access additional fields that i specify on my word cloud data, except for size and text.
I am calling my draw() function on the "end" event.
I think this is due to the fact that you are mapping :
and then using
so, only these 5 fields are returned after "end" event.
Am i missing something here ?