Hi,

Thanks for this work. Seems interesting. I'm just playing with the demos. The contextual menu for making operations on the visualization, particularly the "Interactions..." submenu (I don't know it this can be more prominent, like the "+Edge", "+Group" and other top menus).

I loaded it from my current Roassal installation and at the beginning I got "Instance of RTLabeled class did not understand #hasLabel:" while trying to run your suggested examples. After upgrading Roassal everything worked, but I wonder if plugins and its example should have some requirements about minimal version of Roassal.

Cheers,

Offray


On 09/06/17 03:13, Alexandre Bergel wrote:
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



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