On Mon, Jan 9, 2012 at 11:24 PM, Julia Lawall
<julia.lawall@lip6.fr> wrote:
On Mon, 9 Jan 2012, Usman Bhatti wrote:
For me, it should work without modification....The following method that you
are using should carry out the desired functionality...
LinearFillColor: #counts within: rules;
Thanks, but I'm not sure to understand. We just got one white box and one black box. Maybe it will look better with more data?
Yes. That is the reason. You can see a gradient of color for nodes with more data.
julia
LinearFillColor: part should take as a parameter the count of a single rule.
The within: part should take an array that contains all the counts of all
your rules in the system...
On Mon, Jan 9, 2012 at 4:50 PM, Julia Lawall <julia.lawall@lip6.fr> wrote:
I got some help from Damien Cassou, and he wrote the following
code:
viewRules: rules
view interaction popupText: [:rule | rule ruleName].
view shape rectangle
linearFillColor: #counts
within: rules;
withoutBorder.
view nodes: rules forEach: [:rule | self viewRule: rule].
view verticalLineLayout.
I would like the colors not to be arbitrary, but to vary
depending on the counts value. For example, for a small value,
I would like a light color and for a large value I would like a
dark color. I could for example normalize the values so that
they are between 0 and 100. Is there an easy way to do this?
thanks,
julia