GithubHelp home page GithubHelp logo

imclab / commits-graph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tclh123/commits-graph

0.0 2.0 0.0 355 KB

Git commits graph widget using HTML5/Canvas.

Home Page: http://oct.tclh123.com/commits-graph/

JavaScript 80.61% Python 19.39%

commits-graph's Introduction

commits-graph

A git commits graph widget using HTML5/Canvas. Provide a jQuery plugin which make it easy to use.

inspired by bitbucket

Demo

  1. Here is a pure HTML5+JS version, which hosted by github pages.

  2. Demo is a python version, which shows how I get preformatted data.

    To run it, you should install libgit2 first, and then install all python dependencies through pip install -r demo/requirements.txt. Finally, you can ./tools/run_demo.sh.

    Try visit,

Options

All of the options have defaults and are not required for execution of the script. (See demo/ for example)

  • height|width: 600 - Input the desired height|width of the canvas in pixels.
  • orientation: "horizontal"|"vertical" - Allows the user to plot the graph either horizontally or vertically.
  • x_step|y_step: 20 - Select the step sizes of the graph, i.e. how many pixels between branches and commits.
  • dotRadius: 3 - Specify the radius in pixels of the commit dots.
  • lineWidth: 2 - Specify the width of the lines in pixels.

FAQ

  1. How do you get preformatted data to draw this graph?

    see git/ & demo/.

Preview

License

http://tclh123.mit-license.org/

commits-graph's People

Contributors

tclh123 avatar

Watchers

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