guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: d3js chord diagrams


From: Ricardo Wurmus
Subject: Re: d3js chord diagrams
Date: Tue, 25 Oct 2016 15:38:23 +0200
User-agent: mu4e 0.9.16; emacs 25.1.1

Ludovic Courtès <address@hidden> writes:

>> So, lots of things that a dedicated hacker could implement :)
>
> Is it a lot of work with d3 to switch to these other representations?

Each visualisation would probably require its own script (about as long
as graph.js for the chord diagram) because the data may need to be
prepared and mapped to SVG nodes differently.  Switching within the same
HTML document doesn’t make much sense because almost none of the SVG
elements can be reused.

The data structure I’m building up with the emit-* procedures should be
reusable, though.  (This isn’t very pretty because I’m emitting code to
produce the data structure; it’s not a simple JSON description of the
graph.)

>> Does this mean that the generated HTML document would have to be a gexp
>> referencing the file in the store?  (I’m not sure how to implement
>> this, but with a pointer or two I could give it a try anyway.)
>
> Yes, the HTML document would be generated in the store, […]

Hmm, so each time I run “guix graph” the resulting HTML document ends up
in the store.  I was hoping to avoid this, actually, but since the HTML
file is pretty small (when d3.js is not embedded) I guess it’s fine.

~~ Ricardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]