Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meandavejustice/radial-progress
fork of radial-progress d3 component
https://github.com/meandavejustice/radial-progress
Last synced: 7 days ago
JSON representation
fork of radial-progress d3 component
- Host: GitHub
- URL: https://github.com/meandavejustice/radial-progress
- Owner: meandavejustice
- Created: 2014-10-09T00:52:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-09T01:13:12.000Z (about 10 years ago)
- Last Synced: 2024-10-04T07:17:39.390Z (about 1 month ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# radial-progress
Forked from [brightpoint inc](http://www.brightpointinc.com/clients/brightpointinc.com/library/radialProgress/index.html)
`npm install radial-progress`
## notes
This was forked in a jiffy, I know it is not structured well, I plan to fix
it as soon as I get a free moment. Please do not create issues telling me
about the bad practices. I will be more than happy to recieve pull requests.## usage
``` javascript
var radialProgress = require('./index');
var DEFAULT_DIAMETER = 150;function makeRadialGraph (selector, value, diameter) {
var containEl = document.querySelector(selector);
var diameter = diameter ? diameter : DEFAULT_DIAMETER;var radialGraphComponent = radialProgress(containEl)
.diameter(diameter)
.value(value);return radialGraphComponent;
}var radialGraph = makeRadialGraph('.radial-example', 75);
radialGraph.render();```
You will also want to include(possibly override) the css
sound in style.css in the project root.## LICENSE
originally licensed as MIT, still licensed as MIT
(license at top of index.js)