monmon a721dfe38c navbar fix | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.. | ||
examples | %!s(int64=5) %!d(string=hai) anos | |
less | %!s(int64=5) %!d(string=hai) anos | |
lib | %!s(int64=5) %!d(string=hai) anos | |
spec | %!s(int64=5) %!d(string=hai) anos | |
.bower.json | %!s(int64=5) %!d(string=hai) anos | |
.travis.yml | %!s(int64=5) %!d(string=hai) anos | |
Gruntfile.js | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
bower.json | %!s(int64=5) %!d(string=hai) anos | |
bower.travis.json | %!s(int64=5) %!d(string=hai) anos | |
morris.css | %!s(int64=5) %!d(string=hai) anos | |
morris.js | %!s(int64=5) %!d(string=hai) anos | |
morris.min.js | %!s(int64=5) %!d(string=hai) anos | |
package.json | %!s(int64=5) %!d(string=hai) anos |
Morris.js is the library that powers the graphs on http://howmanyleft.co.uk/. It's a very simple API for drawing line, bar, area and donut charts.
Cheers!
- Olly (olly@oesmith.co.uk)
I'm unfortunately not able to actively support Morris.js any more. I keep an eye on the issues, but I rarely have the time to fix bugs or review pull requests.
If you're interested in actively contributing to Morris.js, please contact me on the email address above.
See the website.
Very daring.
Fork, hack, possibly even add some tests, then send a pull request :)
Remember that Morris.js is a coffeescript project. Please make your changes in
the .coffee
files, not in the compiled javascript files in the root directory
of the project.
You'll need node.js. I recommend using nvm for installing node in development environments.
With node installed, install grunt using
npm install -g grunt-cli
, and then the rest of the test/build dependencies
with npm install
in the morris.js project folder.
Once you're all set up, you can compile, minify and run the tests using grunt
.
Note: I'm experimenting with using perceptual diffs to catch rendering regressions. Due to font rendering differences between platforms, the pdiff tests currently only pass on OS X.
formatter
option for customising value labels in donuts #75.lineColors
on line charts to avoid running out of colours #78.setData
method #64.xLabelFormat
optionpreunits
and postunits
optionsxLabels
optionnull
y-values in examples/quarters.html
)parseTime
option bugfix for non-time-series datadateFormat
option)ymin
optionunits
optionshideHover
)parseTime
)options.element
smooth
option@default
ymax
optionCopyright (c) 2012-2014, Olly Smith All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.