Hi,

Nice. However, the way the legend is presented is too intrusive. If you look at the picture, the first thing that draws your attention is the legend, not the data.

I would prefer to have the legend available only on demand, rather than always. We could introduce a symbol (e.g., ?) that is always available on the top right or bottom right and that can toggle the legend on or off (or only offer it when we hover over the symbol). What do you think?

Cheers,
Doru



On Fri, Jul 10, 2015 at 1:59 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Hi!

Today Usman and I have pair-programmed. We improved the legend builder. 
Here is an example

Check this out:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
b := RTMondrian new.
b shape rectangle
width: [ :c | c numberOfVariables * 5 ];
height: #numberOfMethods.
b nodes: RTShape withAllSubclasses.
b edges connectFrom: #superclass.
b layout tree.
b normalizer
normalizeColor: #numberOfLinesOfCode using: { Color black. Color red }.
b build.

lb := RTLegendBuilder new.
lb view: b view.

lb addText: 'System complexity view'.
lb addRectanglePolymetricWidth: 'number of methods' height: 'Line of code' box: 'a Pharo class'.

lb addColorFadingFrom: Color red to: Color black text: 'Number of lines of code'.
lb build.

b
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--
www.tudorgirba.com

"Every thing has its own flow"