{"id":18859151,"url":"https://github.com/bachvtuan/github-contribution-graph","last_synced_at":"2025-04-14T12:13:51.700Z","repository":{"id":28100184,"uuid":"31598431","full_name":"bachvtuan/Github-Contribution-Graph","owner":"bachvtuan","description":"Jquery plugin to render like contribution graph on Github.","archived":false,"fork":false,"pushed_at":"2021-06-29T02:34:44.000Z","size":106,"stargazers_count":66,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T12:13:47.320Z","etag":null,"topics":["contribution-graph","jquery-plugin"],"latest_commit_sha":null,"homepage":"http://bachvtuan.github.io/Github-Contribution-Graph/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bachvtuan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-03T12:58:00.000Z","updated_at":"2024-04-17T03:11:49.000Z","dependencies_parsed_at":"2022-09-02T19:01:12.684Z","dependency_job_id":null,"html_url":"https://github.com/bachvtuan/Github-Contribution-Graph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachvtuan%2FGithub-Contribution-Graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachvtuan%2FGithub-Contribution-Graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachvtuan%2FGithub-Contribution-Graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bachvtuan%2FGithub-Contribution-Graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bachvtuan","download_url":"https://codeload.github.com/bachvtuan/Github-Contribution-Graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877960,"owners_count":21176244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contribution-graph","jquery-plugin"],"created_at":"2024-11-08T04:16:40.466Z","updated_at":"2025-04-14T12:13:51.674Z","avatar_url":"https://github.com/bachvtuan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github-Contribution-Graph\nJquery plugin to render like contribution graph on Github when you view user's profile, You can use it to apply on other JS framework like Angularjs as well. \n\n## DEMO LINK\n\n[DEMO LINK](http://bachvtuan.github.io/Github-Contribution-Graph/)\n\n## Requirements\n\nJquery library\n\n## Usage:\nAdd below code into your html content\n\n```html\n\u003cscript type=\"text/javascript\" src=\"js/github_contribution.js\"\u003e\u003c/script\u003e\n\u003clink href=\"css/github_contribution_graph.css\" media=\"all\" rel=\"stylesheet\" /\u003e\n```\n\nCreate div to render graph\n\n```html\n\u003cdiv id=\"your_graph\"\u003e\u003c/div\u003e\n\n```\n\nCall lib to render graph\n\n```js\n$('#your_graph').github_graph( {\n  // Default is null will display date before 365 days from now\n  start_date: Date Time object\n  //Default is empty list\n  data: list_of_timestamp ,\n  // single text and plural text\n  texts: ['completed task','completed tasks']\n});\n\n```\nFull options\n\n```js\n$('#your_graph').github_graph( {\n  // start from 2022, null is default\n  start_date: new Date(2022,00,00,0,0,0),\n  data: list_of_timestamp ,\n  // single text and plural text\n  texts: ['category','categories'],\n  //Override month names\n  month_names: ['T1','T2','T3','T4','T5','T6','T7','T8','T9','T10','T11','T12'],\n  //Override horizontal day name\n  h_days:['2','4','6'],\n  //override colours\n  colors:['gray','purple','yellow','green','red'],\n  /** List object of color and count also supported\n  colors:[\n    { count:0, color:'gray' },\n    { count:5, color:'purple' },\n    { count:10, color:'yellow' },\n    { count:15, color:'green' },\n    { count:20, color:'red' }\n  ],\n  **/\n  border:{\n    radius: 5,\n    hover_color: \"red\"\n  },\n  click: function(date, count) {\n    console.log(date, count);\n  },\n});\n```\n\nData format: Supported list of timestamp array or object({timestamp,count}).\n\n```js\nvar list_of_timestamp = [1624865396654,1624865396655, ...];\n\n// or \nvar list_of_timestamp = [\n  {\n    timestamp: 1624865396654,\n    count: 2\n  },\n  {\n    timestamp: 1624865396655,\n    count: 5\n  }\n];\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachvtuan%2Fgithub-contribution-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbachvtuan%2Fgithub-contribution-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbachvtuan%2Fgithub-contribution-graph/lists"}