]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Added default ("left") for position field in global scale defaults. 2376/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 26 Apr 2016 01:09:35 +0000 (03:09 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 26 Apr 2016 01:09:35 +0000 (03:09 +0200)
Documented scale position field in scale docs.

docs/01-Scales.md
src/core/core.scale.js

index 7c2ae0fa868afae49979de10d8f5fbfa44b09040..9872e94ecb9c5815cf925b7b72777c66af78618e 100644 (file)
@@ -15,6 +15,7 @@ Name | Type | Default | Description
 --- |:---:| --- | ---
 type | String | Chart specific. | Type of scale being employed. Custom scales can be created and registered with a string key. Options: ["category"](#scales-category-scale), ["linear"](#scales-linear-scale), ["logarithmic"](#scales-logarithmic-scale), ["time"](#scales-time-scale), ["radialLinear"](#scales-radial-linear-scale)
 display | Boolean | true | If true, show the scale including gridlines, ticks, and labels. Overrides *gridLines.display*, *scaleLabel.display*, and *ticks.display*.
+position | String | "left" | Position of the scale. Possible values are top, left, bottom and right.
 beforeUpdate | Function | undefined | Callback called before the update process starts. Passed a single argument, the scale instance.
 beforeSetDimensions | Function | undefined | Callback that runs before dimensions are set. Passed a single argument, the scale instance.
 afterSetDimensions | Function | undefined | Callback that runs after dimensions are set. Passed a single argument, the scale instance.
index 24881e1286ee0a0ede63faa4e26d2c86a54d9bac..e054264f6d49dee1811aa6e9a55c09613f7c9a14 100644 (file)
@@ -6,6 +6,7 @@ module.exports = function(Chart) {
 
        Chart.defaults.scale = {
                display: true,
+               position: "left",
 
                // grid line settings
                gridLines: {