0.1.2 • Published 10 years ago

react-commit-calendar v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

React Commit Calendar

To Check out


Just Github commit calendar clone. See Demo

To Start


npm install react-commit-calendar --save

To Use


import CommitCalendar from 'react-commit-calendar';

ReactDOM.render(
  <CommitCalendar
    dataset={dataset}
  />
, mountNode);

dataset format

var dataset = {
  '2016-03-18': {
    count: 4,
    sources: [
      { uri: 'https://gorupystinks.com', count: 2, name: 'groupystinks.com' },
      { uri: 'https://github.com/groupystinks', count: 2, name: 'github' }
    ]
  },
  '2016-03-19': {
    count: 60,
    sources: [
      { uri: 'https://twitter.com/groupystinks', count: 20, name: 'twitter' },
      { uri: 'https://gorupystinks.com', count: 30, name: 'groupystinks.com' },
      { uri: 'https://github.com/groupystinks', count: 10, name: 'github' }
    ]
  }
};

Configurable Config


  • dataset: PropTypes.object.isRequired,
  • colors: PropTypes.array,

    colors = ['#ffff00', '#e5e500', '#cccc00', '#b2b200']

    Colors provided as above will be render as 5 levels (including '#eee') color scale to represent contribution's intensity.

  • marginBottom: PropTypes.number,

  • marginLeft: PropTypes.number,
  • marginRight: PropTypes.number,
  • marginTop: PropTypes.number,

  • width: PropTypes.number,

  • height: PropTypes.number,

  • unit: PropTypes.string,

To Develop


fork it

npm install
npm run dev
0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago