简体   繁体   中英

Generating Tag cloud in Spring MVC

I am trying to generate a tag cloud using spring mvc.. i am trying to increase the font size of the tag based on the count.. can anyone give the step by step algorithm in order to automatically increase the font size based on counts..? or is there any efficient way to do this ?..

First count the font size for each element. Then just pass a map to your template (or other collection). Collection should have the item and font size. In your template just render item and pass the font size from it to the style argument in html

Thats basicly everything you need

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM