Merge pull request #2376 from DaanDeMeyer/fix_scale_default_position

Added default ("left") for position field in global scale defaults (fixes #2370)
This commit is contained in:
Evert Timberg 2016-04-25 21:37:05 -04:00
commit b615fe8c35
2 changed files with 2 additions and 0 deletions

View 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.

View File

@ -6,6 +6,7 @@ module.exports = function(Chart) {
Chart.defaults.scale = {
display: true,
position: "left",
// grid line settings
gridLines: {