• Stars
    star
    237
  • Rank 169,885 (Top 4 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 14 years ago
  • Updated about 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A data-driven visualization toolkit

Unveil.js

Unveil is a data exploration and visualization toolkit that utilizes data-driven software design.

Documentation is under construction but already available.

Features:

  • Data Abstractions
    • Collection (for simple collections of similar data items)
    • DataGraph (for linked data)
  • Scene API
    • SceneGraph implementation
    • Declarative syntax
    • Custom Actors (graphical objects)
    • Dynamic Actor Properties (you can assign functions instead of values)
    • Motion Tweening
    • Commands (e.g. save cpu cycles using event-based framerate determination)
    • Multiple Displays (the scene can be projected to one or more canvas elements)
    • Adjustable drawing order through Graph Traversers Choose from DepthFirst or BreadthFirst or implement your own Traverser
    • Mouse interaction support on Display level (picking, zooming, paning)

Getting started

Probably the easiest way to get started with Unveil.js is to install the Dejavis sandbox, and let it generate an example visualization, which you can use as a starting point.

Examples

New declarative Syntax

I took some inspiration from Scene.js's Scene Definition Format to give the whole thing an even more declarative feel.

Actors as well as the whole Scene can now be specified declaratively using a simple Specification Syntax.

var scene = new uv.Scene({
  actors: [
    {
      id: 'moving_rect',
      type: "rect",
      x: 50,
      y: 70,
      width: 200,
      height: 150,
      actors: [
        {
          type: "label",
          text: "I'm moving"
        }
      ]
    },
    {
      id: 'animated_circle',
      type: "circle",
      x: 50,
      y: 70,
      radius: 50,
      height: 150
    }
  ]
});

After you you've set up your Scene, you need to specify at least one display:

var display = scene.display({
  container: 'canvas',
  width: 500,
  height: 320,
  zooming: true,
  paning: true
});

You can attach actors to displays as well. Those objects are typically unaffected by view transformations, so they stick on their original display position. Display objects are meant as an overlay to be drawn after the scene objects.

display.add({
  {
    type: 'label',
    text: function() { return 'Frames per second: '+ this.scene.fps }
    x: 300,
    y: 20
  }
});

Since all actors have a unique id you can reference them programmatically and add special behavior (e.g. animation).

scene.get('moving_rect').bind('mouseover', function() {
  this.animate('x', 100, 2000, 'bounceEaseInOut');
  this.animate('y', 200, 2000);
});

scene.get('moving_rect').bind('click', function() {
  this.animate('rotation', Math.PI/2, 2000);
});

scene.get('animated_circle').bind('click', function() {
  this.animate('radius', 70, 2000);
});

Supported Browsers

  • Google Chrome 5+
  • Safari 4+
  • Firefox 3.5+
  • Internet Explorer 9+
  • Opera 10+

Roadmap

Unveil.js 0.1

  • Display actors (actors that stick on on a display rather than on the scene)
  • Add an API to get the top most active actor in case there is more than one object under the cursor.
  • API Docs

Unveil.js Stars

There should be a dedicated place for commonly used custom actors (stars). I could imagine putting them in a Github repo, ready for reuse, contributions, etc. Eventually, an online index for finding the right star for a certain job would also be nice.

More Repositories

1

editable-website

A SvelteKit template for building CMS-free editable websites
Svelte
1,410
star
2

multiselect

jQuery UI Multiselect Widget
JavaScript
557
star
3

dance

Don't be shy - take your data for a dance.
JavaScript
263
star
4

ken-rb

A Ruby API for accessing Freebase. It wraps the Metaweb Architecture to smart Ruby Objects.
Ruby
135
star
5

askken

Visual Knowledge Browser
JavaScript
116
star
6

donut

Radial Navigator built with Processing.js
JavaScript
73
star
7

dejavis

Visual Analytics for the Browser
JavaScript
49
star
8

tween

Motion Tweening for Processing.js
JavaScript
37
star
9

dejavis-sandbox

A sandbox for pluggable data visualizations
JavaScript
34
star
10

ken-browser

Visual Knowledge Browser
JavaScript
32
star
11

reader

A stand-alone reader for Substance Documents (can be used as a blog)
JavaScript
27
star
12

multiple_select

MooTools based multiple select widget
JavaScript
14
star
13

master_thesis

Web-based Information Visualization
Shell
11
star
14

stacks

Visualizing groups of items as self-organizing stacks
JavaScript
11
star
15

chart

A simple charting library that strictly separates data from graphical representation
JavaScript
10
star
16

bullets

Unveil.js graphics demo
JavaScript
10
star
17

svelte-postgres-demo

Sveltekit and Postgres
Svelte
9
star
18

scatterplot

An interactive, animated Scatterplot for the Dejavis sandbox
JavaScript
9
star
19

talk

Let's talk data. In realtime.
JavaScript
8
star
20

linechart

Interactive, animated Linechart, built with Unveil.js
JavaScript
8
star
21

envision

A Collection Browser and Visualizer
JavaScript
7
star
22

collection

A Ruby API for the Unveil.js Collection interface
Ruby
7
star
23

data_table

In memory representation and manipulation of tabular data. Useful for powering all kinds of charts and exports.
Ruby
7
star
24

matrix

Matrix Plot
JavaScript
7
star
25

hub

Substance Hub
JavaScript
6
star
26

collectionize

A little service that translates selected web services to a uniform collection format, which is used by the Envision browser
Ruby
5
star
27

documents-legacy

My writings (written in Prose.io)
4
star
28

library

A home for Substance documents. Think of it as a database for digital documents.
JavaScript
4
star
29

ndogen-client

On-the-fly documentation generation powered by ndogen
JavaScript
4
star
30

dm-is-persistent_state_machine

A Persistent State Machine for DataMapper
Ruby
4
star
31

documents

My Reproducible Documents
4
star
32

substance

Copy of Substance for legacy purposes.
JavaScript
3
star
33

transformer

Turn your ruby objects into a html representation using transformers
Ruby
3
star
34

michael.github.com

Everyone needs a website. This one is not yet ready.
3
star
35

mypubs

2
star
36

map

Substance Map Node Type
JavaScript
2
star
37

substance-editor-legacy

Substance Editor
JavaScript
2
star
38

nextjs-auth-mongo

JavaScript
1
star
39

pferdeerlebnis

Fam Grasböck Webpage
HTML
1
star
40

svelte-kit-demo

Svelte
1
star
41

svelte

Svelte
1
star
42

svelte-demo

Svelte Demo
Svelte
1
star
43

runes-block-editor

Playing with Svelte 5
Svelte
1
star
44

react-es6

React ES6 Playground
JavaScript
1
star
45

publications

1
star
46

testdocs

1
star
47

xyz-api

Svelte
1
star
48

nextjs-prisma

TypeScript
1
star
49

xyz-frontend

Svelte
1
star