Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dangom/d3-timeseries

Hackish plot of timeseries with a pulsar-like look
https://github.com/dangom/d3-timeseries

Last synced: about 1 month ago
JSON representation

Hackish plot of timeseries with a pulsar-like look

Awesome Lists containing this project

README

        

#+TITLE: D3 (pulsar like) Timeseries

* Installation

Clone the repo and run =npm install=.
The code is pretty much a port to Node.js of [[https://beta.observablehq.com/@mbostock/psr-b1919-21][this Observable notebook.]]
Except I use it to draw timeseries from ICA decompositions as seen in the figure below:

#+ATTR_HTML: :style margin-left: auto; margin-right: auto;
[[./examples/sample.svg]]

* Usage

Usage of this tool is not currently advised, because for now it only supports datasets with N rows x 10 columns, where numbers are separated by 2 spaces (the formatting of FSL Melodic). It should be straightforward to generalize the script to accept other sizes of data, and to generate meaningful x-axis from user inputs.

#+BEGIN_SRC sh
node index.js --input melodic_mix --output melodic_mix.svg
svgexport melodic_mix.svg melodic_mix.png 1.5x
#+END_SRC