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-occurrenceI 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?