Hi! 

Simply using Mondrian is complicated to do this (Mondrian is not made to produce interactive & dynamic visualizations).

Instead, it would be great that you could try DataStudio, which is exactly designed for this kind of situations.

You can load DataStudio by using a dedicated plugin:

You can try some examples:

| c |
c := CAArtwork new.
c doAction: (CAAddElementAction new argument: (1 to: 7)).
c doAction: (CAAddEdgeAction new argument: [ :e | e + 1 ]).
c doAction: (CASwitchLabelAction new).
c doAction: (CAShapeSizeAction new argument: 30).
c doAction: (CAGridLayoutAction new).
^ c view

Here another example:

| c |
c := CAArtwork new.
c doAction: (CAAddElementAction new argument: (Collection withAllSubclasses)).
c doAction: (CAAddEdgeAction new argument: #subclasses).
c doAction: (CAShapeHeightAction new argument: [ :cls | cls numberOfMethods max: 5 ]).
c doAction: (CAShapeWidthAction new argument: [ :cls | cls numberOfVariables * 5 max: 5 ]).
c doAction: (CAShapeNormalizedColorAction new argument: [ :cls | cls numberOfLinesOfCode ]).
c doAction: (CATreeLayoutAction new).

c doAction: (CAAddGroupAction new argument: [ :cls | '*Array*' match: cls name ]).
c doAction: (CASwitchLabelAction new).
^ c view

You will end-up with something like:

Let me know how it goes...

Cheers,
Alexandre


On Jun 7, 2017, at 9:52 AM, Blondeau Vincent <vincent.blondeau@worldline.com> wrote:

Hi,

You should ask in the Moose list ;)

Vincent

-----Message d'origine-----
De : Alidra Abdelghani [mailto:alidrandco@yahoo.fr]
Envoy�� : mercredi 7 juin 2017 15:34
�� : pharo-users@lists.pharo.org
Objet : dynamic interaction with Mondriam

Hi all,

I would like to do some visualisations with Mondrian where you change the
visualisation by selecting actions. For instance you have :
b := RTMondrian new.
b shape rectangle withTextAbove.
b nodes:(1 to: 5).
b layout grid.
b edges connectFrom: [ :e | e + 1 ].
b build.
b view

then you can click a button to:
1  display/hide the labels above the elements.
2 display/hide some elements (all odd numbers for instance)
3 display/hide connections between elements.
I saw a visualisation in the Roassal examples where you can add elements in a
dynamic stack grapher. So I presume it is possible to do the same with other
types of visus.

Any hints?
Thanks in advance.
Abdelghani

!!!*************************************************************************************
"Ce message et les pi��ces jointes sont confidentiels et r��serv��s �� l'usage exclusif de ses destinataires. Il peut ��galement ��tre prot��g�� par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm��diatement l'exp��diteur et de le d��truire. L'int��grit�� du message ne pouvant ��tre assur��e sur Internet, la responsabilit�� de Worldline ne pourra ��tre recherch��e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp��diteur ne donne aucune garantie �� cet ��gard et sa responsabilit�� ne saurait ��tre recherch��e pour tout dommage r��sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Worldline liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.!!!"
_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev