Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdfekete/reorder.js
JavaScript library to reorder matrices
https://github.com/jdfekete/reorder.js
Last synced: about 1 month ago
JSON representation
JavaScript library to reorder matrices
- Host: GitHub
- URL: https://github.com/jdfekete/reorder.js
- Owner: jdfekete
- License: bsd-3-clause
- Created: 2015-02-12T21:28:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-20T22:28:16.000Z (4 months ago)
- Last Synced: 2024-05-18T01:56:35.298Z (about 2 months ago)
- Language: JavaScript
- Size: 15.5 MB
- Stars: 126
- Watchers: 11
- Forks: 29
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-dataviz-education - Reorder.js
- awesome-stars - jdfekete/reorder.js - JavaScript library to reorder matrices (JavaScript)
README
# Reorder.js
[![Tests](https://github.com/jdfekete/reorder.js/actions/workflows/tests.yml/badge.svg?branch=master&event=push)](https://github.com/jdfekete/reorder.js/actions/workflows/tests.yml)
[Reorder.js](https://github.com/jdfekete/reorder.js/) is a JavaScript library for reordering matrices to visualize them, i.e. either table rows and columns, graphs vertices, or parallel coordinates axes.
Want to learn more? [See the wiki.](https://github.com/jdfekete/reorder.js/wiki)
## Development
To develop Reordering.js, you need to have [Node.js](http://www.nodejs.org)
and [NPM](http://www.npmjs.org) installed. Once you have done that, run the
following from the root directory of this repository to install the development
dependencies:```
npm install
```## Testing
To run the tests in the distribution, use the following command:
```
npm run test
```
## ExamplesTo run the examples, use the following command:
```
npm run dev
```It should open a web browser but if does not, open a web page and connect to: `http://localhost:3004/`.
## References
The library is used by several systems, including [Bertifier](https://www.aviz.fr/bertifier), [The Vistorian](https://vistorian.net/), and [Compadre](https://renecutura.eu/compadre/).
## Thanks
Thanks to [Nathan van Beusekom @nvbeusekom](https://github.com/nvbeusekom) for the addition of the Moran's I metric, the implementation of simultaneous reordering, and TSP.
Thanks to [Curran Kelleher @curran](https://github.com/curran) for adapting the library to modern JavaScript modules.
Thanks to [Philippe Rivière @fil](https://github.com/fil) for porting the "Les Misérables" example to [observablehq](https://observablehq.com/@fil/hello-reorder-js)
Thanks to [Renaud Blanch](http://iihm.imag.fr/blanch/) for giving me his implementation of the 'Optimal Leaf Ordering' algorithm. He has improved it and the distribution is available as [ordering](https://bitbucket.org/rndblnch/ordering).
I originally started this in order to add a reordering module to
[D3.js](http://mbostock.github.com/d3/).The project structure and Makefile is based on that of D3, so a big thank you
goes to [Mike Bostock](http://bost.ocks.org/mike/) for this.