facet question

8 views
Skip to first unread message

kimeee

unread,
Nov 7, 2009, 10:28:21 PM11/7/09
to SIMILE Widgets
i currently have a cloud facet that holds values for the first letter
of a last name for a sort function...

problem is that my boss doesn't like different font sizes...

i told him that the sizing depends on value count based on a formula
in the js but he doesn't care...

so i have two options...

1. somehow making the cloud facet value font sizes the same
2. creating a list facet but having each value on the same line
rather than a break after each value

if anyone has any help or advice that would be great

kimeee

David Karger

unread,
Nov 7, 2009, 10:43:01 PM11/7/09
to simile-...@googlegroups.com
Kimee, the quick hack fix is to change the one line of javascript that
modifies the font size based on scale. You will find it in the file
cloud_facet.js, the line is
elmt.style.fontSize = Math.ceil(100 + 100 * Math.log(1 + 1.5 *
(entry.count - min) / range)) + "%";
if you replace this with
elmt.style.fontSize = "100%"
you will get what you want.

long term will should scalefactor as an option for the cloud facet
Reply all
Reply to author
Forward
0 new messages