This is an improved work of the great plugin morris.js, the simplest chart library for Javascript and Typescript!
Examples can be seen in action and their source codes are available here
- Polar pie chart
- npm import (ES6 Module) Issue #4
- TypeScript type definitions
- Escaping of labels refactored Issue #15
- option to display percentage in donut Issue #12
- options pointSize and lineWidth for line curves in combo charts
- Display Pie\Donut value when there is only 1 value
- Escape labels in hover Pull #464
- option gridIntegers Issue #344
- Add lineType vertical for line charts Issue #634
- display segments in pie charts even if total = 0 Issue #13
- can add padding to pie charts Issue #9
- options extraClassLine and extraClassCircle for line charts Issue #7
- option to display customized text when pie chart has no data Issue #705
- PostUnits and preUnits for pie chart added
- Method to destroy Issue #569
- Ymin2 and Ymax2 are now considered Issue #5
- Color data labels is defined automatically (black or white) according to color of element
- Can display colored regions Issue #723
- Add option pointSuperimposed Issue #3
- Vertical grid can be dashed / dotted / …
- Animation of area chart improved
- Many other minor improvements
- 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
⭐ Star it! ⭐
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
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.
- flightphp-skeleton: a simple starter kit to build scalable REST APIs with FlightPHP
- multiple-emails.js: Enter multiple emails in a single input field with jQuery