Word Cloud¶
The word cloud is a useful visualization to see the weight of certain terms (words) in a given data set. To visualize a simple word cloud you can write the following code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
Previous code will render a Word Cloud like follow:
Custom settings¶
- fontFamily: Defines the font family. Its default value is
sans-serif
. - fontWeight: Defines the font weight. Its default value is
normal
. - sizeRange: Defines the size range depending on main metric. Its default value is
[10, 40]
. - color: By default each word is colored with a random color of the theme palette. You can also specify a metric to drive color in the same way as in other standard charts. Please refer to the Color Documentation for more information.
- verticalWords: If
false
, the words are displayed only horizontally. Iftrue
, the words are displayed in vertical and horizontal orientation. Its defalt value istrue
. The example below shows how to set theverticalWords
settings tofalse
.
1 |
|