Skip to content

Commit 15c92fd

Browse files
authored
(DOCSP-30134) Adds more info on how to use word cloud size and color channels (#600)
* (DOCSP-30134) Adds more info on how to use word cloud size and color channels * Includes changes from copy review
1 parent 8c08a0d commit 15c92fd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

source/chart-type-reference/word-cloud.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,41 @@ Word clouds provide the following :ref:`encoding channels
5252
the size of each :guilabel:`Text` value, with larger aggregated
5353
values resulting in larger text sizes.
5454

55+
.. example::
56+
57+
If you set the :guilabel:`Text` and :guilabel:`Size`
58+
channels to the ``genres`` field from the
59+
``Sample Data: Movies`` collection,
60+
|charts-short| creates a word cloud where the most frequently
61+
occurring genres are largest.
62+
63+
If you set the :guilabel:`Text` channel to the ``genres``
64+
field and the :guilabel:`Size` channel to the ``runtime``
65+
field, |charts-short| creates a word cloud where the genres
66+
with the longest aggregate runtimes are largest.
67+
68+
5569
* - Color
5670
- Category
5771
- (*Optional*) Colors each text value to indicate a corresponding
5872
data value from the applied field.
5973

74+
.. example::
75+
76+
If you set the :guilabel:`Text`, :guilabel:`Size`, and :guilabel:`Color` channels to the ``genres`` field from the
77+
``Sample Data: Movies`` collection, |charts-short| creates a
78+
word cloud where the most frequently occurring genres are
79+
largest and each genre is a different color.
80+
81+
If you set the :guilabel:`Text` and :guilabel:`Size`
82+
channels to the ``genres`` field and you set the
83+
:guilabel:`Color` channel to the ``rated`` field,
84+
|charts-short| creates a word cloud where
85+
the most frequently occurring genre and rating combinations
86+
are largest. Each genre and rating combination is a different
87+
color, so the green text value for dramas rated R displays
88+
larger than the blue text value for dramas rated G.
89+
6090
Use Cases
6191
---------
6292

0 commit comments

Comments
 (0)