TagCloud size problem

后端 未结 3 2057
傲寒
傲寒 2021-01-28 23:47

I am using code to display a tag cloud based on percentage values. The first time a tag is added to my db, it appears large, and then shrinks relative to other tags (the more ti

3条回答
  •  别那么骄傲
    2021-01-29 00:16

    Why don't you take this:

    weight = (((double)tagGroup.Count() / maxTagFrequencyNegative * 100) - 100) * -1
    

    That way you take the largest numbers and reverse them.

提交回复
热议问题