Git Product home page Git Product logo

compass's Introduction

(Vis)Compass: Visualization Recommender.

Build Status npm dependencies npm version

(Vis)Compass is a module for generating and ranking visualizations. Given user query, Compass produces ranked group of visualization described using Vega-Lite.

Compass is NO LONGER in an active development. Please use https://github.com/vega/compassql

Development Guide

Dependencies

This project depends on Vega-Lite as a formal model for visualization.

If you plan to make changes to these dependencies and observe the changes without publishing / copying compiled libraries all the time, use bower link and 'npm link'.

cd path/to/vega-lite
bower link
npm link

In the directory for compass, run

# optional: npm link datalib
npm link vega-lite
bower link vega-lite

Compiling

You can run npm run build to compile Vega-Lite.

You can npm run watch to start a watcher task that automatically re-compiles and tests Compass when any .js file in test/ or src/ changes.

Note: These commands use Gulp internally; Therefore, you need to install gulp globally with

npm install -g gulp

to make them work.

compass's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

compass's Issues

Optimize Performance

Asking for “major_genre”, “imdb_votes”, “production_budget” takes 6 sec

(maybe due to the fact that some visualizations are being rendered too.)

Line Chart Basic

  • Support Year only

** Advance **

  • Support Multi Level Expansion (Year -> Month -> Day)

A case for OxOxQ

Effect__Amount_of_damage (O)
When__Phase_of_flight (O)
avg Cost__Total_$ (Q)

is

bar.y-Effect__Amount_of_damage-O.color-When__Phase_of_flight-O.x-avg_Cost__Total_$-Q

visrec_demo

worse than

visrec_demo

point.x-Effect__Amount_of_damage-O.y-When__Phase_of_flight-O.size-avg_Cost__Total_$-Q

Restricts Transformations when multiple Qs are presented.

Specifically, only apply bins to all of them, or aggregation to all of them or do nothing (raw).

Currently if we have *(Q1) and *(Q2) selected, we get all the following

  • Q1 x Q2
  • AVG(Q1) x AVG(Q2)
  • BIN(Q1) x BIN(Q2)
  • AVG(Q1) x BIN(Q2)
  • BIN(Q1) x AVG(Q2)
  • We shouldn’t include the latter two unless the user explicitly specifies that they want BIN.
  • for BIN(Q1) x BIN(Q2), we should automatically add count to the table (so we get heat map or table of circular sizes..)

Question:

  • What should we do if users specify MIN(Q1), *(Q2)?

should we generate BIN and MIN or BIN and AVG for Q2

Small Multiple Support

  • 1 layer faceting ( x – cross )
  • 1 layer faceting ( + – concat )
  • multi-layer faceting
  • labels

Map Basic

  • Start by prototyping symbol map of USA (by states) separately

Systematically Evaluate Ranking for Pruned Set

Generate some tables like:

univariate

  • Q
  • T
  • O —> becomes OxT

bivariate

  • QxQ
  • QxT
  • QxOs
  • QxOb
  • Qx#
  • TxOs
  • TxOb
  • Tx#
  • OxO —> becomes OxOx#
  • Ox#

trivariate

  • Q x Q x Q
  • Q x Q x T
  • Q x Q x Os
  • Q x Q x Ob
  • Q x Q x #
  • Q x T x Os
  • Q x T x Ob
  • Q x T x #
  • Q x Os x Os
  • Q x Os x Ob
  • Q x Ob x Ob
  • Q x Os x #
  • Q x Ob x #
  • T x Os x Os
  • T x Os x Ob
  • T x Ob x Ob
  • T x Os x #
  • T x Ob x #
  • Os x Os x #
  • Ob x Os x #
  • Ob x Ob x #

Note: Ob = high cardinality ordinal, Os = low cardinality ordinal

(We can further improve ranking with the non-pruned set after the deadline)

Histogram Basic

  • chart support — given an array of binned data e.g., [1,1,1,1,1,1,2,2,2,2,3,3,3,4,4,5,5,5,5,5,5,5] count unique values and plot histogram. (Zening)
  • Extend Datavore to call binning — see vizrec code (Ham)

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.