This is an improved work of the great plugin morris.js, the simplest chart library for javascript!
- Step line added, based on PR #331
- Trend line can be non-linear (polynomial, logarithmic, exponential)
- Goals options for the right Y-axis Issue #1
- Many other minor improvements
- Combo Charts - Bar and Line together
- Right Y-axis Issue #113
- Pie chart type added
- Remove jQuery dependencies, based on PR #503
- Animation for every chart, based on PR #62 for line chart and PR #559 and for bar chart
- Labels for every chart, based on PR #688
- Orders of label in hover Issue #534
- Remove null values from computation of trend line
- Show a bar for value zero in a Bar charts Issue #744
- Color scheme changed to Bootstrap 4's default theme
- Option to display percentage in Donut and Pie charts
You can download the latest version of Morris.js06 from the GitHub releases.
To install via npm:
npm install morris.js06
- Raphael.js (>= 2.0)
- Regression.js (1.4.0) for trendline type polynomial, logarithmic, exponential
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.
Additionally, bower is required for for retrieving additional test dependencies.
Install it with npm install -g bower
and then bower install
in the morris project folder.
Once you're all set up, you can compile, minify and run the tests using grunt
.
Copyright (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:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
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.