From: Ricardo Wurmus <rekado@elephly.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: d3js chord diagrams
Date: Tue, 25 Oct 2016 15:37:01 +0200 [thread overview]
Message-ID: <87k2cwh7nm.fsf@elephly.net> (raw)
In-Reply-To: <878ttc7fr1.fsf@gnu.org>
Ludovic Courtès <ludo@gnu.org> 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
next prev parent reply other threads:[~2016-10-25 13:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-21 22:09 d3js chord diagrams Ricardo Wurmus
2016-10-22 10:37 ` Alex Sassmannshausen
2016-10-22 17:42 ` Pjotr Prins
2016-10-25 9:01 ` Ludovic Courtès
2016-10-25 10:46 ` Ricardo Wurmus
2016-10-25 12:52 ` Ludovic Courtès
2016-10-25 13:37 ` Ricardo Wurmus [this message]
2016-10-25 16:29 ` Ludovic Courtès
2016-12-11 11:37 ` Ludovic Courtès
2016-12-11 15:24 ` Ricardo Wurmus
2016-12-11 19:51 ` Ricardo Wurmus
2016-12-11 22:59 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2cwh7nm.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.