Hi Manfred,

The parallel coordinates is indeed easy to obtain in Roassal.


Here is a short example:
-=-=-=-=-=-=-=-=-=-=-=-=
"Configuration"
maxValue := 40.
spaceBetweenLine := 50.
lineHeight := 250.
numberOfColumns := 10.
numberOfLines := 200.

"Script"
values := OrderedCollection new.
numberOfLines timesRepeat: [ 
t := OrderedCollection new.
numberOfColumns timesRepeat: [ t add: maxValue atRandom ].
values add: t.
].

v := RTView new.
setOfElements := OrderedCollection new.
1 to: numberOfColumns do: [ :i |
t := OrderedCollection new.
values do: [ :setOfValues |
e := (RTEllipse new color: (Color red alpha: 0.3)) element.
t add: e.
e translateTo: 
(i * (spaceBetweenLine - 1)) @ 
((setOfValues at: i) * lineHeight / maxValue) asFloat.
v add: e.
].
setOfElements add: t.
].

2 to: numberOfColumns do: [ :column |
t := OrderedCollection new.
values doWithIndex: [ :setOfValues :index |
line := (RTLine new color: (Color red alpha: 0.2)) 
edgeFrom: ((setOfElements at: (column - 1)) at: index) to: ((setOfElements at: column) at: index).
v add: line.
].
].
v
-=-=-=-=-=-=-=-=-=-=-=-=

Best would be to define a new builder to allow for easy configuration. It would be easy to add colors

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



On May 4, 2015, at 5:38 AM, Manfred Kröhnert <mkroehnert42@googlemail.com> wrote:

Hi everyone,

some time ago I saw a diagram consisting of two columns of words and lines showing associations between the words in both columns.
It looked similar to the "parallel coordinates" diagram from this link: http://homes.cs.washington.edu/~jheer/files/zoo/ but with only two columns.

Now, I am not sure if I saw this in an email on a Pharo or Moose list and wanted to ask if it is already possible to create such diagrams with Roassal.

Thank you very much,
Manfred
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev