Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dangom/d3-timeseries
- Owner: dangom
- Created: 2018-10-24T21:24:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T14:18:16.000Z (about 6 years ago)
- Last Synced: 2023-10-05T20:31:17.167Z (about 1 year ago)
- Language: JavaScript
- Size: 1.81 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
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