2. Compute the tag cloud

compute_tag_cloud will add a font_size attribute to each element
in my_favourite_tools that is contained between 10 and 100 and is
representative of the value of interest. The last parameter
(lin) asks to use a linear formula to compute this tag cloud.
Another option is to use a logarithmic formula (use the log
parameter). You should test both options, but log will probably give
you better results if there is a large variation in the values you want
to compute. NOTE: 0 and negative values will be computed to 0 (with both formulas).

Notes

compute_tag_cloud can be called multiple times in a row to
generate multiple values. We can for example compute the font size
(between 10 and 55), but also the margin (between 5 and 28) and the
opacity (between 0.7 and 1) of the text with something like: