Word cloud implementation.
Example of how to
-
Change style from default. Uses linear scale
-
Alter word size
-
"Fit" it into the screen. At first the words were appearing out of view to the left.
Word cloud implementation.
Example of how to
Change style from default. Uses linear scale
Alter word size
"Fit" it into the screen. At first the words were appearing out of view to the left.
// Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/ | |
// Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf | |
(function() { | |
function cloud() { | |
var size = [256, 256], | |
text = cloudText, | |
font = cloudFont, | |
fontSize = cloudFontSize, | |
fontStyle = cloudFontNormal, | |
fontWeight = cloudFontNormal, |
license: gpl-3.0 | |
height: 600 |
source | target | value | |
---|---|---|---|
Drugs | Drug Classes | 1.2 | |
Drug Classes | Drugs | 1.3 | |
Therapeutic Areas | Drugs | 0.2 | |
Drugs | Manufacturers | 0.5 | |
Manufacturers | Drugs | 1.6 | |
Drugs | Drug Strengths | 0.4 | |
Drugs | Drugs | 0.6 | |
Drugs | Health Plan Drug Comments | 0.7 | |
Health Plans | Health Plan Drug Comments | 0.8 |
license: gpl-3.0 |