Examples of rendering lines of best fit with linear regression in CoffeeScript using Raphaël and HTML5 Canvas.
The CoffeeScript source provides thorough documentation on how this project works.
This project is built with CoffeeScript, HAML, and Sass. Compilation is quite straightforward in each case.
(Create a js/
directory into which the CoffeeScript files will be compiled.)
$ coffee -o js -c src/coffee/
$ haml -f html5 src/views/index.haml index.html
(Create a css/
directory into which the Sass files will be compiled.)
$ sass -c src/sass/master.sass:css/master.css
This software is released under the MIT License.