Word cloud visualizations can be used to highlight popular values or show the frequency of text data using font size and color. In a word cloud chart, more prominent values are displayed with a larger font size than the less prominent values. Color-coding can also be used to help represent the prominence of values, as described in the Style menu options section below.
The word cloud chart below shows the popularity of clothing categories based on the amount of clothing sold in each category, using the Category dimension and the Order Count measure from the Order Items Explore:
In this example, the Fashion Hoodies & Sweatshirts category is the most popular value, so it is assigned the first color in the palette and is displayed with a larger font size than the other values in the chart. Likewise, the Shorts and Active categories are the second and third most popular categories, so they take on the second and third colors in the palette and are also displayed with larger font sizes than the less popular values.
To create a word cloud visualization, click the ellipsis (…) in the Visualization bar and choose Word Cloud. Then you can use the visualization options for editing word cloud charts, as described on this page. The visualization option menu can be accessed by clicking the gear in the upper right corner of the visualization tab.
Word cloud charts require exactly one dimension and one measure. More dimensions or measures will prevent the visualization from rendering.
Style menu options
You can define the color palette for a chart in the Color Configuration section.
Choose a color collection from the Collection drop-down menu. A collection allows you to create themed visualizations and dashboards that look good together. You can see all the palettes in each of Looker's built-in color collections on the Color collections documentation page. Your Looker admin may also create a custom color collection for your organization.
Once you select the color collection, the Palette section will update with a palette from that collection.
Once you've selected a color collection, you can choose a different palette from the collection, or customize your palette, by clicking the color palette itself. This opens the palette picker and displays all the palettes from the collection.
Colors are assigned to each series in order. For a categorical palette, the first color in the palette is assigned to the first series, and so on. For a sequential or diverging palette, the color at the left end of the palette is assigned to the first series and the colors for each remaining series move to the right on the palette. If your query returns more data series than colors listed, the colors repeat from the beginning of the palette, first as a lighter version of each color, then as a darker version of each color.
Creating a custom color palette
To create a custom color palette, first select the Custom tab on the palette picker. You can edit your palette in several ways:
- Click on one of the colors present to edit it.
- Click the + or - buttons below the color palette to add a color to the end of the palette or remove a selected color.
- Click EDIT ALL at the bottom right of the menu to use a comma-separated list of color values.
To change a selected color, or edit all colors at once, you can input hex strings, such as
#2ca6cd, or CSS color names, such as
mediumblue, into the color value box at the bottom of the picker.
You can also click the color wheel to the right of the color value box to bring up a color picker, which can be used to select a color. The corresponding hex value for that color appears in the color value box:
If you click EDIT ALL, you'll see that the color value box is populated with the hex codes of the color palette you've chosen or customized. Copying and pasting this list is the best way to copy custom color palettes from one chart to another.
Select Reverse colors to reverse the palette. For a categorical palette, this would apply the last color in the palette to the first series, the second-to-last color in the palette to the second series, and so on. For a sequential or diverging palette, this would apply the color at the right end of the palette to the first series and move left on the palette for the remaining series.
By default, the words in a word cloud visualization are displayed both horizontally and vertically (see the image in the Overview section above for an example). You can display all text horizontally by disabling the Rotate Text option in the Style menu for the visualization. Here’s an example word cloud visualization where the Rotate Text option is disabled so that all words are displayed horizontally only: