Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Unable to get setColorScaleRange to work

2 views
Skip to first unread message

Vivek

unread,
Oct 26, 2009, 2:04:46 PM10/26/09
to juicekit
Hello,

I am trying to use the treemap control to show sales margin data. So
anything below a 0 is hundred. However the dataset has some extreme
values (like -300). These extreme values skew all the other colors
towards green. To eliminate this problem I tried to use -
treemap.setColorScaleRange(0, 100); - hoping that every value below 0
will be mapped to red and every value above green will be mapped to
green and everything in between will follow the spectrum. Somehow this
scale just does not kick in - there is no change to what I see on the
UI.

I tried putting this inside the creationComplete function as well as
at the end of generateData.

Any pointers?

-Vivek

Sal Uryasev

unread,
Oct 26, 2009, 4:09:37 PM10/26/09
to juic...@googlegroups.com
Hey Vivek,

We just recently exposed the Color Encoding functionality for the TreeMap.  It is currently available in our Unstable branch:
git checkout --track -b unstable origin/unstable

If you have the Unstable code, all you need to do is to set the preferredMinColor and preferredMaxColor treemap parameters.

-Sal
--
Sal Uryasev
Juice Analytics
+1 (352) 213 9734

Vivek Subramanian

unread,
Oct 26, 2009, 6:28:53 PM10/26/09
to juic...@googlegroups.com
Thanks Sal.

I'll wait for the next stable build. Any idea when it would be out and do I download from your hudson env or git ?

-Vivek
Reply all
Reply to author
Forward
0 new messages