How to add category colors to popup headers
Do you want your popup header to match the series' color? Read how to achieve this below!
#
as well. You can find the exact shade by clicking on
Edit color palette under the
Color settings in the editor. You can read more about Flourish color palettes
here.
- The
background-color: {{Color}}
is the background color of your header, which will adopt the color you have specified in your Color column. If your column is named differently, you can replace {{Color}} with your alternative column name, but it needs to be an exact match. - The
color: #FFFFFF
refers to your font color. - The
width: 97%
determines the length of the colored background. Depending on the maximum height of your popup, you may have to increase the width to 100% instead. - The
padding-top, padding-bottom
andpadding-left
increase the size of the background color. Depending on your personal preferences, you can reduce or increase these, as well as add apadding-right
element. - Last but not least, the
{{Country}}
determines what is your header displaying. You can replace this with any column name from your data, as long as it is bound to a setting (such as Size, Value or Info for popups).
background-color: {{Color}}
bit. Instead, you will need to replace the default font color with
{{Color}}
.