On Friday, August 7, 2020 at 8:37:37 AM UTC-7, Teo Piitulainen wrote: > > Thank you, that solved it! >
YAY! > (The cloud view was actually quite unusable with some of my categories > containing >100 entries and their counts ranging from 1 to triple digits > :-) ) > In TiddlyTools/FilterGenerators/TagCloud, the tag-pill-styles() macro includes this line: font-size:calc(0.5em + (0.2em * ($(count)$ / 5) ) ); The first number (0.5em) is the smallest font size to use. The second number (0.2em) is the font size increment. The third number (5) is the tag count for each group. For the default values above: The smallest tag group will use 0.5em font size, increasing to 0.7em if there are 5 or more tagged items, increasing to 0.9em if there are 10 or more tagged items, increasing to 1.1em if there are 15 or more tagged items, etc. If you have a wide range of tag counts, you can adjust the tag pill scaling calculation so the font size of the most frequent tags doesn't get too big. In particular, if you make the tag count larger (e.g. by changing "5" to "25"), this will keep the scaling from increasing too much. You could also make the font size increment smaller (e.g. by changing 0.2em to 0.1em). font-size:calc(0.5em + (0.1em * ($(count)$ / 25) ) ); I was further wondering if the subfilter could be an even stricter filter, > e.g. do the count only for "books", "papers", or an intersection like > "English" + "books"? > This way, such tables could show the count distribution of any tag category > (e.g. "topics") within any intersection of categories. > * Of course, clicking on the tag pill would still pop-up-list all the > Tiddlers with that tag, even if the subfiltered count were more restricted. Try these subfilters (one at a time, of course!): \define sub() [tagging[]tag[books]count[]] \define sub() [tagging[]tag[papers]count[]] \define sub() [tagging[]tag[English]tag[books]count[]] You might even be able to do "OR" combinations like this: \define sub() [tagging[]tag[English]tag[books]] [tagging[]tag[French]tag[ books]] +[count[]] Let me know how it goes... enjoy, -e > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/30d5d723-25da-49c5-8104-1acfa8ef1e52o%40googlegroups.com.

