GithubHelp home page GithubHelp logo

doytsujin / ganttr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdarby/ganttr

0.0 1.0 0.0 163 KB

A pure Javascript Gantt chart generator, drop in, point, render.

Home Page: http://matt-darby.com

Ruby 1.08% JavaScript 98.92%

ganttr's Introduction

Ganttr

A pure Javascript Gantt chart generator, drop in, point, render.

What it does

Generates a Gantt Chart using the Raphael JS framework and a lil’ jQuery.

Requirements

How to Install

Clone this sample app and copy everything in /public into your into your webroot (or /public/javascripts if you’re in Rails).
Add references to the files in your layout template.

How to Use

Ganttr uses data from a simple JSON request to design the chart. The JSON should be in the format of:

  {:boxes => [
      {:start_date => "Nov 3, 2009", :end_date => "Nov 12, 2009", :label => "ASDF", :resource => "MD"},
      {:start_date => "Nov 5, 2009", :end_date => "Nov 17, 2009", :label => "Working?", :resource => "GM"},
      {:start_date => "Nov 15, 2009", :end_date => "Nov 23, 2009", :label => "Whoa...", :resource => "TM"}
    ],
    :arrows => [
      {:from => 0, :to => [1,2]},
      {:from => 1, :to => 2}
    ]}.to_json

A handful of configuration options can be changed at the top of ganttr.js to suit your needs.

To load the chart just call loadChart(); from a click event, page load, whatever.

Sample App

A live version of this sample app is available here

About the Author

My name is Matt Darby. I’m an IT Manager and Lead Dev at for Dynamix Engineering and hold a Master’s Degree in Computer Science from Franklin University in sunny Columbus, OH.

Feel free to check out my site or recommend me

ganttr's People

Contributors

mdarby 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.