Is there documentation for Moose DSMMatrix visualization?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there documentation for Moose DSMMatrix visualization?

MartinW
I started to play with Moose DSMMatrix visualization.

I tried to do something like "This matrix diagram visualizes character co-occurrences in Victor Hugo’s Les Misérables." by Mike Bostock: Les Misérables Co-occurrence

I got to this in some minutes:
| rawData parsedData nodes rawLinks links dsmMatrix view |

rawData := ZnClient new get: 'https://raw.github.com/mbostock/bost.ocks.org/gh-pages/mike/miserables/miserables.json'.
parsedData := NeoJSONReader fromString: rawData.
nodes := (parsedData at: #nodes) collect: [ :node | node at: #name].
rawLinks := (parsedData at: #links).
links := rawLinks collect: [ :link | Array with: (nodes at: (link at: #source) + 1) with: (nodes at: (link at: #target) + 1) ].

view := ROMondrianViewBuilder new.
dsmMatrix := DSMMatrix withNodes: nodes edges: links from: #first to: #second.
SimpleDSM new open: dsmMatrix on: view.
view open.



But now i am looking for documentation (labelling, coloring, etc. ) or other examples. Are there any?
Reply | Threaded
Open this post in threaded view
|

Re: Is there documentation for Moose DSMMatrix visualization?

jannik laval
Hi Martin,

You can find documentation in the following locations:

I can answer if you have more questions.

Cheers,
Jannik


On Aug 15, 2013, at 3:41 PM, MartinW <[hidden email]> wrote:

I started to play with Moose DSMMatrix visualization.

I tried to do something like "This matrix diagram visualizes character
co-occurrences in Victor Hugo’s Les Misérables." by Mike Bostock:  Les
Misérables Co-occurrence <http://bost.ocks.org/mike/miserables/>  

I got to this in some minutes:


<http://forum.world.st/file/n4703749/LesMiserables.png>

But now i am looking for documentation (labelling, coloring, etc. ) or other
examples. Are there any?



--
View this message in context: http://forum.world.st/Is-there-documentation-for-Moose-DSMMatrix-visualization-tp4703749.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.