GithubHelp home page GithubHelp logo

d3.data_grid's Introduction

d3.data_grid

Quickly browse and filter csv files from a web front-end. Built on D3.js

How?

Prereq: d3.js is included on your page.

Include d3.data_grid.js or d3.data_grid.min.js.

Create a new data_grid object, passing in the id of where it should be placed:

var data_grid = new data_grid.DataGrid("data_grid", options);

Use the d3.js functionality to load a csv, tsv, or json file:

d3.csv(options.filename, data_loaded);

In your data_loaded, call the show method of your data_grid:

data_grid.show(data);

Demo?

If you have python installed, simply start up the built-in server:

python -m SimpleHTTPServer 8888

and navigate to localhost:8888/demo

Why?

The Problem : We wanted to provide a quick look at large sets of data and allow for filtering and quick understanding. Essentially, we wanted a super basic version of Excel that ran in the browser.

We wanted to be able to throw in a csv or tsv file and have it rendered nicely.

We didn’t want to have to specify what type of data each column contained.

We wanted it to be fast.

We didn’t want any backend.

The Solution : Existing javascript solutions I looked at either required a html table to work on, or required explicit information about the data being displayed.

d3.data_grid is fast, as it uses pagination (currently very basic) instead of attempting to display the entire dataset at one time. However, filtering works on the entire dataset – so you are not limited by only seeing part of your data.

d3.data_grid is built on d3.js – which allows for interesting and informative visualizations of your rows and columns (currently very basic).

d3.data_grid works with data parsed by d3. So it can work on csv or json files with no problems. Using d3.tsv , you can also easily parse tsv files.

d3.data_grid uses the same filtering code as the picnet table filter , but doesn’t rely on jquery, or closure. Picnet Table filter is a great solution for this kind of problem. I completely recommend using it if you want a mature and stable form of this kind of filtering that works on html tables, or uses a back-end.

d3.data_grid's People

Contributors

vlandham avatar

Watchers

 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.