Circular progress bar using CoffeeScript, AngularJS and D3JS
References
CoffeeScript http://coffeescript.org/
Angular.js https://docs.angularjs.org/api http://fastandfluid.com/publicdownloads/AngularJSIn60MinutesIsh_DanWahlin_May2013.pdf
Circular progress bar using CoffeeScript, AngularJS and D3JS
Circular progress bar using CoffeeScript, AngularJS and D3JS
References
CoffeeScript http://coffeescript.org/
Angular.js https://docs.angularjs.org/api http://fastandfluid.com/publicdownloads/AngularJSIn60MinutesIsh_DanWahlin_May2013.pdf
The directive right now has hardcoded styles for color, text size, etc...
For better separation of concern and ease of use by designers, it's better to name elements with different css classes and then define the style for those classes in the css file.
It also makes it easier for people to re-use the directive in different places and re-skin it via CSS, vs being tied to one color scheme.
I suggest adding a .gitignore file and ignoring the .DS_Store files that OS X likes to create.
.attr 'transform', 'translate('+actualArcRadius+','+actualArcRadius+')'
can be done via interpolation
.attr 'transform', "translate(#{ actualArcRadius }, #{ actualArcRadius })"
# note that string interpolation is only active when using double quote ", and not when using single quote '
Please read the unit testing developer guide at https://docs.angularjs.org/guide/unit-testing and add some unit tests to check that the arcs are drawn correctly.
D3 has really great support for tweening.
http://bl.ocks.org/mbostock/5100636
Please add animation to the arcs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.