First of all, d3-cloud is amazing. Just putting it out there.
So got most things working pretty easily, even made it into an angular directive, and it works amazing. But have two questions about placement. First one, my clouds come out square (I.E. they draw at 90 degree angles). I have checked and they do generate rotate.
Second, can I control in what order they words are drawn, like biggest first or something to get all the main ones in the center.
Below is my version (OK, my version is a stretch, what I ended up with after stealing on the internet:) ) if anyone wants to test it or just need it as a angular directive and don't mind that it only prints in 90 degree angles:)
To run it, just add the directive to your angular app. Then call it with <word-cloud ng-model=[word array]>
The array is in the format of [{text: "Word", size: 10},....... ]
I thought it may be connected to canvas module, but having issues installing canvas (trying to test it via npm, but not certain how to use it as it SEEMS to have software requirements, which would be tricky as the thing is generated on the client side)
First of all, d3-cloud is amazing. Just putting it out there.
So got most things working pretty easily, even made it into an angular directive, and it works amazing. But have two questions about placement. First one, my clouds come out square (I.E. they draw at 90 degree angles). I have checked and they do generate rotate.
Second, can I control in what order they words are drawn, like biggest first or something to get all the main ones in the center.
Below is my version (OK, my version is a stretch, what I ended up with after stealing on the internet:) ) if anyone wants to test it or just need it as a angular directive and don't mind that it only prints in 90 degree angles:)
To run it, just add the directive to your angular app. Then call it with <word-cloud ng-model=[word array]> The array is in the format of [{text: "Word", size: 10},....... ]
I thought it may be connected to canvas module, but having issues installing canvas (trying to test it via npm, but not certain how to use it as it SEEMS to have software requirements, which would be tricky as the thing is generated on the client side)