Giter Site home page Giter Site logo

ruse.js's Introduction

ruse.js

ruse.js is a lightweight WebGL library built for plotting large datasets. It is capable of plotting millions of points at once, and smoothly transitioning between plots.

Dependency

ruse.js depends only on gl-matrix for matrix transformations.

Usage

Include gl-matrix and ruse.js into a project using the usual script tags.

<script type="text/javascript" src="gl-matrix.js"></script>
<script type="text/javascript" src="ruse.js"></script>

Set up a new plot by initializing a ruse object using a DOM element and specifying width and height.

var el = document.querySelector("#ruse");
var r = new ruse(el, 600, 400);

Create a plot by passing an array of key-value objects. ruse determines the dimensionality based on the first key-value element in the array, and creates an appropriate plot.

var data = [{x: 349, y: 920}, ..., {x: 192, y: 291}];
r.plot(data);

To disable animation, set the animation property to false:

r.animation = false;

Development Setup

# Get example dependencies and sample data
./setup.sh

# Install development dependencies
npm install

# Start a local server
npm start

Data

Ruse accepts data in the following form:

var arr = [{x: 123, y: 456}, ..., {x: 987, y: 654}]

API

plot(data)

ruse.js's People

Stargazers

David Gotrik avatar Rohan Kar avatar Michael Anthony avatar Jacques Tardie avatar Athan avatar Cyrille Rossant avatar Bill McKessy avatar Ruaridh Thomson avatar Andrew Helsley avatar oyjing avatar Anselm Levskaya avatar Bruno Vieira avatar Mario Alberich avatar Eli Bressert avatar Rob Story avatar

Watchers

Edward Paget avatar Amit Kapadia avatar Michael Young avatar Michael Anthony avatar  avatar Ahmed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.