{"id":16124211,"url":"https://github.com/itaditya/circlebars","last_synced_at":"2026-03-06T08:33:09.464Z","repository":{"id":99907518,"uuid":"67916842","full_name":"itaditya/circlebars","owner":"itaditya","description":"Add circular progress bars and countdown timers easily with circlebars  Created by @itaditya. Demo at \u003e","archived":false,"fork":false,"pushed_at":"2018-04-05T15:35:00.000Z","size":2539,"stargazers_count":38,"open_issues_count":13,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T20:52:06.226Z","etag":null,"topics":["circle-bars","jquery","progress-bar","progressbar","timer"],"latest_commit_sha":null,"homepage":"http://circlebar.surge.sh/","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/itaditya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-11T07:38:01.000Z","updated_at":"2023-12-19T17:39:21.000Z","dependencies_parsed_at":"2023-05-11T00:15:40.406Z","dependency_job_id":null,"html_url":"https://github.com/itaditya/circlebars","commit_stats":null,"previous_names":["itaditya/correcttime"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itaditya/circlebars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Fcirclebars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Fcirclebars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Fcirclebars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Fcirclebars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itaditya","download_url":"https://codeload.github.com/itaditya/circlebars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itaditya%2Fcirclebars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30167963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["circle-bars","jquery","progress-bar","progressbar","timer"],"created_at":"2024-10-09T21:20:03.095Z","updated_at":"2026-03-06T08:33:09.423Z","avatar_url":"https://github.com/itaditya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Circle Bars\n=============\n\u003eCircle Bars is a Jquery plugin which is used to add circular countdown timers or progress bars in your project easily.\n\n[![npm](https://img.shields.io/npm/dm/circlebars.svg?style=flat-square)](https://www.npmjs.com/package/circlebars)\n[![npm](https://img.shields.io/npm/v/circlebars.svg?style=flat-square)](https://www.npmjs.com/package/circlebars)\n[![Github Releases](https://img.shields.io/github/downloads/ncs-jss/circlebars/total.svg?style=flat-square)](https://github.com/ncs-jss/circlebars)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/0d0d04c60ab844e3a9039c4ba9062e36)](https://www.codacy.com/app/adityaa803/circlebars?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=ncs-jss/circlebars\u0026amp;utm_campaign=Badge_Grade)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"demo.gif\" alt=\"demo circlebars gif\"\u003e\n\u003c/p\u003e\n\n- implemented with css; no canvas, png or jpg sprites messing around.\n- highly customisable with various designed skins.\n- less than 2KB when minified.\n- optimised and production ready code in dist/ folder. \n- SASS support also.\n- CDN provided at [unpkg](https://unpkg.com/circlebars@1.0.3/dist/)\n- Cross browser functionality\n\nWhat to include\n-------\nInclude jQuery first and then follow up.\n\n1) By CDN\n```html\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"https://unpkg.com/circlebars@1.0.3/dist/circle.css\"\u003e\n\u003cscript src=\"https://unpkg.com/circlebars@1.0.3/dist/circle.js\"\u003e\u003c/script\u003e\n\u003c!-- Optionally add this to use a skin : --\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"https://unpkg.com/circlebars@1.0.3/dist/skins/whitecircle.css\"\u003e\n```\n\n1) By downloading the package\n\n* first install with `npm install circlebars` \n* then include these files in your html.\n\n```html\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"node-modules/circlebars/dist/circle.css\"\u003e\n\u003cscript src=\"node-modules/circlebars/dist/circle.js\"\u003e\u003c/script\u003e\n\u003c!-- Optionally add this to use a skin : --\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"node-modules/circlebars/dist/skins/whitecircle.css\"\u003e\n```\n\n\nExample\n-------\n\n```html\n\n\u003cdiv id=\"circle-1\"\u003e\n    \u003cdiv class=\"loader-bg\"\u003e\n        \u003cdiv class=\"text\"\u003e00:00:00\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n\n\u003cscript\u003e\n    new Circlebar({\n        element : \"#circle-1\"\n    });\n\u003c/script\u003e\n```\nor\n\n```html\n\n\u003cdiv class=\"circle-2\"\u003e\n    \u003cdiv class=\"loader-bg\"\u003e\n        \u003cdiv class=\"text\"\u003e00:00:00\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n\n\u003cscript\u003e\n    $(\".circle-2\").Circlebar({\n\u003c/script\u003e\n```\nor\n```html\n\n\u003cdiv class=\"circlebar\"\u003e\n    \u003cdiv class=\"loader-bg\"\u003e\n        \u003cdiv class=\"text\"\u003e00:00:00\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\nOptions\n-------\n\nOptions are provided as attributes 'data-circle-option':\n\n```html\n\u003cdiv id=\"circle-1\" data-circle-dialWidth=10 data-circle-skin=\"white\"\u003e\u003c/div\u003e\n```\n\n or in the \"Circlebar()\" call :\n\n```javascript\n$(\"#circle-1\").Circlebar({\n    maxValue : 20,\n    fontSize : \"14px\",\n    triggerPercentage : true\n});\n```\n- Note : The inline data attributes will overwrite the properties specified in the Circlebar() call .\n\nThe following options are supported :\n\n- Note : value and maxValue options are common for both (timer and progressbar) but vary slightly in essence to both.\n\nBehaviors :\n* startValue : starting time for timer or initial value of progressbar | default = 0 | integer \n* maxValue : the max time for timer to display or the value till which circlebar progresses | default = 60 | integer\n* counter : the time in which timer increase by 1s | default = 1000 | integer (1000 == 1sec)\n* triggerPercentage : should the circles styling alters according to progress level | default = false | boolean\n* type : type of circlebar can be timer, progress or manual | default = \"timer\"\n\nUI :\n\n* dialWidth : the thickness of the circular ring | default = 5 | integer\n* fontSize : the font size of the text in center of circle | default = \"20px\" | string with unit also ( units can be px, em, rm, % etc.)\n* fontColor : the font color of the text in center of circle | default = \"rgb(135, 206, 235)\" | string (unit can be HEX, rgb, rgba, hsla, hsv, etc.)\n* skin : the name of the custom skin to include | default = \" \" | string\n* size : the size of the whole circle bar | default = \"150px\" | string with unit also ( units can be px, % etc.)\n\nAvaliable skins\n-------\n\nAll Skins are located in the [`dist/skins`](https://github.com/itaditya/circlebars/tree/master/dist/skins) folder. Here are the ones currently avaliable:\n\n* [Blue](https://github.com/itaditya/circlebars/blob/master/dist/skins/bluecircle.css)\n* [Cobalt](https://github.com/itaditya/circlebars/blob/master/dist/skins/cobaltcircle.css)\n* [Fire](https://github.com/itaditya/circlebars/blob/master/dist/skins/firecircle.css)\n* [Matte Black](https://github.com/itaditya/circlebars/blob/master/assets/skins/matteblackcircle.css)\n* [Purple](https://github.com/itaditya/circlebars/blob/master/dist/skins/purplecircle.css)\n* [Simple](https://github.com/itaditya/circlebars/blob/master/dist/skins/simplecircle.css)\n* [White](https://github.com/itaditya/circlebars/blob/master/dist/skins/whitecircle.css)\n* [Yellow](https://github.com/itaditya/circlebars/blob/master/dist/skins/yellowcircle.css)\n\nTo use a skin, first include it as a css file.\n\n```html\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"path/to/skins/bluecircle.css\"\u003e\n```\n\nThen, you can set the custom skin name with the `skin` option when creating your circebar instance.\n\n```javascript\n$(\"#circle-1\").Circlebar({\n    skin: \"blue\"\n});\n```\n\nOr, as a data attribute when using a DOM element.\n```html\n\u003cdiv id=\"circle-1\" data-circle-skin=\"blue\"\u003e\u003c/div\u003e\n```\n\nTo make your own skin, use one of the included ones and edit the css to your specification.\n\nExample\n-------\n\n```html\n \u003cdiv id=\"circle-1\" data-circle-dialWidth=10 data-circle-skin=\"white\"\u003e\n    \u003cdiv class=\"loader-bg\"\u003e\n      \u003cdiv class=\"text\"\u003e00:00:00\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n\n$(\"#circle-1\").Circlebar({\n    maxValue : 20,\n    fontSize : \"14px\",\n    triggerPercentage : true,\n    type: \"progress\"\n});\n```\nand \n\n```html\n\u003cdiv class=\"circlebar\" data-circle-startValue=0 data-circle-dialWidth=20 data-circle-size=\"250px\"\u003e\n    \u003cdiv class=\"loader-bg\"\u003e\n        \u003cdiv class=\"text\"\u003e00:00:00\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n\n\n\u003e Note that you can put any content inside` \u003cdiv class=\"text\"\u003e\u003c/div\u003e ` like text, icons, images, etc. \n\nDemo also available at  [Codepen](http://codepen.io/itaditya/pen/QKExjL)\n\nSupported browser\n-------\n\nTested on Chrome, Safari, Firefox.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaditya%2Fcirclebars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitaditya%2Fcirclebars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitaditya%2Fcirclebars/lists"}