]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Merge pull request #1750 from nnnick/v2.0-legend
authorDerek Perkins <derek@derekperkins.com>
Sat, 12 Dec 2015 01:52:26 +0000 (18:52 -0700)
committerDerek Perkins <derek@derekperkins.com>
Sat, 12 Dec 2015 01:52:26 +0000 (18:52 -0700)
Legend and Title Support

1  2 
docs/00-Getting-Started.md
src/core/core.scale.js

Simple merge
index aea41ea4982e0d0e102afd10625e99784b812023,a4f0ca5aea99f41aaaaedfbe90468a6ffeae9098..6f15033e69ae6a4b00fd1cbd4d51cfa14df70daa
  
                // Shared Methods
                isHorizontal: function() {
 -                      return this.options.position == "top" || this.options.position == "bottom";
 +                      return this.options.position === "top" || this.options.position === "bottom";
                },
+               isFullWidth: function() {
+                       return (this.options.fullWidth);
+               },
  
                // Get the correct value. NaN bad inputs, If the value type is object get the x or y based on whether we are horizontal or not
                getRightValue: function getRightValue(rawValue) {