From 73493e2c9e4259d475cd78ed9b7ff161288eaa71 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 26 Apr 2016 03:09:35 +0200 Subject: [PATCH] Added default ("left") for position field in global scale defaults. Documented scale position field in scale docs. --- docs/01-Scales.md | 1 + src/core/core.scale.js | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/01-Scales.md b/docs/01-Scales.md index 7c2ae0fa868..9872e94ecb9 100644 --- a/docs/01-Scales.md +++ b/docs/01-Scales.md @@ -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. diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 24881e1286e..e054264f6d4 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -6,6 +6,7 @@ module.exports = function(Chart) { Chart.defaults.scale = { display: true, + position: "left", // grid line settings gridLines: {